to add to the great information above. some basics for dealing with USB devices in Linux. this is generalized, not specific to any distro.
tail -f /var/log/messages can be used AS YOU PLUG the USB device into the system to find its location in the computer:
Code:
[root@centos ~]# tail -f /var/log/messages
Jun 2 03:15:04 centos rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1385" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Jun 2 20:38:08 centos auditd[1360]: Audit daemon rotating log files
Jun 6 15:45:47 centos rpc.mountd[1820]: authenticated unmount request from 192.168.2.220:846 for /exports (/exports)
Jun 6 15:50:12 centos rpc.mountd[1820]: authenticated mount request from 192.168.2.220:1023 for /exports (/exports)
Jun 6 15:50:25 centos rpc.statd[1454]: SM_NOTIFY from ssma-imac.ssmahome.local while not monitoring any hosts
Jun 6 20:08:31 centos rpc.statd[1454]: SM_NOTIFY from New-Users-MacBook.local while not monitoring any hosts
Jun 7 08:46:59 centos kernel: usb 1-2: new high speed USB device number 2 using ehci_hcd
Jun 7 08:47:00 centos kernel: usb 1-2: New USB device found, idVendor=1b1c, idProduct=0ab1
Jun 7 08:47:00 centos kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 7 08:47:00 centos kernel: usb 1-2: Product: Flash Voyager
Jun 7 08:47:00 centos kernel: usb 1-2: Manufacturer: Corsair
Jun 7 08:47:00 centos kernel: usb 1-2: SerialNumber: 92e646a69e562a
Jun 7 08:47:00 centos kernel: usb 1-2: configuration #1 chosen from 1 choice
Jun 7 08:47:00 centos kernel: Initializing USB Mass Storage driver...
Jun 7 08:47:00 centos kernel: scsi10 : SCSI emulation for USB Mass Storage devices
Jun 7 08:47:00 centos kernel: usbcore: registered new interface driver usb-storage
Jun 7 08:47:00 centos kernel: USB Mass Storage support registered.
Jun 7 08:47:01 centos kernel: scsi 10:0:0:0: Direct-Access Corsair Flash Voyager 0.00 PQ: 0 ANSI: 2
Jun 7 08:47:01 centos kernel: sd 10:0:0:0: Attached scsi generic sg3 type 0
Jun 7 08:47:01 centos kernel: sd 10:0:0:0: [sdc] 31588352 512-byte logical blocks: (16.1 GB/15.0 GiB)
Jun 7 08:47:01 centos kernel: sd 10:0:0:0: [sdc] Write Protect is off
Jun 7 08:47:01 centos kernel: sd 10:0:0:0: [sdc] Assuming drive cache: write through
Jun 7 08:47:01 centos kernel: sd 10:0:0:0: [sdc] Assuming drive cache: write through
Jun 7 08:47:01 centos kernel: sdc: sdc1
Jun 7 08:47:01 centos kernel: sd 10:0:0:0: [sdc] Assuming drive cache: write through
Jun 7 08:47:01 centos kernel: sd 10:0:0:0: [sdc] Attached SCSI removable disk
NOTE*** that sdc1 is not the full location, the location is /dev/sdc1 and it is NOT MOUNTED YET on my system.
the combination of df, and mount will allow you to see what is mounted before and after you manually mount the USB drive:
Code:
[root@centos ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_centos-lv_root
ext4 50G 4.7G 43G 11% /
tmpfs tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 ext4 485M 117M 343M 26% /boot
/dev/mapper/vg_centos-lv_home
ext4 1.8T 1.4T 326G 81% /exports/centos
/dev/sdb1 ext4 1.4T 1.1T 190G 86% /exports/NFS_TV_Shows
[root@centos ~]# d /mnt/
total 20
drwxr-xr-x. 6 root root 4096 Apr 28 16:17 ./
dr-xr-xr-x. 27 root root 4096 May 4 03:27 ../
drwxr-xr-x. 2 root root 4096 Apr 28 16:17 cdrom/
drwxr-xr-x. 2 root root 4096 Jan 5 11:00 usb/
drwxr-xr-x. 2 root root 4096 Jan 5 11:27 usb2/
drwxr-xr-x. 3 root root 0 May 4 03:27 win7/
[root@centos ~]# mount -t vfat /dev/sdc1 /mnt/usb
[root@centos ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_centos-lv_root
ext4 50G 4.7G 43G 11% /
tmpfs tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 ext4 485M 117M 343M 26% /boot
/dev/mapper/vg_centos-lv_home
ext4 1.8T 1.4T 326G 81% /exports/centos
/dev/sdb1 ext4 1.4T 1.1T 190G 86% /exports/NFS_TV_Shows
/dev/sdc1 vfat 16G 1008M 15G 7% /mnt/usb
NOTE*** on my system I have d aliased to ls -laF.
now I can cd directly to the USB device at its mount point and view what is on the drive. I can also use pwd to show you exactly were you are located in the system:
Code:
[root@centos ~]# cd /mnt/usb
[root@centos usb]# d
total 28548
drwxr-xr-x. 11 root root 8192 Dec 31 1969 ./
drwxr-xr-x. 6 root root 4096 Apr 28 16:17 ../
-rwxr-xr-x. 1 root root 163840 May 24 11:30 12 Analysis of Functions IP 12-13.doc*
drwxr-xr-x. 5 root root 8192 May 30 11:10 2010-2011/
drwxr-xr-x. 5 root root 8192 May 30 11:11 2011-2012/
drwxr-xr-x. 5 root root 8192 May 30 11:13 2012-2013/
drwxr-xr-x. 5 root root 8192 May 30 11:16 2013-2014/
-rwxr-xr-x. 1 root root 151552 Apr 15 09:04 Copy of Math Department Warehouse OrderForm(2013)-1.xls*
drwxr-xr-x. 4 root root 8192 May 30 11:23 FireFox/
-rwxr-xr-x. 1 root root 160419 Aug 16 2011 Geom EOC calculator list.pdf*
-rwxr-xr-x. 1 root root 15554 Nov 1 2011 gladiator.odt*
-rwxr-xr-x. 1 root root 11691 Jan 24 15:30 homework e-mail.odt*
-rwxr-xr-x. 1 root root 14837 Dec 22 2011 How to be an amazing math student.odt*
-rwxr-xr-x. 1 root root 37888 Jun 1 2011 inventory brunkotl.xls*
-rwxr-xr-x. 1 root root 857600 Dec 7 2011 King-Henry-Story1.ppt*
-rwxr-xr-x. 1 root root 1610240 Sep 16 2010 Master Stategies for PSAT.ppt*
drwxr-xr-x. 2 root root 8192 May 30 11:26 math websites/
-rwxr-xr-x. 1 root root 15659 Dec 6 2011 metric.odt*
-rwxr-xr-x. 1 root root 560007 Dec 7 2011 mini-metrics.pdf*
-rwxr-xr-x. 1 root root 18446936 Jan 24 2011 MSetup_x86.exe*
drwxr-xr-x. 2 root root 24576 May 30 11:16 My Pictures/
-rwxr-xr-x. 1 root root 251904 Sep 1 2011 openhouse geo 2011.ppt*
-rwxr-xr-x. 1 root root 252416 Aug 8 2011 openhouse Geometry.ppt*
-rwxr-xr-x. 1 root root 8626 Apr 30 07:32 passwords.odt*
-rwxr-xr-x. 1 root root 11917 Aug 12 2010 sign-in.odt*
-rwxr-xr-x. 1 root root 6280056 May 17 2011 Silverlight.exe*
-rwxr-xr-x. 1 root root 228352 Sep 16 2010 Summer PSAT-SAT .ppt*
[root@centos usb]# pwd
/mnt/usb
to properly and safely remove the drive from the system i use umount:
Code:
[root@centos usb]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_centos-lv_root
ext4 50G 4.7G 43G 11% /
tmpfs tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 ext4 485M 117M 343M 26% /boot
/dev/mapper/vg_centos-lv_home
ext4 1.8T 1.4T 326G 81% /exports/centos
/dev/sdb1 ext4 1.4T 1.1T 190G 86% /exports/NFS_TV_Shows
/dev/sdc1 vfat 16G 1008M 15G 7% /mnt/usb
[root@centos usb]# cd
[root@centos ~]# umount /mnt/usb
[root@centos ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_centos-lv_root
ext4 50G 4.7G 43G 11% /
tmpfs tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 ext4 485M 117M 343M 26% /boot
/dev/mapper/vg_centos-lv_home
ext4 1.8T 1.4T 326G 81% /exports/centos
/dev/sdb1 ext4 1.4T 1.1T 190G 86% /exports/NFS_TV_Shows
your other questions have been answered, i hope this helps you get around in your system a bit easier.