PDA

View Full Version : [ubuntu] Partition and swap problem



metalaarif
March 11th, 2009, 04:51 AM
I have installed Windows and Ubuntu. Windows use 2 partition Primary and Extended partition, where as Ubuntu uses 2 primary partion. Root and swap has primary partition.
Now i want 2 install another OS but no partition left and i dont want to format windows.

Can i remove Swap from primary partion then put it in extended partion.

can any1 help me please

Neo_The_User
March 11th, 2009, 04:53 AM
Not extended but you can put it in a logical partition.

metalaarif
March 11th, 2009, 04:59 AM
Yes yes i understand about Logical partion but
how do i do it .. please please can you help me

i tried deleting the swap and creating a new one but i couldn't do it.

Neo_The_User
March 11th, 2009, 05:01 AM
Yes you can. Your hard drive /dev/sda correct?

metalaarif
March 11th, 2009, 05:02 AM
Yes your right it is /dev/sda

Neo_The_User
March 11th, 2009, 05:03 AM
OK. You got Ubuntu livecd?

metalaarif
March 11th, 2009, 05:04 AM
yes i got it it's right here

Neo_The_User
March 11th, 2009, 05:06 AM
M'kay lets get started.

Boot off of the livecd, open a terminal, type in sudo fdisk -l (its a lowercase L) and post all the output so I can see. Then I could be of further help.

metalaarif
March 11th, 2009, 05:09 AM
you mean

1) i gotta boot with my live CD then
2) open terminal then type fdisk -l
fdisk means to format and then what is l

anyway ok i will do it .. if output comes out i will post it

Neo_The_User
March 11th, 2009, 05:11 AM
fdisk doesn't have to format if you don't tell it to.



sudo fdisk -l


It lists all your hard drive info that I'll need and your partitions. now the d command in fdisk is what erases / formats things which is WHAT YOU DO NOT WANT ATM.

metalaarif
March 11th, 2009, 05:13 AM
Ok thanx i will be back in few minutes please don go

i'm gone boot now

Neo_The_User
March 11th, 2009, 05:14 AM
I'm not leaving until... 45 minutes then its my bed time.

metalaarif
March 11th, 2009, 06:05 AM
hey sorry bit problem with connection
and my cdrom was not working

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x04f404f3

Device Boot Start End Blocks Id System
/dev/sda1 * 1 15137 121587921 7 HPFS/NTFS
/dev/sda2 19371 56420 297604125 f W95 Ext'd (LBA)
/dev/sda3 56421 60801 35190382+ 83 Linux
/dev/sda5 19371 42868 188747653+ 7 HPFS/NTFS
/dev/sda6 42869 55922 104856223+ 7 HPFS/NTFS
/dev/sda7 55923 56420 4000153+ 82 Linux swap / Solaris

i hope you help