You are not logged in.
Pages: 1
Hi,
I would like to mount my USB drive without being super-user.
The command I run for mounting the drive is :
sudo mount -t vfat /dev/sda1 /mnt/usbflash
.
[weeniewhite@myhost ~]$ sudo make bagel
make: *** No rule to make target `bagel'. Stop.
Offline
in your /etc/fstab, add:
/dev/sda1 /mnt/usbflash vfat noauto,user,rw 1 0
Then you'll be able to mount it with:
$ mount /mnt/usbflash
Offline
[weeniewhite@myhost ~]$ mount /mnt/usbflash
mount: special device /dev/sda1 does not exist
It doesn't seem to work :S.
[weeniewhite@myhost ~]$ sudo make bagel
make: *** No rule to make target `bagel'. Stop.
Offline
It's because it is /dev/sga1 since some time ago.
Just get sure HAL is running, add yourself to the "storage" group and then logout and back in. No need to add fstab entries.
Microshaft delenda est
Offline
if you have scsi/sata or using the new pata subsystem your devices will be named sdxy. That means your flash drive will shift to something else below them. Run ls /dev before and after plugging in you flash drive to find which device it is. If its u3 you may have to mount the entire drive itself instead of specifying a partition on it.
Offline
if your usb drive not detected automatically you can't modified fstab entry in normal mode.
Offline
relevant options in /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
usbfs /proc/bus/usb usbfs noauto 0 0
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/sdb1 /mnt/usb1 auto noauto,user,exec 0 0
/dev/sdc1 /mnt/usb2 auto noauto,user,exec 0 0
you need to create mountpoints first:
/mnt/usb1
/mnt/usb2
user will have to belong to the right groups (storage, video, optical, camera)
usb has nothing to do with sata/scsi/ata as long as I remember usb device was sdX where /dev/sdX corresponds to the port connected.
Offline
usb has nothing to do with sata/scsi/ata as long as I remember usb device was sdX where /dev/sdX corresponds to the port connected.
This is really neither here nor there, but I believe the sd of sdX stands for (s)csi (d)isk. usb mass storage devices masquerade as scsi devices.
Offline
USB storage devices are listed as SCSI devices. It should be reported as /dev/sdXY where X is the next available device letter and Y is the partition number. Most USB devices will only have a single partition.
Offline
not really:
usb driver is really an interface between the usb stack and the scsi layer. This does not make usb a scsi device. It only uses scsi layer. similarly are treated Zip, LS120 and USB CDROMs.
but you may use libusb and usbdev and scsi is not required.
Last edited by broch (2007-05-02 13:42:24)
Offline
not really:
usb driver is really an interface between the usb stack and the scsi layer. This does not make usb a scsi device. It only uses scsi layer. similarly are treated Zip, LS120 and USB CDROMs.but you may use libusb and usbdev and scsi is not required.
No one is trying to claim that USB devices are SCSI devices. I stated that USB devices are listed by the kernel as SCSI devices, the same as SATA discs and many other devices. And while you can use alternative methods it is not recommended. You should not use the other kernel driver for USB storage devices currently.
Offline
Hey thanks!
I've added :
/dev/sda1 /mnt/usbflash auto noauto,user,exec 0 0
in fstab and now I can mount my USB drive with my user.
[weeniewhite@myhost ~]$ sudo make bagel
make: *** No rule to make target `bagel'. Stop.
Offline
Try this: http://wiki.archlinux.org/index.php/AutoFS_HowTo
KDE mounts my usb stick when I plug it in. Wonderful.
Offline
Pages: 1