On Wednesday, 18 בApril 2007 14:08, Dan Bar Dov wrote:
> I inserted a USB flash drive to the USB slot. man -k usb told me about
> lsusb, and the device is recognized. How do I access it (mount it)? [I
> don't think hotplugging is set up, but I want to do it manually, so
> please, don't teach me how to set up hotplugging].

USB disk on key look as SCSI disks to the user, so if you don't
have any other SCSI disks it would be the first SCSI disk:
  /dev/sda

Most DOKs have a one big partion. However, some DOKs have no
partition table at all (just like floppies). How can you
find out? Choose the method you like (as root of course):
  1. cat /proc/partitions
     and then see if you have only /dev/sda or /dev/sda1 as well.
  2. tail -f /var/log/messages
     and then insert the DOK. In the messages you should see
     if a /dev/sda1 was created or not (Modern distros like FC-5
     uses udev to automagically create these device files for you.
  3. fdisk -l /dev/sda
     would show you the partition table (if there's any).

After you found which device file to use, simply prepare
an empty directory to mount it (the convention is to create
them under /media, but it's just a convention).

Now you can mount it:
        mount -t vfat /dev/sda1 /media/mydok

Don't forget to umount it before pulling it out.

Another option instead of mount/umount is to use mtools
[mdir, mcopy, etc.] You'll just need to configure /etc/mtools.conf
for this.

Bye.

-- 
Oron Peled                             Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]                  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

"Microsoft: We make virii work!"

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to