LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-18-2015, 05:45 AM   #1
Terry Moore
LQ Newbie
 
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
Mounting Problem


A little time ago I unplugged a USB Extension Drive without thinking. The Suse system indicated that my back-up had finished but I had not unmounted the drive, despite knowing that I should never do this. The back-up disc would not mount any more and despite all attempts to find an answer, I was told that linux does not have an answer and I could only try "scan disk" on a Windows computer. This worked. Is this really the only answer and if so why is there no mechanism for such forgetfulness in linux?

Terry Moore
 
Old 03-18-2015, 06:19 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
no fix

Actually, you got lucky. It is perfectly possibly to render a USB device totally unusable my ANY system by such simple carlessness. It is not your fault, but a flaw in the basic design that is difficult to remedy cheaply.

That there is a tool available for Windows to fix such issues (When you are lucky!) should not suprise anyone. Corruption is far easier to create under windows, so dealing with it was a higher priority in that environment. Since it is less common under Linux, it is a lower priority. Despite this, tools do exist and are getting better. When this happens the thrid time to one of the major developers we may see sudden improvment.

I would consider it a learning experience.
I have taken to mounting storage over network rather than local USB. The reasons were matters ov convenience for me, but a side effect was to avoid this problem.
 
1 members found this post helpful.
Old 03-18-2015, 06:48 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Welcome to LinuxQuestions.

Windows disables write caching for external drives by default so forgetting to safely remove is typically not a problem. linux does not so if there is still unwritten data when the drive is unplugged file corruption is possible. linux does not have a true chkdsk tool for NTFS so the drive has to be repaired using Windows. Using the sync option to mount the external drive will disable write caching but is not recommended with the ntfs-3g driver since it will slow the system down considerbly.
 
1 members found this post helpful.
Old 03-31-2015, 10:56 PM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
There is ntfsfix from ntfs-3g. But, as stated, not an actual chkdsk.
 
Old 04-01-2015, 01:17 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions.

Windows disables write caching for external drives by default so forgetting to safely remove is typically not a problem. linux does not so if there is still unwritten data when the drive is unplugged file corruption is possible. linux does not have a true chkdsk tool for NTFS so the drive has to be repaired using Windows. Using the sync option to mount the external drive will disable write caching but is not recommended with the ntfs-3g driver since it will slow the system down considerbly.
Probable solution is using sync mount option which reduces error much. And disable device write-caching using hdparm and/or sdparm.
 
  


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
[SOLVED] Problem mounting disk | Problem with chown? LoDam Linux - Newbie 2 02-01-2011 01:30 PM
Mounting problem Broder Fedora 9 06-17-2009 07:29 AM
mounting problem ddaas Linux - Networking 1 01-21-2005 03:57 AM
Mounting problem Radius Linux - Newbie 1 04-27-2004 03:28 PM
problem with mounting huno Linux - General 1 07-30-2002 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:24 AM.

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