[Linux-disciples] Grub "error 22" when external USB drive plugged in
Adam Rosi-Kessel
adam at rosi-kessel.org
Sun Nov 30 08:56:17 EST 2008
Yeah, i've had this same problem. I do think the solution is referencing
all partitions by uuid, not just the linux ones. I believe you would
just use the uuid's from your list below that correspond to the Windows
drives. An easier way to do it might be to assign a label to the drives,
which GRUB also supports. (In Windows, you would just do that in the
drive properties; in Linux, I believe tune2fs -L is the command you want).
Karl Sokol wrote, on 11/29/2008 5:12 PM:
> Happy Thanksgiving to all!!!
>
> Black Friday fallout...
>
> I have a working, dual-boot Ubuntu 8.10 and Vista64 setup. Vista
> resides on an internal hard drive and Linux is on a partition on an
> external USB Drive. I have yet another external USB drive. If it is
> plugged in at startup, I get an "error 22". No finagling with the BIOS
> has any effect. The drive works when plugged in after startup.
>
> According to this helpful post:
> http://ubuntuforums.org/showthread.php?t=594657&page=2
> <http://ubuntuforums.org/showthread.php?t=594657&page=2> , it seems that
> the problem is a re-assigning of drive names at start up. My menu.lst
> is below...
>
> ## ## End Default Options ##
>
> title Ubuntu 8.10, kernel 2.6.27-7-generic
> uuid 60559370-de24-46be-a7a2-189626e5137d
> kernel /boot/vmlinuz-2.6.27-7-generic
> root=UUID=60559370-de24-46be-a7a2-189626e5137d ro
> initrd /boot/initrd.img-2.6.27-7-generic
> quiet
>
> title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
> uuid 60559370-de24-46be-a7a2-189626e5137d
> kernel /boot/vmlinuz-2.6.27-7-generic
> root=UUID=60559370-de24-46be-a7a2-189626e5137d ro single
> initrd /boot/initrd.img-2.6.27-7-generic
>
> title Ubuntu 8.10, memtest86+
> uuid 60559370-de24-46be-a7a2-189626e5137d
> kernel /boot/memtest86+.bin
> quiet
>
> ### END DEBIAN AUTOMAGIC KERNELS LIST
>
> # This is a divider, added to separate the menu items below from the Debian
> # ones.
> title Other operating systems:
> root
>
>
> # This entry automatically added by the Debian installer for a non-linux OS
> # on /dev/sda1
> title Windows Vista/Longhorn (loader)
> root (hd0,0)
> savedefault
> makeactive
> chainloader +1
>
>
> # This entry automatically added by the Debian installer for a non-linux OS
> # on /dev/sda2
> title Windows Vista/Longhorn (loader)
> root (hd0,1)
> savedefault
> makeactive
> chainloader +1
>
>
> As you can see, the Linux bits are already assigned a UUID, rather than
> a moveable name. Do I need to do the same with the Windows entries? If
> so, what will the root line look like? If not, what can I do? I know
> it is not life or death to have to plug/unplug a drive, but in my setup,
> it is sort of a pain.
>
> karl at karl-desktop:~$ sudo blkid
> [sudo] password for karl:
> /dev/sda1: UUID="7E14C3E414C39E11" LABEL="PQSERVICE" TYPE="ntfs"
> /dev/sda2: UUID="8CF67A0AF679F534" LABEL="OS" TYPE="ntfs"
> /dev/sdg1: UUID="D4C4C110C4C0F5B0" LABEL="Workshop" TYPE="ntfs"
> /dev/sdf1: UUID="52A0A6AEA0A697CD" LABEL="Storage" TYPE="ntfs"
> /dev/sdf2: UUID="60559370-de24-46be-a7a2-189626e5137d" TYPE="ext3"
> /dev/sdf5: TYPE="swap" UUID="b88d7b1d-c973-45bf-a536-9744b58b7252"
>
>
> Anybody come across this or have an idea?
>
> --
> Grace and Peace,
>
> Rev. Karl Sokol
> Franklin Grove UMC
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
More information about the Linux-disciples
mailing list