Saikee,
[Edited immediately after posting... and now I've run yet another Ubuntu Live CD session I've got to correct what's said between these square parentheses as /media/ieee1394disk/etc/fstab file once again shows external Firewire Seagate is /dev/sda. This is terribly bewildering to a newbie.
oops, I see on re-review of what I've just posted external Firewire Seagate disk which used to be /dev/sda before effecting Saikee's changes now appears in FSDISK as /dev/sdb I hadn't noticed this before. Not certain how this happened but seems to be result of grub stage2 install succeeding. I think I'll hold off doing anything else to further mess things up until Saikee replies where I should go from here. TIA, Saikee, ball back to you. Thanks]
Know how these issues in threads can quickly become hopelessly confusing so I've printed out files and dialogues of what I did and what ensued below your quote. I got a GRUB Error 21 although GRUB stage2 now does seem to be installed on /media/ieee1394disk so I'm not certain if I'm going backward or forward deeper into a bootlessable swamp.
Quote:
...
Suggestions to move the situation forward. The hidden partition in your case should not matter because you have identified XP is in hda2.
(1) Reinstate the original hard disk naming system. i.e. hda2 must be (hd0,1) to Grub and sda1 must be (hd1,0), indicating XP is to be found in the 1st disk 2nd partition and Ubuntu is in the 1st partition of the 2nd disk (Grub counts everything from 0).
(2) Place Grub in the MBR after executing (1). There are two ways to do it in your case. My guess is that you already know this.
Traditional route - you replicate Grub by Linux in a Bash shell. After you have successfully change root to the external Linux just type
grub-install /dev/hda
Quicker route with a Live CD with Grub support - When you boot up the PC with the Ubuntu Live CD, click root terminal and type Grub to get a Grub shell, then type
root (hd1,0) <------- tell Grub the root of the Linux of interest to youright now
setup (hd0) <-----------tell Grub to set up itself in (hd0) using the data from the specified root
Boot the Ubuntu up to see if it can cope with the USB cable.
...
|
After reverse-editing /media/ieee1394disk/boot/grub/menu.lst back to original Ubuntu 5.10 Install CD's settings for three GRUB occurrences of root (hd1,0) and Windows title section root (0,1) here's what happened Sun 27-Nov-2005 when launched GRUB as root in Ubuntu Live CD session shell:
===============
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 d (hd0) (hd0)1+16 p (hd1,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> exit
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
+-------------------------------------------------------------------------+
| Ubuntu, kernel 2.6.12-9-386 |
| Ubuntu, kernel 2.6.12-9-386 (recovery mode) |
| Ubuntu, memtest86+ |
| Other operating systems: |
| Microsoft Windows XP Home Edition |
| |
| |
| |
| |
| |
| |
| |
+-------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, or 'c' for a command-line.
Booting 'Ubuntu, kernel 2.6.12-9-386 '
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/sda1 ro quiet splash
[Linux-bzImage, setup=0x1c00, size=0x124b1b]
initrd /boot/initrd.img-2.6.12-9-386
Error 16: Inconsistent filesystem structure
So hit Escape key back to bootloader options including Microsoft Windows XP, chose Microsoft and got
Booting 'Microsoft Windows XP Home Edition'
root (hd0,1)
Filesystem type unknown, partition type 0x7
savedefault
Error 15: File not found
Press any key to continue...
Seems like endless GRUB loop so I closed GRUB window, shutdown Ubuntu Live CD to reboot, and removed Ubuntu Live CD-ROM when it was ejected from CD drive, hit Enter to reboot. Next had to manually power off notebook PC and reboot using my emergency floppy XP quick rescue disk to be able to boot up into Windows XP again because here's the GRUB screen notebook PC shows when I'm presuming the once-again-messed-up-MBR-by-me-in-Ubuntu Live CD tries to reboot:
1800 MHz Pentium 4 CPU
External cache: 512K installed
No Bootable CD in ATAPI CD-ROM
GRUB Loading satge 1.5.
GRUB loading, please wait...
Error 21
(blinking cursor on black screen accepts no keyboard entry)
I am able to reboot WinXP OK from floppy drive A: connected to one of the docked notebook PC's four USB 1.1 ports.
Finally, to be double-certain we're on the same page here's menu.lst and partitions now after GRUB setup (hd0) command
that is /media/ieee1394disk/boot/grub/menu.lst saved Nov-27-2005 during Ubuntu Live CD
================================================================
...
## ## End Default Options ##
title Ubuntu, kernel 2.6.12-9-386
root (hd1,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot
title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot
title Ubuntu, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
boot
### 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/hda2
title Microsoft Windows XP Home Edition
root (hd0,1)
savedefault
chainloader +1
======================================================
FDISK
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/hda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 2 9 64260 84 OS/2 hidden C: drive
/dev/hda2 * 10 2686 21503002+ 7 HPFS/NTFS
/dev/hda3 2687 3648 7727265 f W95 Ext'd (LBA)
/dev/hda5 2687 3648 7727233+ b W95 FAT32
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 19186 154111513+ 83 Linux
/dev/sdb2 19187 19457 2176807+ f W95 Ext'd (LBA)
/dev/sdb5 19187 19457 2176776 82 Linux swap / Solaris
Thanks for all your help and patience.