LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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.

Notices


Reply
  Search this Thread
Old 10-09-2018, 09:10 AM   #1
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Mint Mate
Posts: 68

Rep: Reputation: Disabled
fsck Filesystem-Specific Options


it is mentioned in the man page but what are Filesystem-Specific Options

I found this:
fsck -V -t ntfs --kerneldefrag /dev/sda3 (???)
but it does nothing special

looking to defrag non-linux drives

from what I can tell fsck does this automagically...?
fsck -V -t vfat /dev/sdd1

I know for ext4 there is:
e4defrag /dev/sdc1
but linux rarely needs defraging

I do on occasion end up at a initramfs prompt when things get messy.
Usually messed up inodes requiring fsck /dev/whatever.
 
Old 10-09-2018, 09:16 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Caltrop View Post
it is mentioned in the man page but what are Filesystem-Specific Options

I found this:
fsck -V -t ntfs --kerneldefrag /dev/sda3 (???)
but it does nothing special
The -V option;

Quote:
-V Produce verbose output, including all filesystem-specific commands that are executed.
The -t option lets you specify the filesystem in question.

Quote:
looking to defrag non-linux drives

from what I can tell fsck does this automagically...?
fsck -V -t vfat /dev/sdd1
First, why? Second, a script perhaps?

Quote:
I know for ext4 there is:
e4defrag /dev/sdc1
but linux rarely needs defraging

I do on occasion end up at a initramfs prompt when things get messy.
Usually messed up inodes requiring fsck /dev/whatever.
If you're wanting to defrag a filesystem of a different OS, use that OS's tools instead. For Linux, use Linux tools for that.
 
1 members found this post helpful.
Old 10-10-2018, 05:59 AM   #3
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Mint Mate
Posts: 68

Original Poster
Rep: Reputation: Disabled
duh, I know what the options are
I can also use 'man' to pull up the instructions

I want to defrag another filesystem
using the other OS to defrag my portable drives...
can not do that at home since I am Linux and work is crappy Win10

guess there is no solution...
 
Old 10-10-2018, 06:09 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Caltrop View Post
duh, I know what the options are
I can also use 'man' to pull up the instructions
Why ask the question then?

Quote:
I want to defrag another filesystem
using the other OS to defrag my portable drives...
can not do that at home since I am Linux and work is crappy Win10

guess there is no solution...
I think you've misunderstood my point (and maybe I wasn't clear enough in making it), the point is that it's a bad idea period. Linux filesystems are not compatible with Windows filesystems, period. Just because Linux has drivers to read/write to/from Windows filesystems this does not mean they are compatible with each other - their not.

If you want to know what options there are to do it anyway, why not ask Google? You found this site, so how come you can't do a search for what you want?
 
Old 10-10-2018, 07:24 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Typically fsck passes specific options to the file system checker which for NTFS is ntfsfix. ntfsfix does not have any options, can only repair basic filesystem inconsistencies and does not defragment.

Basically the only way to defrag NTFS on a linux system is write the files somewhere else then copy them back. Otherwise you need to defrag using a windows operating system.
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FSCK on live filesystem usao Linux - Server 2 09-19-2017 04:51 PM
[SOLVED] fsck on an R/W filesystem genderbender Linux - Newbie 4 08-26-2010 05:09 PM
fsck failed for at least one filesystem (not /)... linux_2007_ Linux - General 2 01-25-2010 12:57 AM
Mainting a filesystem with FSCK Slick666 Linux - Server 1 02-08-2008 09:28 PM
Repair a filesystem ...fsck is it??????? hrg Linux - General 3 07-24-2004 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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