Grubby problem

David M. Carney carney1979 at gmail.com
Wed Dec 29 02:54:32 UTC 2004


On Tue, 28 Dec 2004 19:06:02 -0600, Rich Duzenbury
<rduz-ubuntu at theduz.com> wrote:
> Hi ubunters,
> 
> I started with a machine with one disk which had win98 on one partition
> and win2000 on another.  I inserted a new primary disk to install ubuntu
> on, and then setup raid1 mirroring between the two disks.
> 
> I still have the old win98 and win2000 partitions on sdb, and I'd like
> to be able to boot them.
> 
> I've been fooling around with grub to try to find the right
> incantations, but so far, no joy.
> 
> root at wisconsin:/home/rduz # sfdisk -l
> 
> Disk /dev/sda: 9729 cylinders, 255 heads, 63 sectors/track
> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from
> 0
> 
>    Device Boot Start     End   #cyls    #blocks   Id  System
> /dev/sda1          0+     23      24-    192748+  fd  Linux raid
> autodetect
> /dev/sda2         24     145     122     979965   fd  Linux raid
> autodetect
> /dev/sda3        146    6078    5933   47656822+  fd  Linux raid
> autodetect
> /dev/sda4   *   6079    9728    3650   29318625   83  Linux
> 
> Disk /dev/sdb: 9729 cylinders, 255 heads, 63 sectors/track
> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from
> 0
> 
>    Device Boot Start     End   #cyls    #blocks   Id  System
> /dev/sdb1          0+    764     765-   6144831    b  W95 FAT32
> /dev/sdb2   *   8757    9728     972    7807590   77  Unknown
> /dev/sdb3        765    8756    7992   64195740    f  W95 Ext'd (LBA)
> /dev/sdb4          0       -       0          0    0  Empty
> /dev/sdb5        765+   2676    1912-  15358108+   7  HPFS/NTFS
> /dev/sdb6       2677+   2700      24-    192748+  fd  Linux raid
> autodetect
> /dev/sdb7       2701+   2823-    122     979965   fd  Linux raid
> autodetect
> /dev/sdb8       2823+   8756-   5933   47656822+  fd  Linux raid
> autodetect
> 
> As you can see, sdb1 seems to have the win98, and sdb5 seems to have the
> NT partition.
> 
> I'm certainly a grub noob as you can tell.
> 
> Thank you for any help you can offer.
> 
> --
> Regards,
> Rich
> 
> Current Conditions in Des Moines, IA
> Clear
> Temp 37.4F, Windchill 32F
> Winds out of the North at 7mph
> 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 
Unfortunately, Windows always wants to be the first OS on the first
drive. But there is a way to fool Windows into thinking it IS the
first OS on the first drive, even though it is not, as in your case.

I have a little more simple setup, but perhaps you could learn from it.

I have Ubuntu linux on the first (80 gig) drive. It possess the whole drive.

Win XP Pro is on the second drive (20 gig). It possess that whole drive.

My drives are not scsi or STAT, but I believe my grub setup will steer
you in the right direction.

The Ubuntu is straight forward for setting up Linux on a hard drive.
So I won't list it here.

Here is the Windows part for the second drive:

title		Windows XP
root		(hd1,0)
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

The first map line fools my system into thinking that the first drive
is actually the second drive.

The second map line fools my system into thinking the second drive is
actually the first drive.

Now, Windows is fooled into thinking it is on the first drive and it
will boot and run as normal.

Best of luck to you.

David

-- 
Registered Linux User #297958




More information about the ubuntu-users mailing list