Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: Error 21 Grub on Eee 901

  1. #1
    Join Date
    Dec 2008
    Beans
    29

    Error 21 Grub on Eee 901

    I have a Eee PC 901 with the default Xandros on the HHD and Ubuntu Eee on a SD card. When I remove the SD card I get a Grub Error 21 on boot up. I would like to be able to boot into Xandros without the SD card in so I maybe able to have more OS's on different SD cards.

    I know Ubuntu Eee is not part of Ubuntu but I figured that since it is based off Ubuntu, the Grub menu will close to each other. I have tried to get help from the Ubuntu Eee forums but no one has really helped.

  2. #2
    Join Date
    Mar 2007
    Beans
    33

    Re: Error 21 Grub on Eee 901

    Error 21 means an expected device isn't present. I suspect you have written your master boot record (MBR) to the SD card. When Grub goes looking for the MBR it's missing and you get the error. Sound accurate?

    You should be able to go back and re-write the boot partition info into the Xandros internal HDD instead of to the SD card.

    Do some googling on eee, menu.lst, dual-boot, ubuntu, grub.

  3. #3
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Error 21 Grub on Eee 901

    It sounds like what happened is you accepted the default settings for Grub when you installed Ubuntu to the SD card; by default Grub gets installed to /dev/sda which would be your internal Xandros HDD. To correct the problem, you can first install Grub to the MBR of your SD card by doing:
    Code:
    sudo grub
    grub> find /boot/grub/stage1
    grub> find /grub/stage1
    One of the above commands should return your main Ubuntu partition (or /boot partition if you have one) in the form of (hdX,Y) where X and Y are numbers, for example (hd1,0). If it returns any results where X is 0, don't use that one, use the one where X is 1. Use that result as follows:
    Code:
    grub> root (hdX,Y)
    grub> setup (hdX)
    grub> quit
    Please post the output of all the above commands. Also, which boot loader does Xandros use? Does it also use Grub?

  4. #4
    Join Date
    Dec 2008
    Beans
    29

    Re: Error 21 Grub on Eee 901

    Ok, good news and bad news. The good news is I can boot without the SD card. The bad news is I cannot boot from the SD card and when I try I get Error 15: File not found for both Ubuntu and Xandros. I would have posted the results but I did read that far down, I got excited.

  5. #5
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Error 21 Grub on Eee 901

    Quote Originally Posted by skykaptain View Post
    Ok, good news and bad news. The good news is I can boot without the SD card. The bad news is I cannot boot from the SD card and when I try I get Error 15: File not found for both Ubuntu and Xandros. I would have posted the results but I did read that far down, I got excited.
    OK, that's great news; so how about booting the SD card again, press ESC on to get the Grub menu (if there is a message saying to do that), select the first Ubuntu entry, press "e" to edit it, select the line that says "root (hdX,Y)" where X and Y are numbers, press "e" to edit it, change it to "root (hd0,Y)", press return to save the change, then press "b" to boot. Based on the info you gave, I think that should be all it takes to boot Ubuntu. Note that the above change is not permanent, so you'll need to modify your menu.lst to make it permanent.

    So if it works, when you get into Ubuntu, just do:
    Code:
    gksudo gedit /boot/grub/menu.lst
    And change the line that says "#groot=(hdX,Y)" to use the (hd0,Y) that worked to boot Ubuntu. Save, quit gedit, then run:
    Code:
    sudo update-grub
    And you should be all set. Let me know how it goes or if you run into problems.

  6. #6
    Join Date
    Dec 2008
    Beans
    29

    Re: Error 21 Grub on Eee 901

    Ok, it worked for a while. I got it to boot by changing "root(hd2,0)" to "root(hd0,0)" but when I updated Grub, after changing it doing the above changes to menu.lst, I was given a list of updates. I picked the top one, something about adding the changes or updating, I don't really remember. After that I restarted and now I am still getting Error 15's. The Grub menu, on boot up, now has more options to choose from and none work.

    They are:
    Code:
    root(hd0,0)
    kernel /boot/vwlinuz-2.6.24-21-eeepc root=UUID=06dec0d-4d7d-4fe7-bc->
    initrd /boot/initrd.img-2.6.24-21-eeepc
    quiet
    root(hd0,0)
    kernel /boot/vmlinuz-2.21.4-eeepc quiet rw vga=785 irqpoll root=/d->
    initrd /boot/initramfs-eeepc.img
    savedefault
    boot
    I hope that helps because I have no idea what it any of it means.

  7. #7
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Error 21 Grub on Eee 901

    OK, from your Live CD, how about posting the output of:
    Code:
    sudo fdisk -lu
    And then for whichever is your SD card Ubuntu partition (maybe sdb1), do:
    Code:
    sudo mount /dev/sdb1 /mnt
    ls -l /mnt/boot
    cat /mnt/boot/grub/menu.lst
    sudo blkid
    So change sdb1 above if that is not the correct partition. Please post the results.

  8. #8
    Join Date
    Dec 2008
    Beans
    29

    Re: Error 21 Grub on Eee 901

    Ok, here is the results from "fdisk." Sda is the original OS, sdb is the storage, sdc is the SD card, sdd is the flash drive I use as a Live CD.

    Code:
    255 heads, 63 sectors/track, 490 cylinders, total 7880544 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xfb38fb38
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *          63     6425999     3212968+  83  Linux
    /dev/sda2         6426000     7839719      706860   83  Linux
    /dev/sda3         7839720     7855784        8032+   c  W95 FAT32 (LBA)
    /dev/sda4         7855785     7871849        8032+  ef  EFI (FAT-12/16/32)
    
    Disk /dev/sdb: 16.1 GB, 16139354112 bytes
    255 heads, 63 sectors/track, 1962 cylinders, total 31522176 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xf26d47c4
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *          63    31519529    15759733+  83  Linux
    
    Disk /dev/sdc: 4075 MB, 4075290624 bytes
    255 heads, 63 sectors/track, 495 cylinders, total 7959552 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x0001aee8
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1              63     7502354     3751146   83  Linux
    /dev/sdc2         7502355     7952174      224910    5  Extended
    /dev/sdc5         7502418     7952174      224878+  82  Linux swap / Solaris
    
    Disk /dev/sdd: 8019 MB, 8019509248 bytes
    20 heads, 16 sectors/track, 48947 cylinders, total 15663104 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xc3072e18
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdd1   *          80    15663103     7831512    c  W95 FAT32 (LBA)
    Here is the results from the other command. I don't know if I entered the first one correctly.

    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sbc /mnt ls -l /mnt/boot cat /mnt/boot/grub/menu.lst
    Usage: mount -V                 : print version
           mount -h                 : print this help
           mount                    : list mounted filesystems
           mount -l                 : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
           mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
           mount device             : mount device at the known place
           mount directory          : mount known device here
           mount -t type dev dir    : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
           mount --bind olddir newdir
    or move a subtree:
           mount --move olddir newdir
    One can change the type of mount containing the directory dir:
           mount --make-shared dir
           mount --make-slave dir
           mount --make-private dir
           mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
           mount --make-rshared dir
           mount --make-rslave dir
           mount --make-rprivate dir
           mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using  -L label  or by uuid, using  -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say  man 8 mount .
    ubuntu@ubuntu:~$ sudo blkid
    /dev/sda1: LABEL="SYSTEM" UUID="15fb1bc0-1a9d-448f-8f49-e01dcc163a24" TYPE="ext2" 
    /dev/sda2: LABEL="USER" UUID="c1402c2d-53fb-491d-9b8e-15eb1c253a4f" SEC_TYPE="ext2" TYPE="ext3" 
    /dev/sda3: SEC_TYPE="msdos" LABEL="BIOS" UUID="4861-2962" TYPE="vfat" 
    /dev/sdb1: LABEL="HOME" UUID="aac780c4-5c91-4b85-bcb6-e2d99d76c605" SEC_TYPE="ext2" TYPE="ext3" 
    /dev/sdc1: UUID="08dece0d-4d7d-4fe7-bc9f-d691a014c6c8" TYPE="ext3" 
    /dev/sdc5: TYPE="swap" UUID="71350b6c-72e8-49f1-be27-237ce3e26b2d" 
    /dev/sdd1: LABEL="VANCE-2" UUID="40C3-25B3" TYPE="vfat" 
    /dev/loop0: TYPE="squashfs"

  9. #9
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Error 21 Grub on Eee 901

    OK, how about posting:
    Code:
    sudo mount /dev/sdc1 /mnt
    ls -l /mnt/boot
    cat /mnt/boot/grub/menu.lst

  10. #10
    Join Date
    Dec 2008
    Beans
    29

    Re: Error 21 Grub on Eee 901

    This good?

    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sdc1 /mnt
    ubuntu@ubuntu:~$ ls -l /mnt/boot
    total 12868
    -rw-r--r-- 1 root root   67648 2008-08-22 20:03 config-2.6.24-21-eeepc
    drwxr-xr-x 2 root root    4096 2008-12-18 18:02 grub
    -rw-r--r-- 1 root root 5109751 2008-12-08 20:54 initrd.img-2.6.24-21-eeepc
    -rw-r--r-- 1 root root 5109512 2008-12-01 15:05 initrd.img-2.6.24-21-eeepc.bak
    -rw-r--r-- 1 root root  103204 2008-08-22 20:03 memtest86+.bin
    -rw-r--r-- 1 root root  879903 2008-08-22 20:03 System.map-2.6.24-21-eeepc
    -rw-r--r-- 1 root root 1850200 2008-08-22 20:03 vmlinuz-2.6.24-21-eeepc
    ubuntu@ubuntu:~$ cat /mnt/boot/grub/menu.lst

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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