Find the answer to your Linux question:
Results 1 to 5 of 5
Hi folks, LFS 6,1 FC3 Host Encountered another problem on the same section. 8.4. Making the LFS System Bootable http://www.linuxfromscratch.org/lfs/...er08/grub.html .... run the grub shell root:/sources/linux-2.6.11.12# grub Code: grub> root ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    Error 21: Selected disk does not exist


    Hi folks,

    LFS 6,1
    FC3 Host

    Encountered another problem on the same section.
    8.4. Making the LFS System Bootable
    http://www.linuxfromscratch.org/lfs/...er08/grub.html

    .... run the grub shell

    root:/sources/linux-2.6.11.12# grub
    Code:
    grub> root (hd0,5)
    Error 21: Selected disk does not exist
    Tried only typing;
    grub> root (hd

    and pressed <Tab>. Nothing popup.


    root:/sources# cat /etc/fstab
    Code:
    # Begin /etc/fstab
    
    # file system  mount-point  type   options              dump  fsck
    #                                                             order
    
    /dev/hda6      /            ext3   defaults             1     1
    /dev/hda3      swap         swap   pri=1                0     0
    proc           /proc        proc   defaults             0     0
    sysfs          /sys         sysfs  defaults             0     0
    devpts         /dev/pts     devpts gid=4,mode=620       0     0
    shm            /dev/shm     tmpfs  defaults             0     0
    /dev/fd0       /mnt/floppy  auto   noauto,owner,kudzu   0     0
    # End /etc/fstab

    As FC3 Host

    [root@localhost ~]# fdisk -l /dev/hda
    Code:
    Disk /dev/hda&#58; 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/hda1   *           1          13      104391   83  Linux
    /dev/hda2              14        2563    20482875   83  Linux
    /dev/hda3            2564        2690     1020127+  82  Linux swap
    /dev/hda4            2691        4865    17470687+   5  Extended
    /dev/hda5            2691        3907     9775521   83  Linux
    /dev/hda6            3908        4637     5863693+  83  Linux
    /dev/hda7            4638        4865     1831378+  83  Linux
    [root@localhost ~]# df -hT
    Code:
    Filesystem    Type    Size  Used Avail Use% Mounted on
    /dev/hda2     ext3     20G  9.2G  9.2G  51% /
    /dev/hda1     ext3     99M   12M   83M  12% /boot
    none         tmpfs    125M     0  125M   0% /dev/shm
    /dev/hda5     ext3    9.2G  1.7G  7.1G  20% /home
    /dev/hda6     ext3    5.6G  2.4G  2.9G  45% /mnt/lfs
    Please advise. TIA

    B.R.
    satimis

  2. #2
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    the only question I can think of is - do you have only the one hard disk? As in, do you only have a /dev/hda - (hd0) ? Becuase your grub command - root (hd0,5) - should find /dev/hda6 .

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Hi Nerderello,

    the only question I can think of is - do you have only the one hard disk?
    Yes. The HD is connected as primary IDE master, no SLAVE attached to the same IDE cable.

    As in, do you only have a /dev/hda - (hd0) ?
    Sorry I don't follow. Please explain. Tks.

    B.R.
    satimis

  4. #4
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    You could try Nerderello's grub tutorial
    And try "find /boot/grub/stage1"
    If it is on hd0,5, do

    root (hd0,5) ENTER
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  5. #5
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    Satimis,
    my second question was really just a different way of asking the first question. You answered it - with a yes.

    /dev/hda is a way of saying the entire first IDE device (hard disk), and (hd0) is grubs way of refering to the same device.

    See if the tutorial (see post above) helps any.

    good luck

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •