You are not logged in.
I'm trying to move to a different hard drive. I booted a live cd, created the partitions, formatted, and used "cp -a" to copy all the files over. I also updated the fstab on the new drive, and now I would expect everything to work. However, I can't get past grub.
When I boot up, I get "grub error 22: partition not found".
Here is my setup ("Arch Linux - SSD" is the entry not working):
menu.lst:
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /boot/vmlinuz26 root=/dev/sda7 ro vga=775
initrd /boot/kernel26.img
# (0) Arch Linux
title Arch Linux - SSD
root (hd1,2)
kernel /boot/vmlinuz26 root=/dev/sdb3 ro vga=775
initrd /boot/kernel26.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,6)
kernel /boot/vmlinuz26 root=/dev/sda7 ro
initrd /boot/kernel26-fallback.img
cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
fdisk -l
Disk /dev/sdb: 115.0 GB, 115033153536 bytes
255 heads, 63 sectors/track, 13985 cylinders, total 224674128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d1ddc
Device Boot Start End Blocks Id System
/dev/sdb1 2048 8194047 4096000 82 Linux swap / Solaris
/dev/sdb2 8194048 161794047 76800000 83 Linux
/dev/sdb3 161794048 224673791 31439872 83 Linux
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x152104b0
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 771975167 385986560 7 HPFS/NTFS/exFAT
/dev/sda2 771987510 976768064 102390277+ 5 Extended
/dev/sda5 968350068 976768064 4208998+ 82 Linux swap / Solaris
/dev/sda6 813933288 968350004 77208358+ 83 Linux
/dev/sda7 771987573 813933224 20972826 83 Linux
Another note, is that grub-install takes a very long time to run after I update the menu.lst (5+ minutes), but the update does work without errors, and the new items do appear.
Any help would be appreciated, I'm wondering if I've just been looking at it too long...
Last edited by zhobbs (2011-05-11 19:40:04)
Offline
I solved this by using the uuid instead of the root:
# (0) Arch Linux
title Arch Linux - SSD
uuid 128a4425-c9ae-433f-b604-5488d55a14b3
kernel /boot/vmlinuz26 root=/dev/sdb3 ro vga=775
initrd /boot/kernel26.img
Also, I got "grub-install" to run much faster by removing the fd0 from the device map.
Offline
Yes, always use the UUID in these sorts of lists. Ditto with /etc/fstab. It prevents renumbering problems like you saw.
Offline
@zhobbs: Please mark this as solved (prepend [SOLVED] to the title in by editing the first post).
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline