If I boot C5 from DVD in rescue mode, chroot to /mnt/sysimage, and try to do a grub-install /dev/sda it will fail because the /dev folder is empty (in the chroot environment). Until now I've then created the missing nodes manually, but is there a smarter way of doing this? Some devfs that needs to be mounted on top of /dev? Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25 Email: mk at crc.dk Homepage: http://www.crc.dk
Nicolas Thierry-Mieg
2010-Mar-25 13:55 UTC
[CentOS] /mnt/sysimage/dev folder in rescue mode
Mogens Kjaer wrote:> If I boot C5 from DVD in rescue mode, > chroot to /mnt/sysimage, and try to do a > grub-install /dev/sda it will fail because > the /dev folder is empty (in the chroot environment). > > Until now I've then created the missing nodes manually, > but is there a smarter way of doing this? Some devfs > that needs to be mounted on top of /dev? >won't this work? grub-install --root-directory=/mnt/sysimage