Above should be fine, here's an example too; it assumes the Flash disk's device file was
/dev/sda1 and that you would like to mount it under
/media/flashdisk. The device file name depends on your configuration (SATA harddrives and USB flash memory keys etc. use sdX device file naming scheme, so the last character and partition number depend on the configuration - on systems with no SATA disks the first plugged disk is usually sda1).
Create the mountpoint if it does not exist already:
Code:
mkdir -p /media/flashdisk
Try to mount the disk, list contents and then umount it:
Code:
mount /dev/sda1 /media/flashdisk
ls /media/flashdisk
umount /media/flashdisk
If that worked, add an fstab entry to ease things up; let's edit the file /etc/fstab and add a new line there like this:
device_file mountpoint filesystem_type options 0 0
Code:
/dev/sda1 /media/flashdisk auto defaults,rw 0 0
Save and exit. Now you should be able to mount the disk just by
Code:
mount /media/flashdisk
and umount it using
Code:
umount /media/flashdisk
The above process is done as root (you can't edit fstab as non-root user, and usually mounting is restricted to root only by default). To be able to use the disk as a non-root user also, you must change the configuration a bit; usually this means adding the preferred user to the group
mount or equivalent, to let him mount devices, and then making the mountpoint accessible to the user (usually it's owned by root). The latter depends a bit on the filesystem on the device too; for ext3 it's sufficient to change ownership or permissions on the mountpoint (while device is mounted), for FAT filesystem (like most flash disk) you might need to provide an option
umask=number in the fstab line (or to mount command) to set a user mask to the device's permissions, which are usually such that non-root users can not write to the device, possibly only read. A mask can be understood as a value that is substracted from the permissions value to get the result. More about this is on the web and other threads, please search.