deleting my windows partition

Sebastian Kügler sebas at kde.nl
Wed Jun 1 02:00:04 UTC 2005


Hi Sara,

On Wednesday 01 June 2005 03:15, Sara Vasquez wrote:
> So now I don't see the need for a windows partition.
> I have everything I need, well I don't have napster but we are
> running it in another computer. Now I wnat to get rid of all that
> windows stuff. I don;t know if I can get rid of of an NTFS partition
> using gparted or maybe something else. Thanks for you replies in
> advanced.

Assuming you know which partition it is, you can just 'format' the 
partition with mkfs, add it to your fstab and mount it.

Here's a step-by-step howto (lines beginning with $ containt commands 
you have to run):

1) Look up the partition with 
$ sudo fdisk -l

/dev/hda1   *           1         486     3903763+   7  HPFS/NTFS
/dev/hda2            1276        9732    67930852+   f  W95 Ext'd (LBA)

If you find one of these lines, they are a good candidate, the type of 
the filesystem should give a good hint (usually W95 or NTFS types). The 
number+ column is the size of the respective partition, divide it by 
1024 and you have the size in MB.

!!! Make sure there's no important data on it you don't have backups 
for, and double check you choose the right partition to format. !!!

2) format the partition using mkfs. I usually choose reiserfs as a 
filesystem since its overall performance is quite good.
$ sudo mkfs.reiserfs /dev/hda2

!!! Change the /dev/hda2 to the partition name from the first column of 
fdisk's output. !!!

3) Create a new "mountpoint", a directory where your partition can be 
found in the filesystem:
$ sudo mkdir /mnt/mypartition

3) Add a line corresponding to that 'new' partition to your fstab:
$ sudo kwrite /etc/fstab
Then add a line like the following:
/dev/hda2   /mnt/mypartition     reiserfs defaults          0       1

4) Mount your partition
$ mount /mnt/mypartition
(This gives no output, check "dmesg | tail" and "du -h" and "mount" if 
everything went OK and the partition is mounted in your filesystem.)

5) Change permissions of the partition, you probably want to use it as 
user "sara":
$ sudo chown sara.users /mnt/mypartition

That's about it, I hope it's clear. :-)

Cheers,

sebas
-- 
  http://vizZzion.org   |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
It is necessary for the welfare of society that genius should be 
privileged to utter sedition, to blaspheme, to outrage good taste, to 
corrupt the youthful mind, and generally to scandalize one's uncles. - 
George Bernard Shaw

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20050601/eb150d68/attachment.sig>


More information about the kubuntu-users mailing list