LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-30-2005, 09:10 AM   #1
don_dimo
Member
 
Registered: Oct 2003
Location: Blacksburg, VA
Distribution: Fedora Core 2 (kde)
Posts: 144

Rep: Reputation: 15
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!
 
Old 05-30-2005, 09:50 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
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.
 
Old 05-30-2005, 10:13 AM   #3
don_dimo
Member
 
Registered: Oct 2003
Location: Blacksburg, VA
Distribution: Fedora Core 2 (kde)
Posts: 144

Original Poster
Rep: Reputation: 15
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chess Piece Icons ninjabob7 Programming 5 11-24-2005 12:51 PM
How do I cut out a specific piece of a html page (using sed/awk or similar)? bomix Linux - General 2 10-08-2005 04:30 PM
How do I isolate a piece of string? vous Programming 4 03-16-2005 01:43 PM
Looking for a piece of software jkruer01 Linux - Software 5 07-23-2004 03:52 PM
what is this funny piece of hardware? andzerger Linux - Hardware 3 03-10-2004 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration