View previous topic :: View next topic |
Author |
Message |
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Jul 13, 2007 2:01 am Post subject: how to mount usb flash drive? |
|
|
i just bought a 2gb usb flash pen drive.
windows automatically sensed the new hardware and i could read and write in the new flash drive.
when i booted in gentoo the light on the pen drive comes on but i dont see it / or /mnt
can someone tell me how do i mount this new hardware and use it.
as i could not connect my laptop to desktop satisfactorily i have chosen this drive to transfer files from laptop to desktop.
help needed with step by step instructions.
i am using usb wireless mouse in the other usb port. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
slak5 n00b
Joined: 27 Jul 2006 Posts: 41
|
Posted: Fri Jul 13, 2007 4:47 am Post subject: |
|
|
if your using gnome, use flags dbus and hal will allow automatic mounting. when you plug in the drive do:
It should say something like /dev/sdXY usb drive blah blah. you can take that and use the mount command to mount it anywhere you'd like.
if your usb drive was at /dev/sda1 and fat32:
Code: | # mount -t fat32 /dev/sda1 ~/myUsbDrive |
fyi ~/ is the current users home directory and the directory needs to exist to mount it ( ie. mkdir ~/myUsbDrive ).
To Safely Remove the volume:
Code: | # umount /dev/sda1
OR
umount ~/myUsbDrive |
Please tell me if you need more in depth instructions, I'm currently not at my Linux box so I can't help more then that right now. |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Jul 13, 2007 5:41 am Post subject: |
|
|
yes it worked fine . though i dont see why it is called sda1
thanks _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Fri Jul 13, 2007 7:40 am Post subject: |
|
|
Quote: | ... though i dont see why it is called sda1 | USB devices are handled internally like SCSI devices (as are SATA-devices). It basically says, that your USB-stick is the first SCSI device (thous sda, and not sdb or sdc), and that your filesystem is on the first partition (thous 1). In theory you can have multiple partition on a USBstick, and this actually works.
cheers
V. |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Jul 13, 2007 2:59 pm Post subject: |
|
|
does that mean this sda1 can be used as first boot device ?
i have no way of selecting usb drive as first boot disk with bios.
i want to try and boot live cd copy from this drive _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Fri Jul 13, 2007 3:10 pm Post subject: |
|
|
That depends on the motherboard, but basically it is possible. And new hardware generally supports it.
Quote: | i want to try and boot live cd copy from this drive | Then you might be interested in Gentoo Linux LiveUSB HOWTO.
cheers
V. |
|
Back to top |
|
|
Reisswolf n00b
Joined: 06 Jul 2007 Posts: 14
|
Posted: Fri Jul 13, 2007 5:43 pm Post subject: |
|
|
Hi,
By following the suggestion here I can mount my USB stick (/dev/sdb1) at ~/usb. However, I have to be root to do that.
I know for a fact that I (the regular user) belong to the usb group as well. So why am I not being allowed to mount the USB stick as a regular user? Can someone please tell me what change I can make so that I can mount the stick as a regular user?
Thanks in advance for your help. |
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Fri Jul 13, 2007 7:15 pm Post subject: |
|
|
There are several possibilities:
Using KDE, as I do, you can use its media-manager to get usb, cdrom, flashcard what ever mounted to /media/something. (I am not sure whether you need to be in the plugdev group)
Adding a line to fstab, with the option users. (LABEL refers to a lable the is give to the filesystem. check out the respective tools)
Code: | LABEL=xfer /mnt/xfer vfat noauto,users 0 0 |
use pmount, in conjunction with plugdev group. this mounts your device to /media/<device-name>
Quote: | I know for a fact that I (the regular user) belong to the usb group as well. | Your no trying to access a usb device, but a disk device. the usb group is used by haldaemon.
Check if you have hal and dbus installed, they sometime help to.
cheers
V. |
|
Back to top |
|
|
|