LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-30-2006, 03:00 PM   #1
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
GParted NTFS Resizing-Has anyone had any problems with it?


I'm about to install Linux on a friends machine. He's currently running Windows. I need to resize his partitions (he's using 14GB for Windows out of 55GB for the HD. I'm thinking about using the GParted live CD. My question is: Has anyone lost any data resizing an NTFS partition? Is there any possibility of messing up? Does GParted check if there's data in the end of the partition?

I had a problem with installing Linux the first time and lost data, but a backup saved my butt. (I never used the Windows again, though.) However, though I'm going to back up, I'd rather not restore and restart. Also, is there any easy way to back up to a USB external hard drive using Linux? I'm thinking about using dd to write to the HD and if it fails write back. Would that work?
 
Old 06-30-2006, 03:27 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
No, I didn't lose data.

BUT, there's a process that will help prevent you losing data. First run defrag. You'll probably see some green bars left somewhere that are marked as "unmoveable files" or the like. These are things like the system pagefile and the laptop hibernation storage file. This link tells you how to disable them and then run defrag again. Keep running it until there are no files in the last half of the drive. Don't re-enable these until after you've resized the hard disk.

You'll have to kind of guess as to how much actual free space is at the end. Take note of this appoximate amount of space free. Then reboot into the GParted Live CD and resize the NTFS partition. I also setup my shared FAT32 partition, swap, and /. But you can do those later if you want. Then I reboot into windows and make sure everything works fine, re-enable the pagefile and then go ahead with my linux install.
 
Old 06-30-2006, 04:00 PM   #3
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks a lot! I've had incredible problems defragmenting before. *sigh*. That's why I love Linux filesystems. Yay reiserfs!
 
Old 07-13-2006, 03:58 PM   #4
tombiz
Member
 
Registered: Jun 2006
Location: Chicago
Posts: 64

Rep: Reputation: 15
I just used Gparted, and I did not lose any of my data.
 
Old 07-13-2006, 04:02 PM   #5
tombiz
Member
 
Registered: Jun 2006
Location: Chicago
Posts: 64

Rep: Reputation: 15
I just rebooted into Windows and I can see the partition that I created with the exact disk space that I setup under Ubuntu Live CD.
 
Old 07-13-2006, 06:08 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
All the GUIs call ntfsresize under the covers. As such, no defragging (and screwing around with pagefile and such) is necessary.

I use ntfsresize all the time, and never had a problem. ntfsclone can be used (from Linux) to create a backup. All this is in the ntfsprogs package - a great piece of work.
See the home page.
 
Old 08-31-2006, 02:15 PM   #7
k9bud
LQ Newbie
 
Registered: Aug 2006
Location: Mooresville, IN
Distribution: Mandriva 2007 Official
Posts: 6

Rep: Reputation: 0
GParted Live CD

I guess my first question is why do you want to resize when it appears that you have 41 GB free? I used GParted Live CD, version 0.2.5.5, to resize my Compaq. I didn't know I had an error in Windows, until I tried to resize and it said it could not continue. After I corrected the error in Windows, I was able to resize my windows partition, (made it smaller), without any loss of information.

Last edited by k9bud; 08-31-2006 at 02:16 PM.
 
Old 11-07-2006, 04:06 AM   #8
PTodd
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by syg00
All the GUIs call ntfsresize under the covers. As such, no defragging (and screwing around with pagefile and such) is necessary.

I use ntfsresize all the time, and never had a problem. ntfsclone can be used (from Linux) to create a backup. All this is in the ntfsprogs package - a great piece of work.
Hello, I just got to this thread via google.

I've used ntfsresize once, and had one pretty major problem.

I attempted to resize my NTFS partition using GParted via the Ubuntu Live CD installer yesterday, and now it is broken. YMMV. I defragged, but perhaps I should have disabled page file and hibernation as well first.

Maybe it doesn't work if you play gnometris while you wait...
 
Old 11-07-2006, 02:38 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Installers are a whole different can of worms. In Ubuntus case the 6.10 one finally seems to be getting there.
How is your NTFS broken ???.

I am no fan of GUIs - I do any resizing "by hand" (i.e. CLI) prior to needing it.
 
Old 11-07-2006, 07:26 PM   #10
PTodd
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by syg00
Installers are a whole different can of worms. In Ubuntus case the 6.10 one finally seems to be getting there.
How is your NTFS broken ???.

I am no fan of GUIs - I do any resizing "by hand" (i.e. CLI) prior to needing it.
To be honest, I'm not exactly sure what the problem was, but I was able to fix it fairly easily (and somewhat naively ) with TestDisk. Sorry for the lack of detail, it's late now and I'm just about to go to bed.

My second attempt (again with the Ubuntu 6.06 installer), having disabled paging and hibernation in Windows, was more successful; touch wood everything is fine now, with the disk partitioned as intended.

I see where you're coming from when you say that installers are a whole different can of worms, but at the same time, surely this is when a good bulk of NTFS resizing takes place. At that phase of the install, GParted was the program responsible, regardless of the fact that it had been called via an installer wizard... and GParted itself seems to be a fairly transparent interface to the command line tool; clicking the 'details' button displays the command that it's executing, which is essentially equivalent to what one'd run from a terminal.

Please let me know if I'm misguided here...
 
Old 11-08-2006, 12:29 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The concern I have is that if ntfsresize raises an error, the GUI simply closes with a "failed" message (message-box usually), and doesn't present the error.
This is unacceptable.

I've had it happen, and now I make sure I don't miss the errors anymore. My choice - each to their own.
 
Old 11-08-2006, 06:14 AM   #12
PTodd
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by syg00
The concern I have is that if ntfsresize raises an error, the GUI simply closes with a "failed" message (message-box usually), and doesn't present the error.
This is unacceptable.

I've had it happen, and now I make sure I don't miss the errors anymore. My choice - each to their own.
That certainly is a legitamate reason for going the CLI way... although the GUI did give more specific messages than I reported here, I'm afraid I've been taking a rather ham-fisted approach to this install (it's my funeral if it all goes pear shaped). From my limited experience, I was rather imagining that it was all ending up in some log somewhere - perhaps that's wishful thinking... of course any logs created by a live cd are volatile, anyway; and I didn't bother to locate verify or backup these (imaginary?) logs.

It's an interesting point though, even if the error message in the dialog of a gui is identical to one output in a terminal, it's gone as soon as you click past it... which given the brazen approach people like me sometimes take to these things, is not really a good thing. One of my pet hates about error messages in dialogs (particularly in windows) is when you can't even copy the text... I've been known to take photos of error messages that I can't be bothered to process fully at the time they're presented...

Last edited by PTodd; 11-08-2006 at 06:22 AM.
 
  


Reply

Tags
gparted



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
error resizing NTFS partition with gParted live CD Nived87 Linux - Newbie 5 05-29-2006 01:53 AM
NTFS Resizing TaylorVcl Slackware - Installation 4 02-01-2006 04:06 PM
what is the best way in resizing ntfs LinToWinWin Linux - Software 1 09-18-2005 09:23 PM
URGENT! Resizing NTFS partition size problems. rconan Linux - Software 3 09-03-2005 12:03 PM
Resizing NTFS nchauhan Linux - General 2 12-06-2004 03:35 PM

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

All times are GMT -5. The time now is 10:47 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