I have a 120gb SATA HD formatted NTFS ( 2 partitions - dont think 2nd is used/formatted as only 1 shows up) in my Kubuntu Hardy PC.

Cant mount the HD, requires CHKDSK to be run as error message says drive not shut down properly.

Havent had an XP install on any of my Desktop PCS for 2 years now, so cant fix problem that way. Dont want to have to do an XP install ( with all stuffing around to get and install mobo SATA drivers), so I tried the following, gleaned from Googling :-

[EMAIL PROTECTED]:~$ sudo ntfsresize -i /dev/sda1
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name        : /dev/sda1
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 57675629056 bytes (57676 MB)
Current device size: 57675631104 bytes (57676 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use       : 43896 MB (76.1%)
Collecting resizing constraints ...
You might resize at 43895435264 bytes or 43896 MB (freeing 13780 MB).
Please make a test run using both the -n and -s options before real resizing!
[EMAIL PROTECTED]:~$


[EMAIL PROTECTED]:~$ sudo ntfsresize -n --force -s 43896M /dev/sda1
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name        : /dev/sda1
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 57675629056 bytes (57676 MB)
Current device size: 57675631104 bytes (57676 MB)
New volume size    : 43895992832 bytes (43896 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use       : 43896 MB (76.1%)
Collecting resizing constraints ...
Needed relocations : 3364169 (13780 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
100.00 percent completed
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
The read-only test run ended successfully.
[EMAIL PROTECTED]:~$


Note - Using 57676M ( obtained from result of sudo ntfsresize -i /dev/sda1 above) didnt work.

Is it safe to use sudo ntfsresize --force -s 43896M /dev/sda1 or do I risk losing my data?

Thanks

Bill
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to