OK sir,
Here is how to find out your USB device's hardware address. I will show you the out put of fdisk -l twice. Once with the USB drive out. And once with it in. This way you can see the change and locate the address yourself. Also usually with ubuntu the usb drive will auto mount. If not here are the steps to mount USB drive.
Secnario1: No USB Drive Plugged in:
Code:
jason@jason-desktop:~$ sudo fdisk -l
[sudo] password for jason:
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7e5c7a5c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9355 75144006 83 Linux
/dev/sda2 9356 9726 2980057+ 5 Extended
/dev/sda5 9356 9726 2980026 82 Linux swap / Solaris
Scenario2: USB Drive is plugged in:
Code:
jason@jason-desktop:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7e5c7a5c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9355 75144006 83 Linux
/dev/sda2 9356 9726 2980057+ 5 Extended
/dev/sda5 9356 9726 2980026 82 Linux swap / Solaris
Disk /dev/sdb: 4063 MB, 4063232000 bytes
255 heads, 63 sectors/track, 493 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 494 3967960+ b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(493, 252, 63)
The USB drive I plugged into the system was 4GB. So what you do, is look for that size. I see it in this line. From the second output of code.
Code:
Device Boot Start End Blocks Id System
/dev/sdb1 1 494 3967960+ b W95 FAT32
This tells me that my USB drive has a address of /dev/sdb1
So in order to mount that from the command line. I would do the following. First decide where I want the mount point to be. The mount point is a directory on the filesystem. You can use /mnt or create your own. In this example I will use /mnt and create a sub directory called /mnt/usb. This is a 2 step process.
Step1: Create mount point:
Code:
jason@jason-desktop:~$sudo mkdir -p /mnt/usb
Step2: Mount the USB drive on the new directory.
Code:
jason@jason-desktop:~$sudo mount /dev/sdb1 /mnt/usb
Now you want to verify that it mounted correctly:
Code:
jason@jason-desktop:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 73963548 3227764 66978584 5% /
tmpfs 508512 0 508512 0% /lib/init/rw
varrun 508512 108 508404 1% /var/run
varlock 508512 0 508512 0% /var/lock
udev 508512 156 508356 1% /dev
tmpfs 508512 492 508020 1% /dev/shm
lrm 508512 2192 506320 1% /lib/modules/2.6.28-15-generic/volatile
/dev/sr0 715732 715732 0 100% /media/cdrom0
/dev/sdb1 3960208 3020000 940208 77% /mnt/usb/JAY DRIVE
jason@jason-desktop:~$
The drive is labeled JAY DRIVE, so you can see it in the last line of the df command output.
HTH,
Jaysunn