[SOLVED] fsck 1) Drop file 2) Rename file 3) Auto-rename 4) Keep it
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
fsck 1) Drop file 2) Rename file 3) Auto-rename 4) Keep it
I tried to reburn win iso from this external HDD , but having minor hiccup.
I saw this dmesg error prompt:
Code:
$ sudo dmesg | grep fsck
[ 515.679956] FAT-fs (sdd1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[manjaro@manjaro ~]$ ^Cdo dmesg | grep fsck
Hence do a fsck on the partition:
Code:
$sudo fsck /dev/sdd1
/2016 DEC 1 BACKUP/gardening/GRAFTING/すいか接ぎ 熊本 植木すいか.mp4
Bad short file name ( 9A32~1.MP4).
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
What does this fsck prompt means by 1 to4 ?
1. "drop file" means what ? delete the file ?
2. rename file ? rename file name from "すいか接ぎ 熊本 植木すいか.mp4" to 9A32~1.MP4 ?
3. auto rename ? auto rename from "すいか接ぎ 熊本 植木すいか.mp4" to 9A32~1.MP4" without prompting ?
4. keep it ? does it means no change to file name ?
Does above means i got corrupted file name ? or is it just that linux does not recognize long windows filename as "proper" ?
should i do fsck in this case or i can simply ignore fsck saying that need to check with fsck (simply because linux does like long filename of windows) ?
Originally Posted by https://www.raspberrypi.org/forums/viewtopic.php?p=551855
But, when I run ./fsck.fat -V /dev/mmcblk0p1 it says bad short file name ( ) with these options below:
1) Drop file
2) Rename file
3) Auto-remove
4) Keep it
?
I don't have a clue which to select. I will be very happy for some advice!
----
First Response:
Option 2 looks good. The short filename is a feature that is hanging around since the days of DOS when a filename was a maximum of 8 characters long plus a 3 character extension (.txt) - I don't think it's doing much harm
----
Second Response:
Faster, easier, safer way is shutdown the RPi, pull the card, mount on your Windows system and let Windows checkdisk repair the filesystem.
The general consensus is that FAT/NTFS filesystems are best fixed by Windows, hence the second response there.
The first response highlights that it probably doesn't matter (unless you're going to interact with that file using old software).
The general consensus is that FAT/NTFS filesystems are best fixed by Windows, hence the second response there.
The first response highlights that it probably doesn't matter (unless you're going to interact with that file using old software).
I suppose you meant there is nothing wrong with the hdd.. just long file name length that linux jealous of. :-)
I didn't know what to search for , hence i plugged in the whole chunk of "$sudo fsck /dev/sdd1
/2016 DEC 1 BACKUP/gardening/GRAFTING/すいか接ぎ 熊本 植木すいか.mp4
Bad short file name ( 9A32~1.MP4).
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it"
into google to search and came out with all unrelated result, hence i asked here.
Can you tell me "drop file" means what ? delete the file (the programmer just like to use funny words )? I believe "keep it" simply means keep the original long file name.
Anyway, glad to know there is nothing wrong with the hdd partition.
I didn't know what to search for , hence i plugged in the whole chunk ... into google to search and came out with all unrelated result, hence i asked here.
Well there's three lessons:
1) You need to learn how to identify error messages, and how to reduce what you're putting into a search engine to keywords.
2) If your opening post says "I searched for X in search engine Y but got no results", people can provide you with better terms to search for.
3) Use DuckDuckGo before asking for help, because it doesn't profile you and give different results (beyond the stupid regional crap, but that's one click to turn off), so you can know that others looking at the same time should be seeing the the same results.
Quote:
Can you tell me "drop file" means what ? delete the file (the programmer just like to use funny words )?
Drop is a relatively common synonym for delete, so that wouldn't surprise me.
If you feel it should be clearer, fsck is part of util-linux, which has an issue tracker where you can raise that (and highlight the lack of any clarification of the options in the man page). (update: correcting the above, the "drop file" option comes from fsck.fat - part of dosfstools, which has its own issue tracker.)
Quote:
I believe "keep it" simply means keep the original long file name.
The error is not about the standard filename, it is the SHORT (DOS 8.3) filename where the issue is. This is why the error is "Bad short file name" (and likely because it appears to start with a space).
Quote:
Anyway, glad to know there is nothing wrong with the hdd partition.
I never said that - I am making no statements regarding whether the hdd partition is good or bad or anywhere in between.
1) You need to learn how to identify error messages, and how to reduce what you're putting into a search engine to keywords.
2) If your opening post says "I searched for X in search engine Y but got no results", people can provide you with better terms to search for.
3) Use DuckDuckGo before asking for help, because it doesn't profile you and give different results (beyond the stupid regional crap, but that's one click to turn off), so you can know that others looking at the same time should be seeing the the same results.
Drop is a relatively common synonym for delete, so that wouldn't surprise me.
If you feel it should be clearer, fsck is part of util-linux, which has an issue tracker where you can raise that (and highlight the lack of any clarification of the options in the man page).
The error is not about the standard filename, it is the SHORT (DOS 8.3) filename where the issue is. This is why the error is "Bad short file name" (and likely because it appears to start with a space).
I never said that - I am making no statements regarding whether the hdd partition is good or bad or anywhere in between.
I see, google do profiling on individual, hence each person can have different search result even when entering the same keyword. Good to realize this.
I can't check fsck on the partition, because it gave me "bad short file name" prompts.. i can't want to keep pressing "4. keep it" for hundred times (who know) before reaching other error which needed to be fix.
Hence in this case fsck is useless to me (in this particular situation)
The same man page also highlights this important fact:
Quote:
Originally Posted by man fsck
In actuality, fsck is simply a front-end for the various filesystem checkers (fsck.fstype) available under Linux.
i.e. Running fsck against a FAT filesystem will use fsck.fat, and so checking man fsck.fat reveals a bunch more options, including "-a":
Quote:
Originally Posted by man fsck.fat
Automatically repair the filesystem. No user intervention is necessary. Whenever there is more than one method to solve a problem, the least destructive approach is used.
(This also highlights that the choice of "drop file" is part of fsck.fat, which is provided by dosfstools rather than util-linux, and thus should be the target of any issues created regarding lack of clarity/documentation.)
i.e. Running fsck against a FAT filesystem will use fsck.fat, and so checking man fsck.fat reveals a bunch more options, including "-a":
Thanks.
I know now fsck, fsck.vfat, fsck.fat has got so many variance. I tried using "-n" (for no change) , but still it is a scary tool to use. Rather not check it, not looking for trouble.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.