Attach an external devices

September 28th, 2006 liewsheng Posted in Admin, mount | Hits: 24960 | 1 Comment »

When you plug in the USB thumb drive into your pc, in a flash OSes will help you mount the device. But what happen if it not? ‘mount’ come to rescue ;p

sudo mount /dev/sda1 /mnt/USB

but mount need admintrator privilege, so you need to login as root or any equivalent account to do the job. Or you can use ‘sudo’ as show as above. The second argument need is the device you want to be mounted, and the third is the destination path for the device mount to.

You can also provide filesystem for ‘mount’, -t . A lot of filesystems are support by ‘mount’: ext3, ext2, ntfs, vfat and so on.

sudo mount -t vfat /dev/sda1 /mnt/USB

What about the ISO file? ‘mount’ have the ability to do the jobs:

sudo mount -o loop -t iso9660 file.iso /mnt/test

One Response to “Attach an external devices”

  1. […] The second reason, it auto mount all the partitions it detects to /mnt/. So that I have no worries of mounting it myself, except mouting external devices such as USB flash disk. […]

Leave a Reply