Get the information about your usb drive by using tail command
$ tail -f /var/log/messages
Then plug in your USB drive. See the messages appear in the log file. The message is almost like this.
Date Time kernel : SCSI emulation for USB Mass Storage devices
Date Time kernel : SCSI device sdb: numberofSectors numberOfByte-byte hdwr sectors (size of the USB)
Date Time kernel : sdb: Write Protect is off
Date Time kernel : sdb: sdb1
Bingo! Now you see that your usb is known as sdb1.
Create a mount point at /mnt. You can create it anywhere but the default is at /mnt.
$ mkdir /mnt/myUSB
Mount the usb.
$ mount /dev/sdb1 /mnt/myUSB
If you think you will forget about the device, just write it in /etc/fstab. Put the entry like this.
/dev/sdb1 /mnt/myUSB auto defaults 1 1
Try to umount it later after you finish using the USB.
No comments:
Post a Comment