[hfs-user] Question about hcopy

Rob Leslie rob@mars.org
Thu, 23 Sep 2004 13:27:25 -0700

On Sep 23, 2004, at 11:56 AM, Krishnan sunderam wrote:
> I have HFS drive that I want to copy a file to from
> NetBsd. (netbsd-macppc port)
> I am running hfsutils on NetBsd 1.6.2
> I hmount the drive
> #hmount /dev/wd0d
> It gives the drive info etc..
> Now when I do th following
> #hcopy netbsd_file mac_file
> It says "myfile" No such File or Directory
> although netbsd_file is there.

As described in the hcopy(1) man page, you must disambiguate the 
destination filename so that hcopy can tell whether it is a local file 
or a file in the HFS volume.

   # hcopy ./netbsd_file :mac_file

Rob Leslie