LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2012, 10:59 AM   #1
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Rep: Reputation: 15
Resizing and moving large partitions


I have a 2TB (external) HD, with 1.5TB used. What's the best way that I can (on the hard drive) convert it from ntfs to ext2?

My only thought was to resize, create a new partition, and move stuff over slowly, but that's going to require (eventually) moving a whole 1.5TB disk to the left 500GB (at least with with how gparted works).

Code:
1) resize sdb1 (ntfs) from 2TB to 1.5TB
* <500GB
2) create new partition (sdb2 -- ext2)
3) move 500GB of data from sdb1 to sdb2
* 500GB
4) resize sdb1 from 1.5TB to 1.0TB
* <500GB
5) move sdb2 to the left 500GB and add 500GB
* 500GB
6) move 500GB of data from sdb1 to sdb2
* 500GB
7) resize sdb1 from 1.0TB to 500GB
* <500GB
8) move sdb2 to the left 500GB and add 500GB
* 1TB
9) move 500GB of data from sdb1 to sdb2
* 500GB
10) delete sdb1
11) move sdb2 to the left 500GB and add 500GB
* 1.5TB

Cost: 4.5-6TB
without having to move partitions to the left: 1.5TB - 3.0TB
So you see, the issues are steps 5, 8, and 11. If only I could add the data to the head of the partition, instead of having to move all the data over...

I guess my question comes down to: Is there any easy way to do something like this? If not, is there any way to "incorporate" free space before a partition, without moving the whole partition?
 
Old 03-05-2012, 11:32 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
0. Use xfs or ext4 not ext2
Best is to use another hard disk or
Simply compress the data to tar.bz2
Resize move data
decompress
 
Old 03-05-2012, 12:13 PM   #3
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by amani View Post
0. Use xfs or ext4 not ext2
I agree. I'm trying to maintain a small amount of compatibility with Windows, though.
Quote:
Originally Posted by amani View Post
Best is to use another hard disk or
Yeah, that's my fall back plan, but requires finding another hard drive.
Quote:
Originally Posted by amani View Post
Simply compress the data to tar.bz2
Resize move data
decompress
Unfortunately that won't work because the data doesn't compress very well...
 
Old 03-05-2012, 12:23 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
What a dilemma. I don't know of a way to "convert" between those two very different filesystems.

Especially if you consider this to be important data, this may be one situation where you want to shell out for the new drive, unfortunately. (I get nervous about multiple filesystem / partition resizes when it comes to data I mustn't lose. One little goof in your sequence may be a disaster.)

-------

edit: Let's put it into a monetary argument. Is the data worth more than US$150 (the approximate cost of a new 2TB drive) to you?

If so, better to play it safe and buy. (Unless someone follows up with an elegant, low-risk method for accomplishing your task.)

Last edited by anomie; 03-05-2012 at 12:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Resizing and Moving Linux Partitions Folcrom Linux - General 8 07-11-2007 08:13 PM
Moving and Resizing Partitions NetRAVEN5000 Linux - Hardware 5 02-18-2006 06:05 PM
Resizing and moving partitions linmix Linux - Software 16 04-09-2005 09:08 AM
resizing and moving partitions DAChristen29 Linux - Newbie 4 10-18-2004 09:48 PM
Moving and resizing partitions slyman Linux - General 2 07-04-2004 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 AM.

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