[opensuse-factory] Grub Problem
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck. Thnks and Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck.
Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution. -- " It is impossible to rightly govern the world without God and the Bible." George Washington Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Felix Miata wrote:
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck.
Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution.
Did all that, /dev/disk/by-* tree is sound, looked up "info grub" and "info grub-install", nothing makes any sense. # grub-install /dev/sda1 # grub-install /dev/sda # grub-install (hd0) # grub-install (hd0,0) grub> setup --stage2=/boot/grub/stage2 (hd0) grub> setup --stage2=/boot/grub/stage2 (hd0,0) and other combinations using /dev/sda and /de/sda1 all give "Error 12: Invalid device requested". The odd thing is that when I had the IDE drive installed (/dev/sda) with the SATA (/dev/sdb), it booted off /dev/sdb, after removing the IDE drive, it refused to boot. "fdisk -l /dev/sda" shows the bootable flag on /dev/sda1. I have / and a swap partition on the drive. I can't think of any incantation that will make grub do anything. /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 240 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 usb-HP_Photosmart_C4180_MY6CMH72JX04J7-0:0 -> ../../sdb /dev/disk/by-path: total 0 drwxr-xr-x 2 root root 140 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:02.1-usb-0:2.3:1.3-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part2 -> ../../sda2 /dev/disk/by-uuid: total 0 drwxr-xr-x 2 root root 80 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 10 Aug 29 11:14 85d24d84-6169-4acd-8b05-0d4283199835 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 e99d0381-afb9-4678-93bb-14f9afd27247 -> ../../sda2 Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Sid Boyce wrote:
Felix Miata wrote:
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck.
Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution.
Did all that, /dev/disk/by-* tree is sound, looked up "info grub" and "info grub-install", nothing makes any sense. # grub-install /dev/sda1 # grub-install /dev/sda # grub-install (hd0) # grub-install (hd0,0) grub> setup --stage2=/boot/grub/stage2 (hd0) grub> setup --stage2=/boot/grub/stage2 (hd0,0) and other combinations using /dev/sda and /de/sda1 all give "Error 12: Invalid device requested". The odd thing is that when I had the IDE drive installed (/dev/sda) with the SATA (/dev/sdb), it booted off /dev/sdb, after removing the IDE drive, it refused to boot. "fdisk -l /dev/sda" shows the bootable flag on /dev/sda1. I have / and a swap partition on the drive. I can't think of any incantation that will make grub do anything. /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 240 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 usb-HP_Photosmart_C4180_MY6CMH72JX04J7-0:0 -> ../../sdb
/dev/disk/by-path: total 0 drwxr-xr-x 2 root root 140 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:02.1-usb-0:2.3:1.3-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part2 -> ../../sda2
/dev/disk/by-uuid: total 0 drwxr-xr-x 2 root root 80 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 10 Aug 29 11:14 85d24d84-6169-4acd-8b05-0d4283199835 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 e99d0381-afb9-4678-93bb-14f9afd27247 -> ../../sda2
Regards Sid.
The only way I could recover successfully in a similar situation is described here. Seems grub as a program itself gets its device info directly from the partition table only: https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows?action=show&redirect=RecoverGrub Regards, FMF --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Frank-Michael Fischer wrote:
Sid Boyce wrote:
Felix Miata wrote:
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck.
Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution.
Did all that, /dev/disk/by-* tree is sound, looked up "info grub" and "info grub-install", nothing makes any sense. # grub-install /dev/sda1 # grub-install /dev/sda # grub-install (hd0) # grub-install (hd0,0) grub> setup --stage2=/boot/grub/stage2 (hd0) grub> setup --stage2=/boot/grub/stage2 (hd0,0) and other combinations using /dev/sda and /de/sda1 all give "Error 12: Invalid device requested". The odd thing is that when I had the IDE drive installed (/dev/sda) with the SATA (/dev/sdb), it booted off /dev/sdb, after removing the IDE drive, it refused to boot. "fdisk -l /dev/sda" shows the bootable flag on /dev/sda1. I have / and a swap partition on the drive. I can't think of any incantation that will make grub do anything. /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 240 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 usb-HP_Photosmart_C4180_MY6CMH72JX04J7-0:0 -> ../../sdb
/dev/disk/by-path: total 0 drwxr-xr-x 2 root root 140 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:02.1-usb-0:2.3:1.3-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part2 -> ../../sda2
/dev/disk/by-uuid: total 0 drwxr-xr-x 2 root root 80 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 10 Aug 29 11:14 85d24d84-6169-4acd-8b05-0d4283199835 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 e99d0381-afb9-4678-93bb-14f9afd27247 -> ../../sda2
Regards Sid.
The only way I could recover successfully in a similar situation is described here. Seems grub as a program itself gets its device info directly from the partition table only:
Regards,
FMF
Whoosh! that done it, thanks. Time was when grub was simpler, you never get anything like this from the man or info pages. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Sid Boyce escribió:
Felix Miata wrote:
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck.
Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution.
Did all that, /dev/disk/by-* tree is sound, looked up "info grub" and "info grub-install", nothing makes any sense. # grub-install /dev/sda1 # grub-install /dev/sda # grub-install (hd0) # grub-install (hd0,0) grub> setup --stage2=/boot/grub/stage2 (hd0) grub> setup --stage2=/boot/grub/stage2 (hd0,0) and other combinations using /dev/sda and /de/sda1 all give "Error 12: Invalid device requested". The odd thing is that when I had the IDE drive installed (/dev/sda) with the SATA (/dev/sdb), it booted off /dev/sdb, after removing the IDE drive, it refused to boot. "fdisk -l /dev/sda" shows the bootable flag on /dev/sda1. I have / and a swap partition on the drive. I can't think of any incantation that will make grub do anything. /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 240 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 usb-HP_Photosmart_C4180_MY6CMH72JX04J7-0:0 -> ../../sdb
/dev/disk/by-path: total 0 drwxr-xr-x 2 root root 140 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:02.1-usb-0:2.3:1.3-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part2 -> ../../sda2
/dev/disk/by-uuid: total 0 drwxr-xr-x 2 root root 80 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 10 Aug 29 11:14 85d24d84-6169-4acd-8b05-0d4283199835 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 e99d0381-afb9-4678-93bb-14f9afd27247 -> ../../sda2
Regards Sid.
Shouldn't be necessary because you switch the disks, but, did you check device.map ? Regards. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Gabriel wrote:
Sid Boyce escribió:
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck. Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution. Did all that, /dev/disk/by-* tree is sound, looked up "info grub" and "info grub-install", nothing makes any sense. # grub-install /dev/sda1 # grub-install /dev/sda # grub-install (hd0) # grub-install (hd0,0) grub> setup --stage2=/boot/grub/stage2 (hd0) grub> setup --stage2=/boot/grub/stage2 (hd0,0) and other combinations using /dev/sda and /de/sda1 all give "Error 12: Invalid device requested". The odd thing is that when I had the IDE drive installed (/dev/sda) with
Felix Miata wrote: the SATA (/dev/sdb), it booted off /dev/sdb, after removing the IDE drive, it refused to boot. "fdisk -l /dev/sda" shows the bootable flag on /dev/sda1. I have / and a swap partition on the drive. I can't think of any incantation that will make grub do anything. /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 240 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 usb-HP_Photosmart_C4180_MY6CMH72JX04J7-0:0 -> ../../sdb
/dev/disk/by-path: total 0 drwxr-xr-x 2 root root 140 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:02.1-usb-0:2.3:1.3-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part2 -> ../../sda2
/dev/disk/by-uuid: total 0 drwxr-xr-x 2 root root 80 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 10 Aug 29 11:14 85d24d84-6169-4acd-8b05-0d4283199835 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 e99d0381-afb9-4678-93bb-14f9afd27247 -> ../../sda2
Regards Sid.
Shouldn't be necessary because you switch the disks, but, did you check device.map ?
Regards. ---------------------------------------------------------------------
I certainly did and it is the same before and after the problem was fixed. I also had removed the line "(hd1) /dev/sdb)". (fd0) /dev/fd0 (hd0) /dev/sda I'm perplexed as to why simply removing the IDE drive would cause the SATA drive to suddenly not boot, must have been something in the stages. Regards Sid.. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Sid Boyce wrote:
Gabriel wrote:
Sid Boyce escribió:
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck. Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution. Did all that, /dev/disk/by-* tree is sound, looked up "info grub" and "info grub-install", nothing makes any sense. # grub-install /dev/sda1 # grub-install /dev/sda # grub-install (hd0) # grub-install (hd0,0) grub> setup --stage2=/boot/grub/stage2 (hd0) grub> setup --stage2=/boot/grub/stage2 (hd0,0) and other combinations using /dev/sda and /de/sda1 all give "Error 12: Invalid device requested". The odd thing is that when I had the IDE drive installed (/dev/sda) with
Felix Miata wrote: the SATA (/dev/sdb), it booted off /dev/sdb, after removing the IDE drive, it refused to boot. "fdisk -l /dev/sda" shows the bootable flag on /dev/sda1. I have / and a swap partition on the drive. I can't think of any incantation that will make grub do anything. /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 240 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 usb-HP_Photosmart_C4180_MY6CMH72JX04J7-0:0 -> ../../sdb
/dev/disk/by-path: total 0 drwxr-xr-x 2 root root 140 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:02.1-usb-0:2.3:1.3-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part2 -> ../../sda2
/dev/disk/by-uuid: total 0 drwxr-xr-x 2 root root 80 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 10 Aug 29 11:14 85d24d84-6169-4acd-8b05-0d4283199835 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 e99d0381-afb9-4678-93bb-14f9afd27247 -> ../../sda2
Regards Sid.
Shouldn't be necessary because you switch the disks, but, did you check device.map ?
Regards. ---------------------------------------------------------------------
I certainly did and it is the same before and after the problem was fixed. I also had removed the line "(hd1) /dev/sdb)". (fd0) /dev/fd0 (hd0) /dev/sda I'm perplexed as to why simply removing the IDE drive would cause the SATA drive to suddenly not boot, must have been something in the stages.
Coming to this party a little late, but the reason why the SATA drive wouldn't boot is because by removing the IDE drive, you changed the device name for the SATA drive. It went from hd1/sdb to hd0/sda, and so everywhere GRUB was looking for hd1 or sdb had to be changed to match the new disk layout. I wrote up a short bit about restoring grub here, after they messed with the easy page found on the ubuntu wiki: http://linuxbraindump.org/2007/08/17/restoring-grub Of course, this just allows you to boot grub. You will also have to edit the menu.lst file for it to find the new locations. -- Jonathan Arnold (mailto:jdarnold@buddydog.org) LinuxBrainDump, Linux HowTo's and Tutorials: http://www.linuxbrainddump.org Daemon Dancing in the Dark, an Open OS weblog: http://freebsd.amazingdev.com/blog/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Jonathan D. Arnold / Daemon Dancing wrote:
Sid Boyce wrote:
Gabriel wrote:
Sid Boyce escribió:
On 2007/08/29 04:25 (GMT+0100) Sid Boyce apparently typed:
I had a failing IDE HD as /dev/sda, so I installed 10.3 on a new SATA drive /dev/sdb and was booting from it until I removed /dev/sda. The SATA drive is now /dev/sda, but it won't boot, just the cursor on the top of the screen. Booted from DVD to rescue, altered fstab and menu.lst was changed from (hd1,0) to (hd0,0), still won't boot and grub commands give unrecognised device string errors. menu.lst now says gfxmenu (hd0,0)/boot/message No luck. Rescue isn't as easy as it used to be. The solution in http://lists.opensuse.org/opensuse-factory/2007-04/msg00048.html might be your solution. Did all that, /dev/disk/by-* tree is sound, looked up "info grub" and "info grub-install", nothing makes any sense. # grub-install /dev/sda1 # grub-install /dev/sda # grub-install (hd0) # grub-install (hd0,0) grub> setup --stage2=/boot/grub/stage2 (hd0) grub> setup --stage2=/boot/grub/stage2 (hd0,0) and other combinations using /dev/sda and /de/sda1 all give "Error 12: Invalid device requested". The odd thing is that when I had the IDE drive installed (/dev/sda) with
Felix Miata wrote: the SATA (/dev/sdb), it booted off /dev/sdb, after removing the IDE drive, it refused to boot. "fdisk -l /dev/sda" shows the bootable flag on /dev/sda1. I have / and a swap partition on the drive. I can't think of any incantation that will make grub do anything. /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 240 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 ata-WDC_WD3200AAKS-22SBA0_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 scsi-SATA_WDC_WD3200AAKS-_WD-WCAPZ1455963-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Aug 29 11:14 usb-HP_Photosmart_C4180_MY6CMH72JX04J7-0:0 -> ../../sdb
/dev/disk/by-path: total 0 drwxr-xr-x 2 root root 140 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:02.1-usb-0:2.3:1.3-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 pci-0000:00:05.0-scsi-0:0:0:0-part2 -> ../../sda2
/dev/disk/by-uuid: total 0 drwxr-xr-x 2 root root 80 Aug 29 11:13 ./ drwxr-xr-x 5 root root 120 Aug 29 12:02 ../ lrwxrwxrwx 1 root root 10 Aug 29 11:14 85d24d84-6169-4acd-8b05-0d4283199835 -> ../../sda1 lrwxrwxrwx 1 root root 10 Aug 29 11:14 e99d0381-afb9-4678-93bb-14f9afd27247 -> ../../sda2
Regards Sid. Shouldn't be necessary because you switch the disks, but, did you check device.map ?
Regards. ---------------------------------------------------------------------
I certainly did and it is the same before and after the problem was fixed. I also had removed the line "(hd1) /dev/sdb)". (fd0) /dev/fd0 (hd0) /dev/sda I'm perplexed as to why simply removing the IDE drive would cause the SATA drive to suddenly not boot, must have been something in the stages.
Coming to this party a little late, but the reason why the SATA drive wouldn't boot is because by removing the IDE drive, you changed the device name for the SATA drive. It went from hd1/sdb to hd0/sda, and so everywhere GRUB was looking for hd1 or sdb had to be changed to match the new disk layout.
I wrote up a short bit about restoring grub here, after they messed with the easy page found on the ubuntu wiki:
http://linuxbraindump.org/2007/08/17/restoring-grub
Of course, this just allows you to boot grub. You will also have to edit the menu.lst file for it to find the new locations.
I found what I wanted on the Ubuntu wiki when pointed in that direction, then I asked myself why I didn't google for an answer - probably at 04:00 you are never as smart as after you've been to bed. Thanks and Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (5)
-
Felix Miata
-
Frank-Michael Fischer
-
Gabriel
-
Jonathan D. Arnold / Daemon Dancing
-
Sid Boyce