LFS 6.3 - Chapter 8.4 - Cannot install grub

Rafael Lopez rafa2005ar at gmail.com
Thu Jun 19 04:39:12 PDT 2008


>From WITHIN chroot:

root:/sources# cd /dev
root:/dev# ls
pts  shm
root:/dev#

root:/dev# mount
none on /dev/pts type devpts (rw,gid=4,mode=620)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw,gid=4,mode=620)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw,gid=4,mode=620)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw,gid=4,mode=620)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw,gid=4,mode=620)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw,gid=4,mode=620)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw,gid=4,mode=620)
none on /dev/shm type tmpfs (rw)
root:/dev#


>From OUTSIDE chroot:

root [ /dev ]# ls -l
total 20
........................................
........................................
brw-rw---- 1 root disk      3,   0 Jun 19 05:13 hda
brw-rw---- 1 root disk      3,   1 Jun 19 05:13 hda1
brw-rw---- 1 root disk      3,   2 Jun 19 05:13 hda2
brw-rw---- 1 root disk      3,   3 Jun 19 05:13 hda3
brw-rw---- 1 root cdrom    22,   0 Jun 19 05:13 hdc
.......................................
.......................................
root [ /dev ]#

root [ /dev ]# mount
/dev/mapper/lfs-cd on / type ext2 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=4,mode=620)
/dev/hda1 on /mnt/lfs type ext3 (rw)
/dev/hda3 on /home type ext3 (rw)
proc on /mnt/lfs/proc type proc (rw)
sysfs on /mnt/lfs/sys type sysfs (rw)
root [ /dev ]#


2008/6/19, D.Dreschers <garfield0 at gmx.net>:
>
> Within chroot, LFS finds your harddrives by looking into the /dev
> directory which should be mounted before you enter the chroot
> environment (See chapter 6.2).
> Can you see your harddrives (hda1, hda2, hda3) inside the /dev directory
> when you are inside chroot?
> If not, this should be solved first.
>
> If you have a modern system which uses SATA, your harddrives are usually
> listed as sda1, sda2 etc.
> I'm not sure if grub needs different commands in that case.
>
> D.



More information about the lfs-support mailing list