LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2007, 04:50 PM   #1
PureRumble
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
Gparted refuses to resize NTFS (3G) partition, even if it has been unmounted.


Hi all.

So I have my NTFS partition. I want to resize it with gparted. If it is mounted then gparted (naturally) refuses to resize it. But if it is unmounted, then it is still not possible to do so. So I'm just gonna write a bunch of info which I hope will help you spot the problem.

I'm using Ubuntu 6.10 - the Edgy Eft.

The NTFS partition is /dev/hda2.

I'm using NTFS-3G to deal with my NTFS-partition (I say "deal" since I hate MicroSoft).

Here comes my /etc/fstab

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda3
UUID=ff5aac09-ec44-4baf-883d-98bca2f379f0 /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda1
UUID=3D30-2B0D  /media/hda1     vfat    defaults,utf8,umask=007,gid=46 0       1
# /dev/hda2
/dev/hda2     /media/hda2     ntfs-3g     defaults,locale=en_US.utf8   0    0
# /dev/hda4
UUID=625bbe22-f67d-49d4-a044-2d465422a92c none            swap    sw              0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/           /media/floppy0  auto    rw,user,noauto  0       0
When I installed ntfs-3g, it suggested that the row of the partition should start with /dev/<partition_name>. This is how it is now. But before I ever changed the fstab-file, I could see the UUID there. So I tried to see if it still worked if I did not change the UUID (my basic philosophy: get it to work by changing as little as possible). But the gparted would wine about beeing completely unable to find the mounting point of the partition. So I removed the UUID and wrote /dev/hda2 (actually I replaced the complete row with what the ntfs-3g guide suggested).

This is what sudo mount returns when everything is mounted.

Code:
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda2 on /media/hda2 type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
And this is what sudo mount returns after sudo umount -a.

Code:
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
This is what gparted has to say about the partition (right-click -> properties) when it has been unmounted.

Quote:
Unable to read the contents of this filesystem!
Because of this some operations may be unavailable.

Did you install the correct plugin for this filesystem?
I know this might sound pretty obvious that it can not do any changes to it if it has been unmounted. But please let me tell you that I wrote umount -a, which unmounts my FTA32-partition too, but I still can do whatever I want to do with it in Gparted.

Any help will be greatly appreciated. Thanks and be at peace.

Last edited by PureRumble; 04-02-2007 at 04:54 PM.
 
Old 04-02-2007, 04:59 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Should work unless Microsoft has change ntfs again. They modify about once ever 3 months. A tweak here a tweak there. Mostly to stop Linux my guess. HAHAHA!

How about downloading this ISO http://freshmeat.net/projects/systemrescuecd/ and burning it to a cd and boot up with it. Use the gparted tool on it.

Brian
 
Old 04-02-2007, 05:04 PM   #3
PureRumble
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
Should work unless Microsoft has change ntfs again. They modify about once ever 3 months. A tweak here a tweak there. Mostly to stop Linux my guess. HAHAHA!

How about downloading this ISO http://freshmeat.net/projects/systemrescuecd/ and burning it to a cd and boot up with it. Use the gparted tool on it.

Brian
Thanks for fast rep. But I was hoping I would be able to resize while Ubuntu is running.
 
Old 04-02-2007, 05:19 PM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
does the problem persist if you use the 'ntfsresize' tool ? Try ntfsresize -n -s<size> <drive> for a testrun. If it's not installed yet, install the package 'ntfsprogs'.
 
Old 04-02-2007, 06:13 PM   #5
PureRumble
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by almatic
does the problem persist if you use the 'ntfsresize' tool ? Try ntfsresize -n -s<size> <drive> for a testrun. If it's not installed yet, install the package 'ntfsprogs'.
Yes, friend... simply because gparted uses ntfsresize internally.
 
Old 04-02-2007, 06:26 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
and what does 'ntfsresize -i /dev/hdb2' say ?
 
Old 04-02-2007, 06:57 PM   #7
PureRumble
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Original Poster
Rep: Reputation: 0
I hereby close this thread.

Dear friends. I am the one who wrote this thread. I hereby close it since I am pretty sure I know why this refuses to work.

NTFS-3G is (no matter how lucky all 1,000,000 users have been during their attempts) still in beta. To deal with NTFS in general, gparted uses ntfsprogs. If you visit the homepage of those who are behind ntfsprogs, you will see a statement where they declare that they are fully aware of ntfs-3g and its success and that it will be included in ntfsprogs soon.

It is either this or because of the fact that ntfsprogs or gparted those not understand the fuse module. ntfs-3g uses the fuse module.

Thanks for helping me out here.

Last edited by PureRumble; 04-02-2007 at 07:04 PM.
 
Old 04-02-2007, 07:35 PM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Download bootitng, it is only a couple or so megabytes, ntfs-3g is only used in Linux, it does not affect your ntfs partitions. Read the "more info" link for bootitng to see what it can do. It does "non-destructive" resize of FAT & NTFS partition. It is my boot manager for a couple years now and does not complain, it does a file system check first, then tells you the maximum and minimum size you can choose. It is under the shareware license, you use it for free, the deal is if you want the boot manager features and install it to the drive, then you "can" pay for it.
To use it, from within Windows click on the bootitng.exe after unpacking, a dos window appears asking what you want to create, either a floppy or a bootable CD, choose the option you prefer/need and it will create it. Then boot the computer with the floppy/CD in the drive, click "Cancel" at the first question to avoid installing it to the hard drive, click OK to enter maintenance, click on "partition work" icon and highlight the NTFS partition, click on "resize" on the right, let it do the file system check, enter the size you want and click OK, wait till it says the resize is complete after another file system check, click close, remove the floppy/CD and re-boot. It has never screwed up any of my partitions, I use it extensively in my computer repair business on customer computers also.

http://www.terabyteunlimited.com/
 
Old 04-02-2007, 07:46 PM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
I don't see how ntfs-3g applies to gparted. You can only modify unmounted partitions so in my thoughts ntfs-3g does not apply. I guess if you booted up in a windows setup and ran a ntfs check disc on it then fired ubuntu back up without mounting the ntfs partition on boot then gparted should handle it resizing from the end of the partition towards the beginning. Meaning not changing the starting sector of the partition.

Brian
 
Old 04-02-2007, 08:02 PM   #10
PureRumble
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Yes, I figured that out by myself now (that it has nothing to do with NTFS 3G), I was pretty lost there.
 
  


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
Error trying to resize NTFS partition with Gparted mistere29 Linux - Newbie 6 06-14-2009 06:20 PM
Why can't qtparted resize my NTFS partition? xri Linux - Hardware 15 01-28-2007 08:07 AM
error resizing NTFS partition with gParted live CD Nived87 Linux - Newbie 5 05-29-2006 02:53 AM
Unable to Resize NTFS partition with 4 different partition editors Alexandrian Linux - Newbie 11 05-19-2006 07:09 PM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 06:38 AM

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

All times are GMT -5. The time now is 01:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration