[pocket-linux] My first question :) (about script in 5.3.7)

David Horton dhorton at speakeasy.net
Fri Feb 18 14:44:58 CST 2005


> -----Original Message-----
> From: Fabio Román Arbelo [mailto:fabio at coit.es]
> Sent: Friday, February 18, 2005 06:48 PM
> To: pocket-linux at ufo.chicago.il.us
> Subject: [pocket-linux] My first question :) (about script in 5.3.7)
> 
> Hello! 
>  
> First of all, I would like to thank you for this incredible guide you have written. It is very useful!!!
>  
> However, I’ve found my first error. In section 5.3.7, I create the following script:
>  
> # local_fs − check and mount local filesystems
> #
> PATH=/sbin:/bin ; export PATH
> fsck −ATCp
> if [ $? −gt 1 ]; then
> echo "Filesystem errors still exist! Manual intervention required."
> /bin/sh
> else
> echo "Remounting / as read−write."
> mount −n −o remount,rw /
> echo −n >/etc/mtab
> mount −f −o remount,rw /
> echo "Mounting local filesystems."
> mount −a −t nonfs,nosmbfs
> fi
> #
> # end of local_fs
>  
> But when I try to do bash# local_fs I get this:
>  
>> Remounting / as read−write.
> Segmentation fault
> Mounting local filesystems.
>   
> Could you tell me what could I do to fix it?
>  
> Thank you very much for your support and, please forgive my horrible english! :(
>  
>  

Fabio,

Thanks for the complement on the guide.  And by the way your English is very good, much better than my Spanish which consists mainly of "Dos tacos de carne asada, por favor."  :^)

As for the segmentation fault, I would guess that it is caused by the mount command and not the script.  Can you type 'mount −n −o remount,rw /' from the command-line and see if it causes a segmentation fault as well?  If it does you might try rebuilding 'mount' from the util-linux package.

Hope that helps.

Dave






More information about the Pocket-Linux mailing list