Hi,
I encounter a problem as I copy folder with all files to a usb disk.
command>> Kelotus:/ Kelotus$ cp -R Documents dev/disk1s1/www
result>> cp: dev/disk1s1/www: Not a directory or cp: /dev/disk1: Resource busy
Kelotus:webserver Kelotus$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local) fdesc on /dev (fdesc, union) map -hosts on /net (autofs, automounted) map auto_home on /home (autofs, automounted) /dev/disk1s1 on /Volumes/IPTGA-K (msdos, local, nodev, nosuid, noowners)
Thanks
Kelvin Chan
_________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969
Am 26.03.2010 11:14, schrieb Kelvin Chan:
Hi Kelvin,
I encounter a problem as I copy folder with all files to a usb disk.
command>> Kelotus:/ Kelotus$ cp -R Documents dev/disk1s1/www
result>> cp: dev/disk1s1/www: Not a directory or cp: /dev/disk1: Resource busy
Kelotus:webserver Kelotus$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local) fdesc on /dev (fdesc, union) map -hosts on /net (autofs, automounted) map auto_home on /home (autofs, automounted) /dev/disk1s1 on /Volumes/IPTGA-K (msdos, local, nodev, nosuid, noowners)
According to the output of mount your are trying to copy a directory directly to the raw device. Raw (block) device allow access to a hard drive at very low level. You can access small chunks of data (blocks), but there are no files, no directories, no file system at all...
The correct command would be "cp -R Documents /Volumes/IPTGA-K", which is the directory, where the operating system "shows" the information stored at the device /dev/disk1s1.
On 03/26/2010 11:14 AM, Kelvin Chan wrote:
Hi,
I encounter a problem as I copy folder with all files to a usb disk.
command>> Kelotus:/ Kelotus$ cp -R Documents dev/disk1s1/www
result>> cp: dev/disk1s1/www: Not a directory or cp: /dev/disk1: Resource busy
Kelotus:webserver Kelotus$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local) fdesc on /dev (fdesc, union) map -hosts on /net (autofs, automounted) map auto_home on /home (autofs, automounted) /dev/disk1s1 on /Volumes/IPTGA-K (msdos, local, nodev, nosuid, noowners)
If I understood you correctly, you need to copy the Documents directory. If yes, you must copy to the mounted directory and not to the device node:
cp -R Documents /Volumes/IPTGA-K
Remark: You forgot the leading / in dev/disk1s1/www in the (useless) command you presented us :-)
Thanks
/Kelvin Chan/
Hotmail: Trusted email with powerful SPAM protection. Sign up now. https://signup.live.com/signup.aspx?id=60969
On Fri, 2010-03-26 at 18:14 +0800, Kelvin Chan wrote:
I encounter a problem as I copy folder with all files to a usb disk.
command>> Kelotus:/ Kelotus$ cp -R Documents dev/disk1s1/www
result>> cp: dev/disk1s1/www: Not a directory or cp: /dev/disk1: Resource busy
Copy files to a file system location on the directory tree, not directly to the device.
/dev/disk1s1 on /Volumes/IPTGA-K (msdos, local, nodev, nosuid,
According to your mount list, "/dev/disk1s1" is mounted at "/Volumes/IPTGA-K", so that's where you should be copying to.
Am Freitag, den 26.03.2010, 18:14 +0800 schrieb Kelvin Chan:
Hi,
I encounter a problem as I copy folder with all files to a usb disk.
command>> Kelotus:/ Kelotus$ cp -R Documents dev/disk1s1/www
result>> cp: dev/disk1s1/www: Not a directory or cp: /dev/disk1: Resource busy
Copying to dev in the actual directory seems somewhat confusing. Probably you did mean cp -R Documents /dev/disk1s1/www but even that is wrong. If you insert an usb stick, the actual file system (which is _not_ the device) will be mounted at /media/.../ where ... will be replaced by the actual name, e.g. KINGSTON for an Kingston manufacted USB stick. Simply do a ls /media and you will find your USB stick inbetween.
Joerg