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.
Apologies if I am missing something very fundamental here, but when I plug in my Kingston USB device, it does not show up on the desktop, but is listed by "dmesg | grep SCSI" as " sda ". So Ubuntu found it, but I don't how to determine exactly where it is, or how to "unmount" it, and can't find anything with Google that clues me in. Can anyone assist? TIA.
For Ubuntu, you'll need to prefix the commands given by lockpicker with "sudo", unless you've enabled the root account.
Edit:
Quote:
Originally Posted by lockpicker
mount -t vfat /dev/sda /mnt/flash
The bold bit should read /dev/sdax, where x is a number; you mount partitions. dmesg should tell you how many partitions there are on the device, if there's just one, it should be /dev/sda1.
Thanks all, Will try this when I get to office and report back.
Nylex, In everyday english, I want to use the USB device and ideally by finding it on the desktop. I am not sure exactly what mounting does but suspect that it "enables" use of the device, and possibly puts an icon on the desktop (although this may be a separate process from mounting). So the purpose of this thread is to further my objective and any assistance you can give will be greatly appreciated.
Mouting attaches the filesystem on the device to your tree, as it were. Again, you need to mount the device before using it and you can't unmount something that hasn't been mounted in the first place.
The reason your usb drive showed up as a scsi device is linux treats all usb devices as a scsi device. Just like on a laptop all pcmcia cards are treated as pci devices.
Depending on your distribution and icon may appear or not appear at all...
There should be a directory for your usb devices in /mnt/usb if there is no icon on your desktop....
If there is no directory then open up a terminal and type
Mkdir /mnt/usb
Then plug in your device and type dmesg..
Look at the bottom of the output for "sda1" or another directory or something like that and type "mount /dev/sda1 or the scsi identifier for your device.
To unmount type "unmount or umount and then /dev/sda1 or the scsi identifier..
odyssey@ubuntu:/mnt$ cd sda1
odyssey@ubuntu:/mnt/sda1$ ls -l
total 0
odyssey@ubuntu:/mnt/sda1$ cd ..
odyssey@ubuntu:/mnt$ cd sdb1
odyssey@ubuntu:/mnt/sdb1$ ls -l
total 0
odyssey@ubuntu:/mnt/sdb1$ cd ..
odyssey@ubuntu:/mnt$ cd usb
odyssey@ubuntu:/mnt/usb$ ls -l
total 0
I.e., there are 3 directories in mnt: all apparently empty
here are last lines from dmesg (had to use a different USB drive (Lexar)):
usb 2-2: new full speed USB device using ohci_hcd and address 5
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: LEXAR Model: JUMPDRIVE Rev: 1.11
Type: Direct-Access ANSI SCSI revision: 01 CCS
SCSI device sda: 125952 512-byte hdwr sectors (64 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 125952 512-byte hdwr sectors (64 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
/dev/scsi/host5/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi5, channel 0, id 0, lun 0
usb-storage: device scan complete
As I interpret this, the Lexar USB drive is sda, but cannot see where it is.
Anyway I tried mount /dev/sda and got:
odyssey@ubuntu:/mnt/usb$ mount /dev/sda
mount: can't find /dev/sda in /etc/fstab or /etc/mtab
---------------
I felt that the USB drive could not be unmounted until it got mounted. You confirmed this.
Ubuntu obviously sees the USB drive, but I cannot. I guess I just don't understand the process.
I have tried the above suggestions, but still cannot find or mount the drive. Am I doing something wrong? TIA.
has taken a turn to exactly the same issue, so am posting the results here from that thread that are relevant to the USB drive here and will hope to consolidate into this thread:
these lines from above seem to indicate where the drive is but I don't understand them:
Jul 24 16:46:05 localhost kernel: /dev/scsi/host5/bus0/target0/lun0: p1
Jul 24 16:46:05 localhost kernel: Attached scsi removable disk sda at scsi5, channel 0, id 0, lun 0
Does this tell anyone anything?
Here are results from lockpicker's suggestion:
odyssey@ubuntu:/mnt/usb$ sudo mount -t /dev/sda /mnt/usb
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
this line:
"The command is `mount [-t fstype] something somewhere'." appears to me to be exactly what lockpicker suggested, but clearly I did something wrong? I have read the info above but can't see where I went astray.
lockpicker, thanks. If there is no report following the commands, will the icon show up on the desktop (or is that another matter) or how will I know if I accomplished anything?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.