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:
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows?action=show&redirect=RecoverGrub
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]