fogster
September 3rd, 2007, 10:54 PM
I've recently replaced my small WinXP-only hard drive with a much bigger drive. The primary OS is Ubuntu, but 'sda4' is a 60GB NTFS partition that's a clone of my Windows hard drive.
I never bothered trying to boot Windows from this, since Windows apparently doesn't like when it's not near the front of a disk. So the machine runs Ubuntu only; WinXP just sits there.
I'm trying VMware now, though, and am having some problems... I want to boot from that partition.
First of all, I'm running vmware as root to avoid permission issues.
I try to add a 'hard drive' to the VM as a 'physical disk' and set the partition (not a whole disk, but a partition) as /dev/sda4. I get the error:
Failed to load partitions for device /dev/sda4:
The partition table is invalid.
I then tried mounting sda4 via ntfsmount, but that didn't help anything so I unmounted it again. (I can mount it just fine, though, that way. It just doesn't help VMware any.)
I think the problem might have to do with a crappy partition job (logical vs. extended), but I'm able to mount and use /dev/sda4 fine otherwise, so I'm not so sure...
In case it matters...
$ sudo fdisk /dev/sda
The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 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/sda1 1 4863 39062016 83 Linux
/dev/sda2 4864 5112 2000092+ 82 Linux swap / Solaris
/dev/sda3 5113 12407 58597087+ b W95 FAT32
/dev/sda4 12408 19457 56629125 7 HPFS/NTFS
Can anyone at least tell me what's wrong? (Ideally, how to make it work...) Can I fix this without deleting partitions?
I never bothered trying to boot Windows from this, since Windows apparently doesn't like when it's not near the front of a disk. So the machine runs Ubuntu only; WinXP just sits there.
I'm trying VMware now, though, and am having some problems... I want to boot from that partition.
First of all, I'm running vmware as root to avoid permission issues.
I try to add a 'hard drive' to the VM as a 'physical disk' and set the partition (not a whole disk, but a partition) as /dev/sda4. I get the error:
Failed to load partitions for device /dev/sda4:
The partition table is invalid.
I then tried mounting sda4 via ntfsmount, but that didn't help anything so I unmounted it again. (I can mount it just fine, though, that way. It just doesn't help VMware any.)
I think the problem might have to do with a crappy partition job (logical vs. extended), but I'm able to mount and use /dev/sda4 fine otherwise, so I'm not so sure...
In case it matters...
$ sudo fdisk /dev/sda
The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 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/sda1 1 4863 39062016 83 Linux
/dev/sda2 4864 5112 2000092+ 82 Linux swap / Solaris
/dev/sda3 5113 12407 58597087+ b W95 FAT32
/dev/sda4 12408 19457 56629125 7 HPFS/NTFS
Can anyone at least tell me what's wrong? (Ideally, how to make it work...) Can I fix this without deleting partitions?