Hook up your USB drive and boot up Linux. After you are logged in as root, open terminal window and a real nice simple command to see all storage devices available in Linux is:
(that is the letter l, not a 1)
Be real careful with this command, don't go fdisk your hard drive. The -l will give you a listing of devices and won't reset the file allocation table. An example of my PS3 with a camera with a 1 gig storage card hooked up by USB is:
Quote:
localhost ~ # fdisk -l
Disk /dev/sda: 47.1 GB, 47126736896 bytes
64 heads, 32 sectors/track, 44943 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 43919 44973040 83 Linux
/dev/sda2 43920 44943 1048576 82 Linux swap / Solaris
Disk /dev/sdb: 4 MB, 4194304 bytes
1 heads, 8 sectors/track, 1024 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdf: 1048 MB, 1048481280 bytes
33 heads, 63 sectors/track, 985 cylinders
Units = cylinders of 2079 * 512 = 1064448 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 * 1 985 1023874+ 6 FAT16
Partition 1 has different physical/logical endings:
phys=(984, 32, 63) logical=(984, 32, 56)
|
This output tells you what device name Linux assigns to your USB storage device. Look above and you see the sdf disk and in particular the partition for it
/dev/sdf1 device showing 1 Gig of memory, that is my digital camera 1 gig storage card connected by USB to PS3. The sda1 and sda2 are the standard partitions for your linux install, the second one being the swap partition which i setup to be 1 gig in my case.
To access this USB drive sdf in my case, you have to "mount" it in Linux. In a terminal window, enter the following commands after you find the device name from the above instructions. My device name is the partition name of sdf1. I will setup a "camera" directory to let me know that anything in this directory is actually in the storage card of my camera when it is hooked up by USB to my PS3.
Code:
cd /mnt
mkdir camera
mount /dev/sdf1 /mnt/camera/
the /mnt/camera/ can be any logical name like /mnt/USBdrive or /mnt/SATA or whatever, just put the directory in the mnt folder
To access the drive, you just navigate your file manager to /mnt/SATA or whatever you called it. Make new directories and copy files in this structure and away you go.