LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Uninstalling Win7 (http://www.linuxquestions.org/questions/linux-newbie-8/uninstalling-win7-812538/)

darran 06-06-2010 04:41 PM

Uninstalling Win7
 
I have a dual boot laptop Fedora and Win7, I want to remove win7 completely, so I can use the full hard drive for linux.
How would I do this, so it boots linux only.

Thanks for any Advice

brucehinrichs 06-06-2010 05:05 PM

Please post the output of (as root or sudo):
Code:

fdisk -l
The answer depends on whether Fedora is using LVM.

darran 06-06-2010 06:52 PM

Disk /dev/sda: 160 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes
I/O size (minimal/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3e32d19e

list of partitions
ntfs - boot (does not end on cylinder boundary)
ntfs
linux
linux swap/solaris
linux

brucehinrichs 06-06-2010 06:59 PM

I don't see the 'Id' column. Please post exactly the results of fdisk -l.

EDIT: Mine, for example:

Code:

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Disk identifier: 0x0007c950

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        243    1951866  82  Linux swap / Solaris
/dev/sda2  *        244        304      489982+  83  Linux
/dev/sda3            305      10815    84429607+  83  Linux
/dev/sda4          10816      24321  108486914    5  Extended
/dev/sda5          10816      14640    30724281  83  Linux
/dev/sda6          14641      16590    15663343+  83  Linux
/dev/sda7          16591      18540    15663343+  83  Linux
/dev/sda8          18541      20485    15623181  83  Linux
/dev/sda9          20486      22430    15623181  83  Linux
/dev/sda10          22431      24321    15189426  83  Linux


darran 06-06-2010 07:37 PM

Code:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3e32d19e

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        6387    51200000    7  HPFS/NTFS
/dev/sda3            6387        7025    5120000  83  Linux
/dev/sda4            7025      19458    99866624    5  Extended
/dev/sda5            7025      10085    24576000  83  Linux
/dev/sda6          10085      10467    3072000  82  Linux swap / Solaris
/dev/sda7          10467      19458    72215552  83  Linux


RockDoctor 06-06-2010 08:01 PM

Are you sure it wouldn't be better to just shrink the Win7 partition but keep it around? Just asking

rich_c 06-06-2010 10:26 PM

I am contemplating a similar excercise. I have two possible methods in mind.

The first is to make a backup of all my data and do a fresh install using the whole disk.

The second is to back up the data on my Windows partition and reformat that as Ext3 to be mounted as a seperate data directory.

I'm sort of leaning toward the fresh install when the next full version of Mepis comes out.

darran 06-07-2010 12:04 PM

I was thinking about wiping windows and formatting it too, but to ex4(fedora 13).

Code:

/dev/hdb1          /home2          ext4          defaults          1 2
hdb1 will be replaced with the relevant partition
/home2 will be created in the same directory as home(so in root i think)

Would this be any good to add to my fstab?

schneidz 06-07-2010 03:39 PM

would you be able to delete/shrink/grow the partitions with gparted live cd/usb.

saikee 06-07-2010 04:49 PM

It is not going to work out!

Your Windows are in primaries sda1 and sda2.

If you have a separate /home it would be sda7 (full details in /etc/fstab) which is a logical partition at the end.

You cannot mix space from a primary partition (or partitions) with a logical partition unless they are neighbouring each other in a hard disk.

It is like having a bathroom between bedroom 1 and bedroom 2. You can't combine the two together. If there is no bathroom in between you can at least knock down the wall in between to make two rooms into one.

You could remove sda1 and sda2 and shift everything upward in the hard disk so the the space is available at the bottom of the disk to be absorbed into sda7 but there is a lot of shifting work. You will also need to restore Grub once the hard disk address has been changed.

I would clone the 200Gb disk into a larger disk and use the additional space. The 2TB hard disks are now being sold at probably the same price when you bought the 200Gb!

schneidz 06-08-2010 11:17 AM

^i would at least play around with gparted live to see if it is possible to move/copy/delete/resize partitions the way you like.

darran 06-09-2010 09:08 AM

I have a Parted Magic live disk for partition editing, how would I re-install grub, not sure how to do it?

schneidz 06-09-2010 09:26 AM

these look promising:
http://www.howtogeek.com/howto/ubunt...-wipes-it-out/
http://ilovefedora.blogspot.com/2009/05/reinstall.html

jefro 06-09-2010 05:04 PM

You can simply make any partition and attach it to the system as space. You don't really have to merge delete or expand partitions if you don't want to.


All times are GMT -5. The time now is 01:25 PM.