Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
After one successful install of Ubuntu on my laptop, I'm attempting an install on our main desktop, to dual-boot with XP. The desktop is a three-year old Gateway with a 60GB single partition hard drive. I've tried unsuccessfully numerous times to repartition the hard drive using ntfsresize(both on the Ubunutu install disk and from a Knoppix CD) and keep getting numerous 'cluster accounting errors' when ntfsresize initially looks over the filesystem.
I've tried the 'chkdsk /f' and 'chkdsk /r' from XP and both finish successfully but still don't change the outcome of the ntfsresize. I've downloaded the most recent version of ntfsprogs (v. 1.11.2) on a rescue CD (RIP - Linux) and tried that, as it was supposed to fix some of the errors people encountered using ntfsresize, but got the same result.
The XP install works fine and no errors are generated from the chkdsk or a defrag.
I'm at a loss!! I'd really hate to reinstall windows again if I can avoid it, but I do recognize that could be the next step unless someone has an idea of what to fix!
Before resizing an NTFS, ntfsresize makes a filesystem consistency check and it refuses to progress, presenting the "cluster accounting errors" messages, if it found errors. Just run chkdsk with the /f (fix errors) command line option. If chkdsk asks you about if it should check the drive the next time you restart the computer then answer 'y' (yes) and restart Windows not only once, but TWICE!
If you still have problem then your Windows doesn't shutdown cleanly because it definitely leaves NTFS in a corrupted state.
What's the full ntfsresize output? Does the output change when you run chkdsk /f or it's always the same? BTW, you wrote that you run chkdsk /f and chkdsk /r but did you also run chkdsk /f /r? The /r option isn't effective without using the /f.
Here's the output (still the same after running chkdsk /f, chkdsk /r /f and restarting windows twice after each one):
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 61492158976 bytes (61493 MB)
Current device size: 61492161024 bytes (61493 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Cluster accounting failed at 127 (0x7f): extra cluster in $Bitmap
Cluster accounting failed at 1310 (0x51e): extra cluster in $Bitmap
Cluster accounting failed at 42608 (0xa670): extra cluster in $Bitmap
Cluster accounting failed at 142022 (0x22ac6): extra cluster in $Bitmap
Cluster accounting failed at 142023 (0x22ac7): extra cluster in $Bitmap
Cluster accounting failed at 142024 (0x22ac8): extra cluster in $Bitmap
Cluster accounting failed at 142025 (0x22ac9): extra cluster in $Bitmap
Cluster accounting failed at 142026 (0x22aca): extra cluster in $Bitmap
Cluster accounting failed at 142027 (0x22acb): extra cluster in $Bitmap
Cluster accounting failed at 142028 (0x22acc): extra cluster in $Bitmap
ERROR: Filesystem check failed! Totally 2766 cluster accounting mismatches.
Apparently you have a corrupted NTFS. Please run the filesystem checker
on Windows by invoking chkdsk /f. Don't forget the /f (force) parameter,
it's important! You probably also need to reboot Windows to take effect.
Then you can try ntfsresize again. No modification was made to your NTFS.