Grub entry "root=/dev/ram0"

1,174 views
Skip to first unread message

Krister Hallergard

unread,
Aug 26, 2014, 1:51:34 AM8/26/14
to andro...@googlegroups.com
Pls explain the significance of "root=/dev/ram0" in the Grub command line. I thought this was for Live installations, such as Live CD or Live USB, the root path for a RAM disk.  When making proper installations to the harddisk, I have been changing this to "root=/dev/sdb3" - which is probably wrong (though it works fine).

rbg

unread,
Aug 26, 2014, 2:59:18 AM8/26/14
to andro...@googlegroups.com
initial ram disk for initrd...

root=/dev/ram0

    initrd is mounted as root, and the normal boot procedure is followed,
    with the RAM disk mounted as root.

from older documentation: https://www.kernel.org/doc/Documentation/initrd.txt

Krister Hallergard

unread,
Aug 26, 2014, 2:00:43 PM8/26/14
to andro...@googlegroups.com
Thanks rbg! Have read, but don't fully understand. Bottom line: should I change back from "root=/dev/sdb3" to "root=/dev/ram0" on my hard disk installation?

Chih-Wei Huang

unread,
Aug 26, 2014, 9:45:49 PM8/26/14
to Android-x86
Android root filesystem is always on the ramdisk.
So yes, you should change it back.
Though the parameter may be redundant
since the modern kernel seems to determine it
automatically.

If you want to specify the partition that android-x86 installed,
use ROOT=/dev/sdb3.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Krister Hallergard

unread,
Aug 27, 2014, 1:28:02 AM8/27/14
to andro...@googlegroups.com
Thank you Chih-Weih!
Reply all
Reply to author
Forward
0 new messages