> 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].

Once you have the device recognized it means you've already got it
hotplugged. Probably you meant that you don't want how to set up
automounting the device?

Typically, when you plug the USB drive in, it'll get assigned
a pseudo-scsi interface in the kernel, and thus get some device name
like /dev/sda, /dev/sdb, etc. You can see the name through the kernel
messages, or through the /proc filesystem. The problem is that
if you have 2 similar drives, you have no control over which one
will become sda and what sdb. You should be using udev
to write a rule that creates a symlink accordingly to the drive
make/label/capacity/whatever, but I won't elaborate as this sometimes
is also designated as the very hotplugging you asked not to be taught.

Now that you know the device name, whether directly smth like /dev/sda
or indirectly like an automatically created symlink like /dev/myusbdrive
-> sda, you should be using the regular ways to mount the drive. If a
non-one-time operation, you should add an appropriate line to
/etc/fstab, and then use mount(8) to mount it, or you can directly
specify both the device partition name and the target mount point name
on the command line.

HTH,
VKh

=================================================================
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