Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>How Do I access my USB Drive

How Do I access my USB Drive

iartten
05-28-2005, 05:41 PM
I have a usb drive and I want to copy all my sons to it. But when I do I get a error that a file is missing sometimes. I am trying to copy over 500 songs and it will take me forever at this pace.

I was thinking maybe I can just use terminal to access it and cp a directory to the usb hard drive.

I know the cp commands but not sure how to access the USB drive? Where do I find that?

thanks

Ian

tas
06-01-2005, 09:32 AM
I have a usb drive and I want to copy all my sons to it.
Whoa, you have more than 500 sons? Slow down a bit. (Sorry, couldn't resist.)

Your USB Drive will usually be available under /Volumes/NAME_OF_DRIVE. If it's really slow to copy stuff, that might be because it is formatted in some DOS-format. If you're sure you will only need it on a Mac, you could format it as hfsplus with Disk Utility, that should speed things up.

bimtob
06-09-2005, 04:30 PM
If you're sure you will only need it on a Mac, you could format it as hfsplus with Disk Utility, that should speed things up.

Doing it via the command line is also the way to go. I've done similar transfers, and in my experience using terminal and cp is much faster than dragging the files in Finder. So, I guess you were already on the right track there :)

tnguyen
06-22-2005, 05:20 PM
I suggest to use tar not cp to reserve all the file date and permission if any:

cd /Volumes/USBVOL_NAMES
tar cf - . | (cd /Volumes/OTHER_VOL_NAMES; tar xvfp -)

or copy to your home:
tar cf - . | (cd /Users/username; tar xvfp -)

change the username as your user name.

ljfong
06-23-2005, 10:06 AM
I know the cp commands but not sure how to access the USB drive? Where do I find that?

thanks

Ian

Go to the CLI:

$diskutil list

will show you every disks connected to the system along with their dev assignments including your internal HDD(s) and the external ones. Your USB drive should show up as the last entry in the list since it is connected the last to the system.

To mount and unmount your USB drive at will:

$diskutil mountDisk <dev>

will try to mount every mountable "Volumes" in the disk

$diskutil unmountDisk <dev>

will unmount every mounted "Volumes", so you can safely unplug.


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

new to Tiger: ssh asks for s/key instead of regular password
Check web page download times - use curl?
Automated smbfs mount with cron
deleting unix mail
lsof - List open *files*?
Restart Rendezvous only?
stop cron from sending mail

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics