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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
06-09-2015, 07:40 AM
|
#16
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by rtmistler
After the point where you issued that command, you can then re-issue just "mount" and that will show you a list of what is mounted versus not. The presumption is that you'll see something similar to:
Code:
/dev/sdd1 on /mnt type vfat (bunch of other stuff)
If you do not, then the mount command did not succeed. If you do see that it is mounted on /mnt and when you perform an "ls" command there's nothing shown in /mnt, then it may be that the USB drive is empty. Do you know that there are any files on that USB drive? Note you can also use the "df" command to ascertain how much data is on a particular drive and partition:
Code:
df /dev/sdd
df /dev/sdd1
You can also use the "du" command to determine how large the information is on a given mounted drive: If that shows as zero, then there are simply no files there. The first thing to do is verify that the mount succeeded. I'm assuming there was no error report after the mount command?
|
#mount
it gave :
/dev/sdd1 on mnt type vfat (rw)
# ls :
gave nothing
#df /dev/sdg1 ( name changes on unplugging and re-plugging )
gave:
File System 1k-block used Available Use% Mounted on
/dev/sdg1 7813184 476 7812708 1% /mnt
I need to copy a file from linux system to the flash drive .
how can I do so ?
Last edited by esraam; 06-09-2015 at 07:44 AM.
|
|
|
06-09-2015, 07:44 AM
|
#17
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
|
Quote:
Originally Posted by esraam
#mount
it gave :
/dev/sdd1 on mnt type vfat (rw)
# ls :
gave nothing
I need to copy a file from linux system to the flash drive .
how can I do so ?
|
Looks like it's mounted and there are simply no files on that drive.
Copy using either the File Manager or the cp command.
|
|
|
06-09-2015, 07:46 AM
|
#18
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by rtmistler
Looks like it's mounted and there are simply no files on that drive.
Copy using either the File Manager or the cp command.
|
assuming i have a file called log.txt on the following directory :
/em/htk
What line can copy this file to the drive ?
OR using file manager ?
How?
I am unable to open the folder of the drive to paste in ?
|
|
|
06-09-2015, 07:53 AM
|
#19
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
|
OR:
Code:
sudo cp log.txt /mnt/.
|
|
|
06-09-2015, 07:54 AM
|
#20
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
What does umount -a does ?
Last edited by esraam; 06-09-2015 at 07:55 AM.
|
|
|
06-09-2015, 08:04 AM
|
#21
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by rtmistler
OR:
Code:
sudo cp log.txt /mnt/.
|
Isn't there any method to open the flash drive folder using the GUI ?
I wrote the above #cp command
How can I know if the file was copied or not ?
How can I open the flash folder ?
|
|
|
06-10-2015, 07:31 AM
|
#22
|
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524
|
Above means a device with 8021MB(8GB) of space present.
Quote:
/dev/sde1 * 51 97920 7829568 b W95 FAT32
|
Above means a partition 'sde1' present in device 'sde' With FAT32 filesystem.
So you mount with:
Code:
sudo mount -t vfat /dev/sde1 /mnt
ls -l /mnt
|
|
|
06-10-2015, 07:36 AM
|
#23
|
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524
|
Read man page of 'mount'. Above command unmounts all the filesystem listed in '/etc/fstab'.
Quote:
How can I know if the file was copied or not ?
|
You can use the 'ls' command for the destination directory to see it got copied.
|
|
|
All times are GMT -5. The time now is 04:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|