LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2019, 08:30 AM   #1
helen314
Member
 
Registered: Jun 2019
Posts: 78

Rep: Reputation: 0
ddrescue - fsck advise (wanted )


I did not realize I can limit ddrescue to work on "size" of data.
I have successfully rescued ntfs file, however I am unable to resize the resulting partition - from about 450GB to 250GB.
I am using gpartted, the partition is unmounted and it will not resize.

I can run ddrescue again with 'size" option but was wondering if I could use "fsck" to shrink the partition.

ddresuce takes over an hour to work on 250 GB

After RTFM I do not see how or if I can option fsck to shrink the partition.
 
Old 06-21-2019, 08:47 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
fsck is only a filesystem checking utility.

Using gparted is the correct way to resize a NTFS partition but you also need to install the ntfsprogs package which contains the ntfsresize utiility.


Read the tips on shrinking a NTFS partition. Reasons for not being able to shrink NTFS are sometimes due to fragmentation or the paging file (A.K.A swap) that might be taking up space in a location >250GB.

https://gparted.org/display-doc.php?...tition-actions
 
Old 06-21-2019, 10:19 AM   #3
helen314
Member
 
Registered: Jun 2019
Posts: 78

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
fsck is only a filesystem checking utility.

Using gparted is the correct way to resize a NTFS partition but you also need to install the ntfsprogs package which contains the ntfsresize utiility.


Read the tips on shrinking a NTFS partition. Reasons for not being able to shrink NTFS are sometimes due to fragmentation or the paging file (A.K.A swap) that might be taking up space in a location >250GB.

https://gparted.org/display-doc.php?...tition-actions
I do have the ntfs utility installed.
I have deleted the partition and rebuilding it using ddrescue with --size option.
Will know in few minutes if it worked.
 
Old 06-21-2019, 07:19 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Could it be a ntfs partition that was in hibernate?

Any errors reported? " the partition is unmounted and it will not resize"

I tend to use testdisk/photorec to recover files.
 
Old 06-21-2019, 09:35 PM   #5
helen314
Member
 
Registered: Jun 2019
Posts: 78

Original Poster
Rep: Reputation: 0
No error, just the GUI won't "activate" the resize button.
So far I have not achieved 100% results using ddrescue (CLI).
After using "size" I can increase the size , which is obvious when it let me to resize at all.
I tried "plain" copy and got all kind of "cannot do" errors.
Gparted does not show usual yellow usage of the partition, nor any data on "used / unused ".
I can access the contents , no problem.

Actually I feel I made a logical error - if I do not use "size" ddrescue "copies" entire partition , both data and "empty space" . So the result cannot be downsized, which was I was truing to do.
 
  


Reply



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
Wanted safe way to fsck (mounted) LVM partition minrich Linux - General 5 01-10-2010 06:06 PM
RHEL fsck guidance wanted rajsrmc Red Hat 5 05-07-2008 09:55 AM
Advise: Remote Desktop wanted to link Win98 to FC4 Simon Bridge Linux - Networking 15 06-28-2005 03:50 PM
2 fsck or not 2 fsck? naps SUSE / openSUSE 4 03-18-2005 02:11 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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