[arch-general] dmraid wiki wrong on chroot proceedure??
Guys, I was helping someone on installing grub and I noticed the following on: http://wiki.archlinux.org/index.php/Installing_with_Fake_RAID under "Install Grub" that does not look correct: # mount -o bind /dev /mnt/dev # mount -t proc none /mnt/proc # mount -t sysfs none /mnt/sys # chroot /mnt /bin/bash That should be: # mount -o bind /dev /mnt/dev # mount -o bind /proc /mnt/proc # mount -o bind /sys /mnt/sys # chroot /mnt /bin/bash shouldn't it?? I know there wasn't a sysfs involved the last time I did this. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On 01/17/10 09:54, David C. Rankin wrote:
Guys,
I was helping someone on installing grub and I noticed the following on:
http://wiki.archlinux.org/index.php/Installing_with_Fake_RAID
under "Install Grub" that does not look correct:
# mount -o bind /dev /mnt/dev # mount -t proc none /mnt/proc # mount -t sysfs none /mnt/sys # chroot /mnt /bin/bash
That should be:
# mount -o bind /dev /mnt/dev # mount -o bind /proc /mnt/proc # mount -o bind /sys /mnt/sys # chroot /mnt /bin/bash
shouldn't it?? I know there wasn't a sysfs involved the last time I did this.
Eh no? Both examples stated above are correct. Glenn
I was helping someone on installing grub and I noticed the following on:
http://wiki.archlinux.org/index.php/Installing_with_Fake_RAID
under "Install Grub" that does not look correct:
# mount -o bind /dev /mnt/dev # mount -t proc none /mnt/proc # mount -t sysfs none /mnt/sys # chroot /mnt /bin/bash
That should be:
# mount -o bind /dev /mnt/dev # mount -o bind /proc /mnt/proc # mount -o bind /sys /mnt/sys # chroot /mnt /bin/bash
The 2 scernarios above are identical. Actually proc and sysfs are both "singleton" virtual filesystems in the kernel so, no matter if you mount them again or bind-mount them you get the same thing. -- damjan
On 01/17/2010 11:01 AM, Damjan Georgievski wrote:
I was helping someone on installing grub and I noticed the following on:
http://wiki.archlinux.org/index.php/Installing_with_Fake_RAID
under "Install Grub" that does not look correct:
# mount -o bind /dev /mnt/dev # mount -t proc none /mnt/proc # mount -t sysfs none /mnt/sys # chroot /mnt /bin/bash
That should be:
# mount -o bind /dev /mnt/dev # mount -o bind /proc /mnt/proc # mount -o bind /sys /mnt/sys # chroot /mnt /bin/bash
The 2 scernarios above are identical. Actually proc and sysfs are both "singleton" virtual filesystems in the kernel so, no matter if you mount them again or bind-mount them you get the same thing.
Thanks Damjan, Redshift. I was just hung up on the 'sysfs' instead of 'sys' nomenclature. Clear now :p -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
participants (3)
-
Damjan Georgievski
-
David C. Rankin
-
RedShift