LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to cut a piece of my partition? (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-cut-a-piece-of-my-partition-328519/)

don_dimo 05-30-2005 09:10 AM

How to cut a piece of my partition?
 
Hi all!!

I have a 30GB partition for my linux (FC2-Kde) but I have a lot of free space on that and I need to cut 3GB and make a new partition out of it and format it as ntfs. How can I do that - is it safe?

Thank you!

niknah 05-30-2005 09:50 AM

look up resize2fs to resize the filesystem inside the partition.
then run fdisk or cfdisk to resize the partition.

make sure you get the number right when putting them into fdisk, should be equal or larger than the new filesystem size.

If it's your main partition, you might have to boot up into single user mode first.

don_dimo 05-30-2005 10:13 AM

I was actually looking at parted which should do the job .. but I am confused as to what numbers you should supply. In the example it gives :

#parted /dev/hda
#resize 3 1024 2048

The last 2 numbers are the starting and ending point but where do I get them from? When I do
#parted /dev/hda
#print

output is:

1 0.000 75365

So in my case would the resize command be:

#resize 1 0.000 72365 (would that just decrease my existing partition to 3gb less than what it was)

Plus I have data on the partition and I dont want to cut it so some of the data ends up on the new partition or becomes useless.

To make it simpler I guess can I use Partition Magic under my Win partition?


All times are GMT -5. The time now is 11:06 AM.