PC Pals Forum

Technical Help & Discussion => Apple, Linux & Open Source Software: Help, News & Discussion => Topic started by: GillE on April 13, 2011, 10:04

Title: Deleting Windows Partition
Post by: GillE on April 13, 2011, 10:04
As mentioned in the thread about the Sansa Fuze video format (http://www.pc-pals.com/smf/linux-mac-open-source-software/video-format-for-sansa-fuze/), I'm now at the point where I'm prepared to free up space on my HDD by deleting Windows altogether.  How can I delete this partition safely?
Title: Re: Deleting Windows Partition
Post by: D-Dan on April 13, 2011, 10:10
Assuming that you still have Ubuntu installed, and the you use grub as your bootloader simply boot Ubuntu, start gparted and delete the partition. Afterwards to you can either extend your existing Ubuntu partition into the empty space, or create a shiny new partition there.

Steve
Title: Re: Deleting Windows Partition
Post by: GillE on April 13, 2011, 11:49
That sounds reassuringly straight forward :) .  How would I find out if I use grub as my bootloader and how would I extend the existing Ubuntu partition into the empty space?  I've never tinkered with partitions before, not even with Windows.
Title: Re: Deleting Windows Partition
Post by: sam on April 13, 2011, 13:33
gparted allows you to tinker with partitions all in a graphical window. I expect you do use Grubb (its the default), what does it say at the top of the boot up screen, where you get to choose what OS? gparted is the same tool that you would have used on the initially ubuntu install..

Just make sure any important things are backed up before changing the partitions.

Title: Re: Deleting Windows Partition
Post by: davy51 on April 13, 2011, 14:49
Ive found for me the safe way is delete the windows partition while in ubuntu

Go to gparted
right click on the partition windows is in and click delete

to enlarge Ubuntu partition
after the deleted windows

right click on the ubuntu partition and click   resize/ move

then you can use the arrows to enlarge the petition


then go to synaptic package manager
Type in grub in the search box

check to install

Grub pc
grub-common
startup manager
memtest


after these are installed

open a terminal and type

sudo update-grub


This works every time without a glitch

Grub will be installed and the partition will be all ubuntu


Sam may know an easier method but this is the one I use

Title: Re: Deleting Windows Partition
Post by: D-Dan on April 13, 2011, 20:24
That's about right, though I'm not so sure that it is necessary to reinstall grub. sudo update-grub should be sufficient.

Steve
Title: Re: Deleting Windows Partition
Post by: davy51 on April 13, 2011, 22:28
Since Im relative newbie to linux I always reinstall grub just in case iits corrupted somehow

It saves a few steps if it doesnt show up when i reboot
Title: Re: Deleting Windows Partition
Post by: GillE on April 14, 2011, 13:16
I've stumbled at the first step :( .

I don't know where to find gparted so I opened a terminal and wrote 'gparted'.  It replied that gparted was not installed and instructed me to install it using the following code:

sudo apt-get install gparted

I did that and it installed the programme, then I saw this message on the terminal:

dpkg: status database area is locked by another process
E: sub-process /usr/bin/dpkg returned an error code (2)

Where do I go from here?

Title: Re: Deleting Windows Partition
Post by: sam on April 14, 2011, 13:23
I guess 10.10 doesn't install it by default, I just tried it an installed it.

Quote
dpkg: status database area is locked by another process
E: sub-process /usr/bin/dpkg returned an error code (2)

You probably have some other update program open, do you  have the software centre open - it doesn't like allowing you to install from the repository more than once at a time.

Could you post the rest of the output?
Title: Re: Deleting Windows Partition
Post by: D-Dan on April 15, 2011, 12:47
As Sam says, you definitely have either Software Manager, or an update package (like MintUpdate) already running. Software Manager et al are simply front ends to apt-get, and so you can only run one at a time. If you can't find an already running process then rebooting will fix it (or maybe even just log out and log back in).

Steve
Title: Re: Deleting Windows Partition
Post by: GillE on April 15, 2011, 21:25
I'll look at it again and see if I can sort it out.  It's having to take a back seat at the moment - my allotment needs loads of work and I've got trays full of seedlings to plant.