[Gllug] Where to get the system device number

Tom Schutzer-Weissmann trmsw at yahoo.co.uk
Tue Mar 27 13:55:23 UTC 2007


I'm trying to boot from an IDE drive on an IDE-USB adaptor. I'm able to boot 
off a simple USB pen and I've got as far as booting an initrd system that 
loads the USB modules and finds the root device (by looking for a block 
device of a certain size - asking the user would be simpler)

What I don't know is how to hand over to the real system. Does my real root 
filesystem need to be mounted before I update /proc/sys/kernel/real-root-dev? 
How do I find the "system device number" I need to update it with?

The man page of initrd says 

>  For example, the following shell command line would change the normal root
> device to /dev/hdb1: 
> echo 0x365 >/proc/sys/kernel/real-root-dev 

- where does that "0x365" come from?

Thanks for your help
Tom SW
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list