Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 13:30
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to Fix A NTFS Partition With "fsck"
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
gcmartin


Joined: 14 Oct 2005
Posts: 4496
Location: Earth

PostPosted: Thu 24 May 2012, 18:07    Post subject:  How to Fix A NTFS Partition With "fsck"  

Many Puppy users may already be aware of this:

Puppy can be used to Fix A NTFS Partition With "fsck"

Did you know that you can fix a "dirty" NTFS flagged drive using your Puppy?

NTFS drives get dirty usually when the MS system was shtdown improperly. And MS automatically corrects these, unless you skip the MS boot-time message, upon a reboot usually using Microsoft's chkdsk tool. (Believe it or not, an improper shutdown can leave a Linux drive "dirty", too)

Sometime/often-times we may encounter a dirty NTFS drive.

Out of the box (OOTB), Puppy/Linux does not make attempts to correct these. But, there are tools that come with Puppy designed to provide assistance when needed. The Linux tool to "clear" a dirty drive is fsck. (This is the Linux flavor of MS's chkdsk.)

Since all PUPs come with NTFS support built-in, YOU have a requirement to insure that fsck can find this support when asked to clean a dirty partition.

To do this, you MUST add 2 missing symlinks:
Code:
ln ­s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs­3g
ln ­s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs
Having done this, YOU CAN CLEAN THE NTFS PARTITION (in the same fashion you would for a Linux drive):
Code:
fsck /dev/sdb1
Here to help

Additional notes
Example of Puppy with links to NTFSFIX missing! wrote:
bash-4.1# fsck /dev/sdg1
fsck 1.41.14 (22-Dec-2010)
fsck: fsck.ntfs: not found
fsck: Error 2 while executing fsck.ntfs for /dev/sdg1
<root> ~
bash-4.1# echo "The above results when fsck does NOT KNOW where his ntfsfix support is!"
The above results when fsck does NOT KNOW where his ntfsfix support is!
Use filemanager to make a link from /usr/vin

Example with links to FSCK set for fixing NTFS! wrote:
<root> ~
bash-4.1# fsck /dev/sdg1
fsck 1.41.14 (22-Dec-2010)
Mounting volume... FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdg1 was processed successfully.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 24 May 2012, 19:06    Post subject:  

You don't need any symlinks, just run (for sdb1):

ntfsfix /dev/sdb1


Also, it's NOT a substitute for chkdsk

"ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is NOT a Linux version of chkdsk. It only repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows. "

http://linux.die.net/man/8/ntfsfix
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3547
Location: West Lothian, Scotland, UK

PostPosted: Thu 24 May 2012, 19:56    Post subject:  

Is it OK to use "GParted->check" on an NTFS partition as a substitute for chkdsk?
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 24 May 2012, 20:36    Post subject:  

Sylvander wrote:
Is it OK to use "GParted->check" on an NTFS partition as a substitute for chkdsk?


Given that people are having to run chkdsk before GParted will work, I would say no.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3547
Location: West Lothian, Scotland, UK

PostPosted: Fri 25 May 2012, 02:01    Post subject:  

jpeps wrote:
Given that people are having to run chkdsk before GParted will work, I would say no.

Does this apply to all GParted operations, or only when working with NTFS?
GParted has always appeared to work for me.
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Fri 25 May 2012, 02:37    Post subject:  

ntfsfix /dev/sdb1

so if I use sda2 then I should change it to
ntfsfix /dev/sda2 ???

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Fri 25 May 2012, 03:56    Post subject:  

Sylvander wrote:
jpeps wrote:
Given that people are having to run chkdsk before GParted will work, I would say no.

Does this apply to all GParted operations, or only when working with NTFS?
GParted has always appeared to work for me.


GParted "check" attempts to fix major problems, but doesn't replace fsck or e2fsck for regular maintenance.



"Why isn't ntfsfix named fsck.ntfs? I don't know, but there's probably a good reason"

http://lifehacker.com/5817282/what-kind-of-maintenance-do-i-need-to-do-on-my-linux-pc

nooby: yes, sdb1 was only an example.
Back to top
View user's profile Send private message 
gcmartin


Joined: 14 Oct 2005
Posts: 4496
Location: Earth

PostPosted: Wed 30 May 2012, 12:40    Post subject:  

nooby wrote:
... so if I use sda2 then I should change it to
Code:
ntfsfix /dev/sda2
You see this correctly.
_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
gcmartin


Joined: 14 Oct 2005
Posts: 4496
Location: Earth

PostPosted: Wed 30 May 2012, 13:10    Post subject:  

jpeps wrote:
Sylvander wrote:
Is it OK to use "GParted->check" on an NTFS partition as a substitute for chkdsk?


Given that people are having to run chkdsk before GParted will work, I would say no.
What is being pointed out here is the "flag" that all users will see when they attempt to use GPARTED on a disk that has an NTFS partition(s). When the flag is present, GPARTED will not let you do anything internal with the partition when the flag is showing.

One way to remove the flag (probably on some/most occasions) without having to first boot the partition to Windows to remove the flag then reboot in LInux....is to ===> following the steps outline in the first post to this thread.

That's the reason for that post...to show one thing that works in Linux to clear the flag for GPARTED use on a "dirty" NTFS partition. But as @JPeps shares, this may not always work to remove the flag.

Hope this helps

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0696s ][ Queries: 12 (0.0033s) ][ GZIP on ]