Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
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?
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.