Before i re-install windows I thought it would be prudent to ensure that I select the correct partition to install on.
Finding out how your partitions are set up is quite easy in Ubuntu. Bring up a command shell and start the The GNU Parted disk partition resizing program, otherwise known as “parted”. To start it type sudo parted at the prompt.
Then all you have to do is type print all. Here is the output from print all on my PC:
Disk /dev/hda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
.
Number Start End Size Type File system Flags
1 32.3kB 7863MB 7863MB primary fat32 boot
4 7863MB 15.7GB 7863MB primary ext3
2 15.7GB 79.5GB 63.8GB primary fat32 lba
3 79.5GB 80.0GB 526MB extended lba
5 79.5GB 80.0GB 526MB logical linux-swap
.
Disk /dev/hdc: 200GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
.
Number Start End Size Type File system Flags
1 32.3kB 200GB 200GB primary ntfs
You can see I have two hard drives. Ubuntu references them as /dev/hda and /dev/hdc.
/dev/hdc is just a single partition of 200GB that I use to stash data on (My Documents, family pictures, mp3’s etc).
The other one – /dev/hda is a smaller drive I use to hold my operating systems. The logic here is that I can re-install Windows/Ubuntu as often as I like and my data will remain intact on the PC.
hda: [80GB] First hard drive
- hda1: [7.8GB] Windows installation (C:\)
- hda2: [63.8GB] General dumping ground – shared between operating systems. (G:\ in windows. Known as /media/hda2 in ubuntu).
- hda3: [0.5GB] extended partition for holding logical partitions
- hda4: [7.8GB] Ubuntu installation (\)
- hda5: [0.5GB] linux swap partition
hdc: [200GB] Second hard drive
- hdc1: [200GB] Data drive. (D:\ in windows. Known as /media/hdc1 in Ubuntu).