LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2018, 02:49 AM   #1
guntanemo
LQ Newbie
 
Registered: Jan 2018
Posts: 16

Rep: Reputation: Disabled
Question USB file system erased itself?


This is the 2nd USB that seems to have deleted its index of the file system or something. I buy a brand new USB drive, open it, format it to NTFS for use for a music USB drive for my car (has a usb port) throw some music on it and by the time I plug it into my car the next morning the filesystem seems to have deleted itself.

I plug it into the very same computer I formated it with and verified the files were on it and it gave the error:


"Unable to access "MUSIC". Error mounting /dev/sdb1 at /media/name/MUSIC: Command-line 'mount -t ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=`000,gid=1000" "dev/sdb1" "/media/name/MUSIC" exited with non-zero status 13: $MFTMirr does not match $MFT (record 0)."

it then goes on about how I should plug it into a Windows system to fix it, which I did not do and have no intention of doing. I cant seem to find anything about this error, which is incredibly weird, for example searx.me returns 3 results for "exited with non-zero status 13", none of which have anything to do with this problem.
 
Old 01-20-2018, 03:03 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
How do you umount the drive after copying the music ?. And why NTFS ?.
 
1 members found this post helpful.
Old 01-20-2018, 04:25 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
You might be able to recover from this using ntfsfix (part of ntfsprogs)

Code:
sudo ntfsfix /dev/sdb1
Quote:
DESCRIPTION
ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is NOT a Linux version of chkdsk. It only repairs some fun-
damental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Win-
dows.

You may run ntfsfix on an NTFS volume if you think it was damaged by Windows or some other way and it cannot be mounted.
It is worth investigating if your car audio system can cope with a FAT32 file-system as an alternative perhaps.
 
2 members found this post helpful.
Old 01-20-2018, 06:18 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
I agree that you should read the car manual to verify what filesystem and file format it accepts. As stated not umounting the drive prior to removing it from the computer could corrupt the filesystem.

Last edited by michaelk; 01-22-2018 at 02:22 PM.
 
2 members found this post helpful.
Old 01-21-2018, 05:28 AM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
I always format usb drives to FAT32 if it may be used in car audio.
Usually car audio doesn't support other filesystems.
 
2 members found this post helpful.
Old 01-22-2018, 02:10 PM   #6
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi guantanemo,

As with Teufel, I can confirm that most car audio systems I've used only function (reliably, at least ...) with FAT32. And often with a limit on the number of directories / files they can index, simply refusing to list anything beyond that limit (main reason I limit myself to 64GB USB drives in my car ... ) ...

Give FAT32 a go and let us know how you make out ...

Cheers !
 
Old 01-22-2018, 08:29 PM   #7
guntanemo
LQ Newbie
 
Registered: Jan 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
How do you umount the drive after copying the music ?. And why NTFS ?.
I hit the eject button next to the drive name in file manager and NTFS because I thought it would be better than FAT32 for music?
 
Old 01-22-2018, 08:34 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
It offers no advantages in this context, and only potential problems with its proprietary nature. BTW, did ntfsfix help?
 
Old 01-22-2018, 08:35 PM   #9
guntanemo
LQ Newbie
 
Registered: Jan 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
You might be able to recover from this using ntfsfix (part of ntfsprogs)

Code:
sudo ntfsfix /dev/sdb1


It is worth investigating if your car audio system can cope with a FAT32 file-system as an alternative perhaps.

It worked! I really appreciate the help! It took a few seconds and all the music is still on it.




Quote:
Originally Posted by Rickkkk View Post
Hi guantanemo,

As with Teufel, I can confirm that most car audio systems I've used only function (reliably, at least ...) with FAT32. And often with a limit on the number of directories / files they can index, simply refusing to list anything beyond that limit (main reason I limit myself to 64GB USB drives in my car ... ) ...

Give FAT32 a go and let us know how you make out ...

Cheers !
That makes sense, I will try it to see if NTFS works at first but you are right I dont think it can navigate folders from a USB. Arent the files bigger on FAT32 or are mp3s small enough to not matter (for the sector size).
 
Old 01-22-2018, 08:38 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Quote:
It worked! I really appreciate the help! It took a few seconds and all the music is still on it.
Great - you're back in business!
 
Old 01-22-2018, 08:41 PM   #11
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by guntanemo View Post
That makes sense, I will try it to see if NTFS works at first but you are right I dont think it can navigate folders from a USB. Arent the files bigger on FAT32 or are mp3s small enough to not matter (for the sector size).
NTFS is more efficient in its use of space, but as ferrari mentioned and as you yourself point out, in the context of music files, you wouldn't be noticing any significant gain. As for directories, you can use at least 2 levels on the car audio system I currently use, so best to experiment in your case.

Cheers !
 
Old 01-22-2018, 08:59 PM   #12
guntanemo
LQ Newbie
 
Registered: Jan 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks guys andor ladies!
PS: You wouldnt happen to be Rick C-137 would you?
 
Old 01-22-2018, 09:02 PM   #13
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by guntanemo View Post
Thanks guys andor ladies!
PS: You wouldnt happen to be Rick C-137 would you?
Hey guntanemo - lol - probably not. My not recognizing that handle leads me to believe it must be someone else

Glad you got your situation sorted - Cheers !
 
Old 01-23-2018, 01:25 AM   #14
guntanemo
LQ Newbie
 
Registered: Jan 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Actually, It seems to have happened again when I unplugged it before it finished un-mounting and now the ntfsfix wont work, it tells me to run chkdsk is there a Linux tool for that?

$ sudo ntfsfix /dev/sdb1
Refusing to operate on read-write mounted device /dev/sdb1.

Here are 2 pics of the error messages I get:

http://ibb.co/dt8ijG
http://ibb.co/hef7Bw


I tried removing that specific mp3 but it wont work. How do I compare the init scripts or check the hashes to make sure they are what they should be?
 
Old 01-23-2018, 01:35 AM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
You need to make sure that it is unmounted before running that command.
 
  


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
I erased /home/root and now can not administer the system tfallon Linux - Newbie 4 01-10-2010 03:43 PM
yum-complete-transaction erased my system. bubnoff Red Hat 7 09-22-2009 07:28 PM
Erased my .xsession file Little Dump Linux - Newbie 5 12-10-2008 11:49 PM
Uh-oh. Erased /dev/dvd file newmoon Linux - General 18 07-27-2005 12:12 PM
accidentily erased /dev/ttyS0 file frieza Linux - Hardware 1 01-02-2004 12:45 PM

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

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