LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-06-2015, 06:12 AM   #1
DougBain
LQ Newbie
 
Registered: Oct 2014
Posts: 17

Rep: Reputation: Disabled
Why are files copied to a USB stick invisible?


I recently crashed my LMDE system, and trying to retrieve something from the disaster, booted up the failsafe OS and copied a number of files onto a USB stick using the 'cp'command.
'ls -alrt /media/dougb' showed that the files were present and correct on the stick.

However when I attached the stick to a working LMDE PC there appeared to be nothing on it, whether I looked at the stick in the desktop file manager or by listing in a terminal.

I've tried changing the permissions and/or ownership of the files (via the broken OS) without success.

Why aren't the files visible? What can I do about it?
 
Old 01-06-2015, 06:20 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,570

Rep: Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811
how did you copy those files? Probably you forgot to umount/eject that usb.
 
Old 01-06-2015, 07:47 AM   #3
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 49
Does your USB stick have persistence?

My live USB stick doesn't have persistence. So once I shutdown from the live USB, then all my browser preferences, copied files etc are automatically deleted.
 
Old 01-06-2015, 12:57 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,289

Rep: Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384
Quote:
ls -alrt /media/dougb' showed that the files were present and correct on the stick.
I don't have LMDE but, if it is similar to the other Mint releases, the copy command you posted would have copied to the /media/dougb directory on the hard drive. You should have had another sub-directory there with either a UUID or the name you gave the disk. Did you do that and just post an incorrect cp command?
 
1 members found this post helpful.
Old 01-07-2015, 06:10 AM   #5
DougBain
LQ Newbie
 
Registered: Oct 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
[SOLVED] Thanks Yancek, that must be the answer. On checking 'ls -alrt' *without* the USB stick plugged in, the list of files comes up anyway.
With the USB plugged in I get no UUID or name, so I suppose the USB has to be mounted.
However 'mount -t <some type> /dev/sdb <previously defined dir>' is failing because I'm not able to specify the correct fstype.
Any suggestions?
 
Old 01-07-2015, 06:15 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,570

Rep: Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811
what kind of filesystem was created on that usb stick?
probably you need to install cifs
 
Old 01-07-2015, 06:26 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,029

Rep: Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852
cifs is a network protocol (samba) and not a local filesystem. It is probably vfat.
 
Old 01-07-2015, 06:28 AM   #8
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,570

Rep: Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811
yes, sorry I wanted to say ntfs....
 
Old 01-07-2015, 06:34 AM   #9
DougBain
LQ Newbie
 
Registered: Oct 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
I tried '-t vfat' without success.
"FAT-fs: utf8 is not a recommended IO charset....
FAT-fs: bogus number of reserved sectors
FAT-fs: can't find a valid FAT filesystem................."
 
Old 01-07-2015, 06:36 AM   #10
DougBain
LQ Newbie
 
Registered: Oct 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
"NTFS signature is missing"
 
Old 01-07-2015, 06:41 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,029

Rep: Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852
Post the output of the blkid command.
 
Old 01-07-2015, 07:31 AM   #12
DougBain
LQ Newbie
 
Registered: Oct 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
"No command 'blkld' found, did you mean
'blkls'.....
'blkld' fom package 'util-linux'
blkld: command not found"
 
Old 01-07-2015, 07:33 AM   #13
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,570

Rep: Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811
/sbin/blkid that is an i (not l) before the d at the end
you should run it as root

Last edited by pan64; 01-07-2015 at 07:37 AM.
 
Old 01-07-2015, 07:35 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,029

Rep: Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852Reputation: 1852
You can also look at the output of the file command
file -s /dev/sdb1 (replace sdb1 with actual partition ID)

---------- Post added 01-07-15 at 07:35 AM ----------

You can also look at the output of the file command
file -s /dev/sdb1 (replace sdb1 with actual partition ID)
 
Old 01-07-2015, 07:50 AM   #15
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,706

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
Quote:
Originally Posted by yancek View Post
I don't have LMDE but, if it is similar to the other Mint releases, the copy command you posted would have copied to the /media/dougb directory on the hard drive. You should have had another sub-directory there with either a UUID or the name you gave the disk. Did you do that and just post an incorrect cp command?
warning there - /media may be tmpfs on some distributions. It normally would be used only for temporarily mounting things like CDs and USB devices for the user, but once the user logs out (or reboots) everything is gone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Files Copied from RHEL 5 Server to NFS "Invisible" JosephBlow Linux - Server 3 08-06-2013 12:01 AM
files not getting copied fully to usb drive from my comp myfollowers1 Linux - Newbie 1 05-10-2011 12:46 PM
Can't view files I copied to usb flash drive on windows XP ducksong Arch 2 12-02-2010 05:56 PM
[SOLVED] Cannot copy to USB Memory Stick some files StefanP Linux - Newbie 2 05-23-2007 12:41 PM
Suddenly invisible memory stick in SuSe 10 Barry Bingham SUSE / openSUSE 6 05-03-2006 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration