Re: [SLUG] NTFS HD, chkdsk and ntfsresize?
Amos' advice below is actually not correct in all circumstances. If you are shrinking a NTFS filesystem, you should *NOT* change the host partition size with fdisk first. By doing this, ntfsresize will no longer have access to the tail of the partition you have chopped off, and you will have a broken NTFS filesystem (The tail would be left in unallocated space) On Wed, Apr 30, 2008 at 2:03 PM, Amos Shapira [EMAIL PROTECTED] wrote: On Wed, Apr 30, 2008 at 11:42 AM, bill [EMAIL PROTECTED] wrote: 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? You should first resize the partition in the partition table (using fdisk, delete then re-create the partition, change its type to 7 (NTFS)), have you done that? After that is done, ntfsresize will by default automatically resize the file system to occupy the entire partition (see the bottom of the output from running ntfsresize without arguments). --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- Regards, Martin Martin Visser -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] NTFS HD, chkdsk and ntfsresize?
An unchecked NTFS filesystem can be mounted in Ubuntu, but only if you force it to be mounted read-only (so at least you can read the data) On Wed, Apr 30, 2008 at 11:42 AM, bill [EMAIL PROTECTED] wrote: 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. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Thanks Re: [SLUG] NTFS HD, chkdsk and ntfsresize?
Thanks for the reply Amos Prior to your advice I tried G4L but stuffed it by reversing Source/Target . Dont know what data I lost ( Home PC), but nothing irreplaceable I think. Oh well, at least I now have an empty 120gb SATA HD that I can reformat for Linux. Thanks again Bill Subject: Re: [SLUG] NTFS HD, chkdsk and ntfsresize? From: Amos Shapira [EMAIL PROTECTED] Date: Wed, 30 Apr 2008 14:03:20 +1000 To: SLUG slug@slug.org.au To: SLUG slug@slug.org.au On Wed, Apr 30, 2008 at 11:42 AM, bill [EMAIL PROTECTED] wrote: 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? You should first resize the partition in the partition table (using fdisk, delete then re-create the partition, change its type to 7 (NTFS)), have you done that? After that is done, ntfsresize will by default automatically resize the file system to occupy the entire partition (see the bottom of the output from running ntfsresize without arguments). --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] NTFS HD, chkdsk and ntfsresize?
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
Re: [SLUG] NTFS HD, chkdsk and ntfsresize?
On Wed, Apr 30, 2008 at 11:42 AM, bill [EMAIL PROTECTED] wrote: 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? You should first resize the partition in the partition table (using fdisk, delete then re-create the partition, change its type to 7 (NTFS)), have you done that? After that is done, ntfsresize will by default automatically resize the file system to occupy the entire partition (see the bottom of the output from running ntfsresize without arguments). --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html