Announcement
Collapse
No announcement yet.
USB screw ups
Collapse
This topic is closed.
X
X
-
I just tried my CompactFlash camera card and it won't let me copy to that either.
If I could format a thumb drive on Kubuntu I would do that but I'm not finding any programs that will do it.
- Top
- Bottom
Leave a comment:
-
I honestly doubt that. Do you have a thumb drive that has never been used on a Windows PC that you can plug in?
- Top
- Bottom
Leave a comment:
-
The thing is that I have many thumb drives as well as a camera card.
Nothing I hook to the USB inputs on this computer allows me to write to it anymore.
It sounds like there is a hardware switch that is thrown the wrong way?
- Top
- Bottom
Leave a comment:
-
greg@greg-OptiPlex-990:~$ cd /media/greg/3221-4A40
greg@greg-OptiPlex-990:/media/greg/3221-4A40$ ls -la
total 944
drwxr-xr-x 3 root root 16384 Dec 31 1969 .
drwxr-x---+ 3 root root 4096 Dec 2 15:43 ..
-rwxr-xr-x 1 root root 267995 Nov 26 09:17 'Dove Creek 1.jpg'
-rwxr-xr-x 1 root root 244380 Nov 26 09:18 'Dove Creek 2.jpg'
-rwxr-xr-x 1 root root 181921 Nov 26 09:19 'Dove Creek 3.jpg'
drwxr-xr-x 2 root root 4096 Dec 2 08:18 FOUND.000
-rwxr-xr-x 1 root root 241015 Dec 2 08:22 snow.jpg
greg@greg-OptiPlex-990:/media/greg/3221-4A40$ sudo chown greg:greg *
[sudo] password for greg:
chown: changing ownership of 'Dove Creek 1.jpg': Operation not permitted
chown: changing ownership of 'Dove Creek 2.jpg': Operation not permitted
chown: changing ownership of 'Dove Creek 3.jpg': Operation not permitted
chown: changing ownership of 'FOUND.000': Operation not permitted
chown: changing ownership of 'snow.jpg': Operation not permitted
greg@greg-OptiPlex-990:/media/greg/3221-4A40$
- Top
- Bottom
Leave a comment:
-
"Dirty bit" is the way the file system is tagged as "needing a file system check."
If you're using Windows, do yourself a favor andstop using Windowsturn off drive caching for removable devices. This is why Windows always corrupts (or tags as corrupt) thumb drives. No one in their right mind would cache writes to a removable device except the morons over at Microsoft. I believe with Windows 10, someone at that digital cesspool finally figured out that drive caching should by OFF be default instead of on.
- Top
- Bottom
Leave a comment:
-
Now, redo the commands I gave you in post #27. MAKE SURE YOU ARE IN /media/greg/3221-4A40
- Top
- Bottom
Leave a comment:
-
Dirty bit?Originally posted by oshunluvr View PostAnd BTW, AFAIK, you won't be able to copy anything to any device showing file system errors. That would be a sure way to corrupt your data.
There was a lot of confusion back there about running FSCK. You're supposed to run it on the thumb drive, not your system drive. Simply insert the USB drive, check dmesg output to determine the device name (/dev/sdc1 for example), then type:
sudo fsck.vfat /dev/sdc1
This assumes vfat and sdc1.
greg@greg-OptiPlex-990:~$ sudo fsck.vfat /dev/sdc1
[sudo] password for greg:
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
Perform changes ? (y/n) y
/dev/sdc1: 15 files, 245/986880 clusters
greg@greg-OptiPlex-990:~$
- Top
- Bottom
Leave a comment:
-
Yes it was.Originally posted by Snowhog View PostHmmm. Well, if the thumb drive is actually mounted in 'read only' mode, that might account for this. Was this drive used on a Windows machine per chance?
I have Photoshop on a Win7 machine and I transport files on this thumb drive.
Also I copy to this drive from Kubuntu and walk it in to the Win 7 machine to install them.
I just stuck it in the Win 7 machine and took them up on the option to scan and fix.
It found some stuff that was not there anymore?
- Top
- Bottom
Leave a comment:
-
It is vfat, and I was heading to your position next.
The dmesg statement that the device wasn't unmounted cleanly means that it will be in a 'read-only' state until that issue is fixed. fschk will do so.
- Top
- Bottom
Leave a comment:
-
And BTW, AFAIK, you won't be able to copy anything to any device showing file system errors. That would be a sure way to corrupt your data.
There was a lot of confusion back there about running FSCK. You're supposed to run it on the thumb drive, not your system drive. Simply insert the USB drive, check dmesg output to determine the device name (/dev/sdc1 for example), then type:
sudo fsck.vfat /dev/sdc1
This assumes vfat and sdc1.
- Top
- Bottom
Leave a comment:
-
Hmmm. Well, if the thumb drive is actually mounted in 'read only' mode, that might account for this. Was this drive used on a Windows machine per chance?
- Top
- Bottom
Leave a comment:
-
What a mess
greg@greg-OptiPlex-990:~$ cd /media/greg/3221-4A40
greg@greg-OptiPlex-990:/media/greg/3221-4A40$ ls -la
total 22888
drwxr-xr-x 2 root root 16384 Dec 31 1969 .
drwxr-x---+ 3 root root 4096 Dec 2 14:34 ..
-rwxr-xr-x 1 root root 22708342 Nov 5 13:45 DM_Pro.zip
-rwxr-xr-x 1 root root 267995 Nov 26 09:17 'Dove Creek 1.jpg'
-rwxr-xr-x 1 root root 244380 Nov 26 09:18 'Dove Creek 2.jpg'
-rwxr-xr-x 1 root root 181921 Nov 26 09:19 'Dove Creek 3.jpg'
-rwxr-xr-x 1 root root 81 Nov 5 13:51 'Sign in.txt'
greg@greg-OptiPlex-990:/media/greg/3221-4A40$ sudo chown greg:greg *
[sudo] password for greg:
chown: changing ownership of 'DM_Pro.zip': Operation not permitted
chown: changing ownership of 'Dove Creek 1.jpg': Operation not permitted
chown: changing ownership of 'Dove Creek 2.jpg': Operation not permitted
chown: changing ownership of 'Dove Creek 3.jpg': Operation not permitted
chown: changing ownership of 'Sign in.txt': Operation not permitted
greg@greg-OptiPlex-990:/media/greg/3221-4A40$ ls -la
total 22888
drwxr-xr-x 2 root root 16384 Dec 31 1969 .
drwxr-x---+ 3 root root 4096 Dec 2 14:34 ..
-rwxr-xr-x 1 root root 22708342 Nov 5 13:45 DM_Pro.zip
-rwxr-xr-x 1 root root 267995 Nov 26 09:17 'Dove Creek 1.jpg'
-rwxr-xr-x 1 root root 244380 Nov 26 09:18 'Dove Creek 2.jpg'
-rwxr-xr-x 1 root root 181921 Nov 26 09:19 'Dove Creek 3.jpg'
-rwxr-xr-x 1 root root 81 Nov 5 13:51 'Sign in.txt'
greg@greg-OptiPlex-990:/media/greg/3221-4A40$ cd
greg@greg-OptiPlex-990:~$ cd /media/greg/
greg@greg-OptiPlex-990:/media/greg$ sudo chown greg:greg 3221-4A40
chown: changing ownership of '3221-4A40': Operation not permitted
greg@greg-OptiPlex-990:/media/greg$ ls -la
total 24
drwxr-x---+ 3 root root 4096 Dec 2 14:34 .
drwxr-xr-x 11 root root 4096 Dec 1 10:12 ..
drwxr-xr-x 2 root root 16384 Dec 31 1969 3221-4A40
greg@greg-OptiPlex-990:/media/greg$
- Top
- Bottom
Leave a comment:
-
Content, and all owned by 'root'.
While in this location, type: sudo chown greg:greg * and press Enter.
Then type: ls -la and verify that the contents are now owned by you.
If they are (should be), type: cd .. and press Enter. You should now be in /media/greg.
Now type: sudo chown greg:greg 3221-4A40 and press Enter. Then type: ls -la and see who now owns 32321-4A40; should be you.
- Top
- Bottom
Leave a comment:
-
greg@greg-OptiPlex-990:~$ cd /media/greg/3221-4A40
greg@greg-OptiPlex-990:/media/greg/3221-4A40$ ls -la
total 22888
drwxr-xr-x 2 root root 16384 Dec 31 1969 .
drwxr-x---+ 3 root root 4096 Dec 2 14:34 ..
-rwxr-xr-x 1 root root 22708342 Nov 5 13:45 DM_Pro.zip
-rwxr-xr-x 1 root root 267995 Nov 26 09:17 'Dove Creek 1.jpg'
-rwxr-xr-x 1 root root 244380 Nov 26 09:18 'Dove Creek 2.jpg'
-rwxr-xr-x 1 root root 181921 Nov 26 09:19 'Dove Creek 3.jpg'
-rwxr-xr-x 1 root root 81 Nov 5 13:51 'Sign in.txt'
greg@greg-OptiPlex-990:/media/greg/3221-4A40$
- Top
- Bottom
Leave a comment:
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: