I tried to install Arch Linux to an USB key. Things are kind of wobbly (it assumes the system has exactly one drive inside, for example) but everything installed just fine. Until I rebooted.
Booting 'Arch Linux'
root (hd1,1)
Filesystem type unknown, partition type 0x7
kernel /boot/vmlinuz26 root=/dev/dsb2 ro
Error 17: Cannot mount selected partition
(/dev/dsb1/(hd1,0) is a small FAT partition for data storing purposes -- for those locked down lab computers.)
Here's the 'Arch Linux' command sequence:
root (hd1,1)
kernel /boot/vmlinuz26 root=/dev/dsb2 ro
initrd /boot/kernel26.img
At the grub console:
grub> root (hd1,1)
Filesystem type unknown, partition type 0x7
grub> cat /etc/passwd
Error 17: Cannot mount selected partition
grub> root (hd0,1) # my ubuntu partition
Filesystem type is ext2fs, partition type 0x73
grub> cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
<snip/>
I could successfully reboot in my host OS, Ubuntu, and used the Disk Tool to confirm partitioning was successful. Also, running sudo kvm /dev/dsb resulted in a successful Arch boot once I edited the commands to boot from root (hd0,1) (that is, until Arch tried to mount /dev/dsb2).
What did I do wrong? I have read the related wiki section but nothing seems to apply: I didn't use GParted or logical drives; everything is on the same partition.
(hd1,1). The partition type is set to 7 which is not normally used by Linux. What filesystem do you have on the Arch partition? What is the partition table on the USB disk (fdisk -l /dev/sdb)? – Gilles Oct 30 '10 at 11:23(hd1)in Grub is not the disk you're looking for. What other disks do you have? Apparently you have a disk where partition 2 is type 7 (NTFS?). Grub1 is constrained by the BIOS interfaces, which can only report two hard disks, so you may have to look into your BIOS settings. Note that the disk ordering you see in Grub has nothing to do with the sda,sdb,... ordering in Linux (and the ordering in Linux depends on the order the drivers are loaded, so you might not get the same in Ubuntu and Arch). – Gilles Oct 30 '10 at 11:46(hd0,1)indeed. Make that comment an answer, please. – badp Oct 30 '10 at 12:33