[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can I partition a disk and make it bootable for windows from linux?



On Fri, Jan 21, 2005 at 06:29:47PM -0500, Spongebob wrote:
> I have all drives disconnected except hdd, and windows boots correctly. Now 
> I connect hda. I've removed windows from hda1 and it is now my linux root 
> partition.
> 
> First, how do I make grub load windows?

I suggest play around with the grub command line until you find out what
works, rather than editing the config file over and over.  If you're not sure
what grub device your /dev/hdd is, check out /boot/grub/device.map

`--recheck'
     Recheck the device map, even if `/boot/grub/device.map' already
     exists. You should use this option whenever you add/remove a disk
     into/from your computer.

/dev/hdd1 might be (hd4,0), that's just a guess.

grub has command-line argument completion, you can type:

  root (<tab>

and it will tell you what discs are available.

> Second, 
>    sfdisk -l /dev/hdd
> gives me a warning about a linux partition not being aligned to a cylinder 
> head and that this could cause problems because linux will interpret it one 
> way and windows will interpret it another. How do I correct this, 
> preferably without losing data?

Dunno.  Possibly with parted, but it might not be able to move the start of
the partition depending what type of filesystem you've got in it.



Reply to: