LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-15-2006, 06:55 PM   #1
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283
Blog Entries: 11

Rep: Reputation: 41
Question Why can't qtparted resize my NTFS partition?


I have a new Compaq P2000 with a 60G HD and about 40G of free space.

I started defragmenting the HD until there was 0% fragmentation.

Then I tried to resize the NTFS partition with qtparted (from Kanotix) and got this message:
Quote:
Filesystem check failed! Windows wasn't shut down properly.
Then I used ntfsfix on Kanotix and immediately CHKDSK on XP, and right after that, I tried again with qtparted. Again the same message!

By the way, the computer came with PC Recovery and a recovery partition on its HD. Could this be causing the problem? If it does, what is the best step here?

Any hint will be appreciated.
 
Old 05-15-2006, 07:10 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I see from your profile that you also have, or had, SuSE 9.0. You could boot up with the SuSE disk and use the installation program to resize the NTFS partition.

Use the Advanced Custom partitioning option. After the resizing is finished, you can abort the installation and install the distro that you want. I don't know if a recovery partition could be the problem. It might be because the partition is marked as hidden, but I'm just guessing. I've re-sized my XP partition during Mandrake and SuSE installs on two laptops and never had a problem loosing data, however backing up anything important would be a good idea.

I had to use a linux disk once to create a partition for an NT install, because the Windows NT installation program choked on drives over 2 GB.
 
Old 05-17-2006, 05:56 AM   #3
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thanks for your answer, jschiwal.

I got rid of the recovery partition, but the situation has not changed.

I have yet to try the SUSE tool. I'll let you know how it goes.
 
Old 05-17-2006, 04:44 PM   #4
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
I used the SUSE tool to resize the NTFS partition. It first gave me a message saying that it can resize the partition up to 0 MB only. Then I tried to resize it anyway and then the whole installation CD gave me an error message and kicked me out.

So far I don't see any way to repartition the disk to install Linux.
 
Old 05-17-2006, 05:44 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You do not need to do a full defrag because all you need to do is a space defrag so all the data is in the front of the hard drive. Sometimes disabling the swap in Windows will work on some systems.

SystemRescueCD is a good tool to have around.

If everything fails, try Partition Magic.
 
Old 05-17-2006, 06:44 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
I flat out refuse to use *any* of the GUI ntfs tools - all of which I suspect call ntfsresize.
If you use ntfsresize itself (as in CLI) you see all the messages, and can react accordingly. Never had a problem, even on paritions that needed fixing.

Last edited by syg00; 05-17-2006 at 06:46 PM.
 
Old 05-19-2006, 01:35 AM   #7
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thank you for your answers.
I am using SystemRescueCD now.
After ntfsresize -i /dev/hda1:
Quote:
ntfsresize v1.9.2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 80023716352 bytes (80024 MB)
Current device size: 80023716352 bytes (80024 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use : 23327 MB (29.1%)
Collecting shrinkage constraints ...
ERROR: Your disk has bad sectors (manufacturing faults or dying disk).
This situation isn't supported yet.
I ran chkdsk c: /f on xp, and tried again ntfsresize: same error message as above.

I am going to boot a recent Knoppix, looking for a more recent version of ntfsresize.

By the way, do you recommend ranish for a case like this?
 
Old 05-19-2006, 02:12 AM   #8
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
You have a bad disk. You can force ntfsresize to work despite the bad blocks.
Erk ...

See the manpage for the the --bad-sectors switch.
Get some (validated) backups (plural) of the entire partition first if you decide to try this.
 
Old 05-19-2006, 03:17 AM   #9
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
This time I tried from Knoppix 4.0.
After running chkdsk again, this time with the options /f /r, I entered ntfsresize -i /dev/hda1. Here, as you can see, the message is slightly different:
Quote:
ntfsresize v1.11.3-WIP
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 80023716352 bytes (80024 MB)
Current device size: 80023716352 bytes (80024 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use : 23327 MB (29.1%)
Collecting shrinkage constraints ...
WARNING: The disk has bad sector! This can cause reliability problems!
ERROR: The NTFS volume has at least 1 bad sector.
At this point, what are the chaces that I destroy my data by using the --bad-sectors option?

I highly appreciate your input here.
 
Old 05-19-2006, 04:02 AM   #10
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by xri
At this point, what are the chaces that I destroy my data by using the --bad-sectors option?
Don't tell us that you did not make a backup first. When fiddling with partitions, there's always a chance that something goes wrong and that you loose all data. It can be a lengthy process to get it all back.
 
Old 05-19-2006, 05:06 AM   #11
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thank you, syg00. I didn't read your previous post.
At this point I see two options:

1.
Quote:
Get some (validated) backups (plural) of the entire partition first.
Then use the --bad-sectors option.

2. Play it safe (as in chicken) and install a distro designed to work inside the NTFS partition. I'm thinking Topologilinux.
 
Old 05-20-2006, 08:20 PM   #12
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I always recommend backups when using utilities as reliable as Partition Magic. Unfortunately partimage can not be used to make an image of NTFS filesystems, so Norton Ghost or corporate level backup software needs to be used. Norton Ghost could be used if you do not want to spend time finding all the data that you value.

I suggest using either hard drives or DVD discs for cheap backups. CD are not reliable for backups because that do not include ECC information. DVD discs includes ECC so the data gets reconstructed when the data is partially corrupted. DVD and hard drives includes ECC.

You could use VMware if you pick your second plan. NTFS file and directory permissions suck. The part of Linux security is its file and directory permissions. VMware provides a machine that you can run another OS with out rebooting or setting up mult-booting.
 
Old 05-21-2006, 02:22 PM   #13
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thanks, Electro.
I'll follow your advice and take due precautions. I just went to partimage.org and confirmed what you just said: no good for NTFS (yet).
How about ntfsclone?
 
Old 05-21-2006, 04:01 PM   #14
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
xri, you could have a look at gparted:
http://www.gnu.org/software/parted/
http://gparted.sourceforge.net/features.php
http://sourceforge.net/project/showf...kage_id=173828
 
Old 05-21-2006, 08:37 PM   #15
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thank you, twilli227.
I see. Looks good. It seems to use ntfsprogs (http://linux-ntfs.sourceforge.net/).
There is also http://partitionlogic.org.uk/index.html.
 
  


Reply

Tags
ntfs, partition, resizing



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
QTparted NTFS resize issue rebelscum Linux - Software 3 02-22-2007 10:20 AM
QTParted damaged my ntfs partition! bl0tt0 Linux - General 11 04-04-2006 11:33 PM
i need to non-destructively resize a windows ntfs partition hedpe Linux - General 4 09-02-2005 07:17 PM
ntfs resize - xp partition - files in the way jonnycarlos Linux - Software 3 02-28-2004 09:41 PM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM

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

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