On 8 May 2007, Michael Tokarev told this: > BTW, for such recovery purposes, I use initrd (initramfs really, but > does not matter) with a normal (but tiny) set of commands inside, > thanks to busybox. So everything can be done without any help from > external "recovery CD". Very handy at times, especially since all > the network drivers are here on the initramfs too, so I can even > start a netcat server while in initramfs, and perform recovery from > remote system... ;) What you should probably do is drop into the shell that's being used to run init if mount fails (or, more generally, if after mount runs it hasn't ended up mounting anything: there's no need to rely on mount's success/failure status). e.g. from my initramfs's init script (obviously this is not runnable as is due to all the variables, but it should get the idea across): if [ -n $root ]; then /bin/mount -o $OPTS -t $TYPE $ROOT /new-root fi if /bin/mountpoint /new-root >/dev/null; then :; else echo "No root filesystem given to the kernel or found on the root RAID array." echo "Append the correct 'root=', 'root-type=', and/or 'root-options='" echo "boot options." echo echo "Dropping to a minimal shell. Reboot with Ctrl-Alt-Delete." exec /bin/sh fi - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html