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

Fabio Román Arbelo fabio at coit.es
Fri Feb 25 06:28:22 CST 2005


Hello everybody!

	Dave, I did what you told me (type "mount -n -o remount,rw /" and also "mount -f -o remount,rw /" directly from the command-line) and it seems to work fine. If fact, after all the boot processes and before I type any "mount", I did this:

...
Checking local filesystem integrity.
/dev/ram0: clean, 104/1024 files, 3190/4096 blocks
Remounting / as read-write.
Segmentation fault
Mounting local filesystems.
Setting hostname.
INIT: Entering runlevel: 1
# df
Filesystem		1k-blocks		Used		Available	Use%  Mounted on
/dev/ram0		3963			3058		905		78%	/
# mount
/dev/ram0	on	/ 	type 	ext2	(rw)
proc		on	/proc	type	proc	(rw)
#mount -n -o remount,rw /
#mount -f -o remount,rw /

Everything seems to be ok, except for the "segmentation fault". Could you help me with this please? I´ve already tried to rebuild 'mount' from the util-linux package, but it doesn´t fix the problem. Maybe I should try another stable version of this package (util-linux-2.12i for example) What do you think?

By the way, I am thinking of building a bootable Compact Flash based on your guide. I think it has to be easy, I mean, you only have to make a few changes. For example, GRUB commands, fstab file and, of course, copy all the files of both disks (root and boot) onto the compact flash. Do you think this is easier than building a bootable CD-ROM? (I´ve been reading your article about building a bootable CD-ROM and you are right, it is not easy at all, at least from my point of view :(

Thank you very much!

-----Mensaje original-----
De: pocket-linux-bounces at ufo.chicago.il.us [mailto:pocket-linux-bounces at ufo.chicago.il.us] En nombre de David Horton
Enviado el: viernes, 18 de febrero de 2005 20:45
Para: Support for Pocket Linux Guide
Asunto: Re: [pocket-linux] My first question :) (about script in 5.3.7)

> -----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




_______________________________________________
Pocket-Linux mailing list
Pocket-Linux at ufo.chicago.il.us
http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux




More information about the Pocket-Linux mailing list