View Full Version : what is this? echo "0x100" > /proc/sys/kernel/r
tealeaf
11-04-2003, 10:28 PM
While trying to speed up booting time, I came to these lines in linuxrc:
# Change root device from /dev/fd0 to /dev/ram0
echo "0x100" > /proc/sys/kernel/real-root-dev
Dave_Bechtel
11-05-2003, 07:59 AM
--Don't worry about it, anything with a 0x in front of it is Hexadecimal notation. I suck at math; but if my experiment with ' bc ' is correct, 0x100 == 256 Decimal.
--I wouldn't touch that line IIWY. :)
While trying to speed up booting time, I came to these lines in linuxrc:
# Change root device from /dev/fd0 to /dev/ram0
echo "0x100" > /proc/sys/kernel/real-root-dev
rneff
11-05-2003, 05:47 PM
You are correct about your hexadecimal conversion.
To learn more look at: http://vwop.port5.com/beginner/bhextut.html
While trying to speed up booting time, I came to these lines in linuxrc:
# Change root device from /dev/fd0 to /dev/ram0
echo "0x100" > /proc/sys/kernel/real-root-dev
I think it does exactly what the comment says it does. It changes the root-device from /dev/fd0 (which is the first floppy drive, booting from cdrom also emulates a floppy) to /dev/ram0.
normally this is done with pivot_root (see "man pivot_root") but I guess they didn't have space to include that on the floppy image.
That guys above was right when he said you should leave this line alone ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.