![]() |
Mounting USB storage devices
How do I go about adding a usb drive to Linux to make it as easily accessable as the cdrom, etc?
|
Plug it in and type dmesg and something like the following should be at the bottom:
Code:
usb 1-1.4: new full speed USB device using uhci_hcd and address 5and set permissions with: chmod ug+rwx /pen and chgrp users /pen to: ls -ld /pen drwxrwx--- 2 root users 4096 Feb 28 16:35 /pen Then add a line in /etc/fstab for it, for sda1 mine is: /dev/sda1 /pen vfat noauto,users,exec,noatime,umask=000 0 0 You can then mount with: mount /pen and unmount with: umount /pen Add a desktop icon if you like. |
Don't know what you mean by as easily accessible as the CDRom but this is the comman line I use to mount USB flashdrives on my FC3 system:
mount -a -t vfat /dev/sda1 /mnt/flashdisk -o user,exec,dev,suid,rw,umask=000 after creating the /mnt/flashdisk mountpoint, of course. |
When I say easily accessable I am referring to how you can open your home directory and click on the cdrom icon.
|
Code:
hub.c: new USB device 00:1f.2-2, assigned address 2Code:
# /etc/fstab: static file system information.Code:
# mount /pen |
Forget about all that for right now. Plug your flashdrive in, open up your terminal and as root do:
Code:
cd /devCode:
ls | grep sdCode:
mkdir /mnt/removableCode:
mount /dev/sda(or whatever yours was called) /mnt/removableCode:
mount -t vfat /dev/sda(or whatever yours was called) /mnt/removable |
I have a usb drive and a usb mouse hooked up on my laptop. I got this while running
Code:
ls | grep sdCode:
ptysd |
Code:
# mount /dev/sda1 /mnt/removable |
Code:
# mount -t vfat /dev/sda1 /mnt/removable |
Quote:
Quote:
|
Code:
hub.c: new USB device 00:1f.2-2, assigned address 2 |
What happens when you do a
Code:
mount -t vfat /dev/sda /mnt/removable(or where ever you want it mounted)? |
Quote:
Quote:
|
From looking at your dmesg, sda is your flashdrive, not sda1, so again try
Code:
mount -t vfat /dev/sda /mnt/removable |
I have no clue
|
| All times are GMT -5. The time now is 10:18 PM. |