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 07-16-2010, 08:52 AM   #1
Vasudevmukherjee
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Wish to access files in USB pen drive in Ubuntu Linux


Hi!

I'm a newbie and wish to copy files from USB drive to some location in Ubuntu Linux and have tried with the command 'sudo mount -t vfat /dev/sda1 /mnt/usb' and have received following message 'mount: /dev/sda1 already mounted or /mnt/usb busy. mount: according to mtab, /dev/sda1 is mounted on /boot'.

I don't understand what it says, since I don't find the usb drive neither in '/boot' path nor I find it in '/mnt/usb'. So please make me understand how do I access the files on flash drive and copy at the desired place.

Thanks in advance
Vasudev
 
Old 07-16-2010, 09:05 AM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
My experience with Ubuntu mostly consists of the little I have seen/done on my room-mate's Ubuntu machine, but from that experience, I have noticed that Ubuntu is pretty good for auto-mounting USB sticks and drives when they are plugged in (this is AFTER you have booted the OS and logged in, NOT when the device is connected right from bootup.)

So, one of the following commands should verify whether or not the device is actually mounted somewhere:

Code:
sudo mount

or:

sudo fdisk -l
So if those commands indicate that the device is mounted, then navigate to the mount-point and begin your copying. If the device is NOT mounted and NOT shown anywhere, unplug the device, wait a moment (30 seconds or so) and plug it in, and wait another moment for it to mount somewhere. If for some reason it won't auto-mount, then your mount command that you were already trying *should* be fine, and if it doesn't work, we'll need the help of a regular Ubuntu user here to shed some insight on what may be wrong.

Something else you could try if it insists on telling you it's already mounted when you are sure it is not, is try:

Code:
sudo umount -a
which will unmount ALL partitions except the root partition (note that this may also unmount the /home partition if it is on a separate partition than the main filesystem is, so if that happens, your regular user account will not work correctly until the /home partition is remounted.

Here's a snippet of what I see regarding a USB stick on my machine when I use the `fdisk -l` command:

Code:
sasha@reactor: fdisk -l


Partition table entries are not in disk order

Disk /dev/sde: 16.1 GB, 16064184320 bytes
5 heads, 32 sectors/track, 196096 cylinders
Units = cylinders of 160 * 512 = 81920 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1              51      196096    15683648    c  W95 FAT32 (LBA)
sasha@reactor:
and here's what `mount` shows me after mounting the stick:
Code:
root@reactor: mount /dev/sde1 -t vfat /mnt/temp
root@reactor: mount

/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hda12 on /home type ext4 (rw,noatime)
/dev/sde1 on /mnt/temp type vfat (rw)
root@reactor
EDIT: Please make sure your mount command is formatted correctly, similar to the `mount` command I used in my example above; it may be something that simple!

Last edited by GrapefruiTgirl; 07-16-2010 at 09:06 AM.
 
Old 07-16-2010, 09:07 AM   #3
aneeshep
LQ Newbie
 
Registered: Apr 2010
Location: India
Distribution: CentOS,Redhat,Ubuntu,Solaris
Posts: 4

Rep: Reputation: 0
I assume that you are trying to copy some files from a external usb HDD to your system.Which version of ubuntu you are using?.. usually ubuntu will mount usb drives automatically. just chek the output of 'mount' command to check whether your drive is already mounted or not. Check the output of 'dmesg' also it will show the errors ,if there any.
 
Old 07-16-2010, 09:36 AM   #4
Vasudevmukherjee
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Friends!

Thanks for your quick responses! however, I must have mentioned two things (1) I'm using EBox 1.4.2 with Ubuntu (perhaps version 10.4). Further it is running on vmware server 1 (which further runs on Windows XP), which shows CD Drive, Floppy drive, hard drive and network card on it's taskbar, but not the usb drive, so may be it's fault of VMWare Server.
 
Old 07-16-2010, 01:59 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 11,521

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
Should show up under /media I thought.
 
  


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
USB Pen Drive not detected in Linux (suse & Ubuntu) working fine in windows XP Ayyappan Linux - Newbie 9 02-22-2012 09:43 AM
how to Deny Pen Drive Access in ubuntu achtani_jeetu Linux - Newbie 2 06-10-2010 05:50 AM
LXer: Installing Ubuntu on a USB Pen Drive LXer Syndicated Linux News 0 04-10-2009 12:40 PM
How to copy files from a usb pen drive to my linux box? HelpMe2877 Linux - Newbie 4 08-20-2008 02:54 AM
Vtec V-Drive USB 2.0 Flash Pen not working in Ubuntu 5.10 qwerty Linux - Hardware 0 02-16-2006 06:54 PM


All times are GMT -5. The time now is 02:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration