[ale] Shutdown process

Byron A Jeff byron at cc.gatech.edu
Wed Jan 3 11:42:00 EST 2001


> I've read you email and understand but have one question.
> 
> if your script does this:
> 
> mount /dev/fla1 /usr -n -o ro
> gzip -cd ramdisk.gz > /dev/ram7
> mount /dev/ram7 to [WHAT]

It doesn't do the last command. That's the beauty of the initial ramdisk. it'll
automatically change the root device to the target specified as the root
parameter on the LILO argument line.

> 
> Can I remount on to /
> or do I need
> to do this
> 
> mkdir /system
> mount /dev/ram7 /system
> mount /dev/fla1 /system/usr
> chroot /system /system/sash 

Neither. Happens automatically. Take a read of Documentation/initrd.txt in
any /usr/src/linux kernel source for details.

> 
> My question is that if I already have a /
> how does /dev/ram7 become that /?

The kernel switches root from the initial ramdisk to the target root. I've used
this for mounting loopback filesystems as root too. Quite useful.

BAJ
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list