goof-up again

Kurt Wall kwall
Mon May 17 11:37:14 PDT 2004


Also sprach Bob Hemus:
>
> Bach again, What is the command line?  I tried
> # cp /etc/inittab /dev/hdb1 /etc/inittab , but got this error message.
> cp: copying multiple files, but last argument (/etc/inittab) is not a
> directory
> Try `cp --help' for more information.
> Read --help to no avail.  Do I need to make hdb1 a directory?

/dev/hdb1 is a device node for a disk partition, not a filesystem. 
Try:

# cp /etc/inittab /foo/etc/inittab

where /foo is the filesystem that lives on /dev/hdb1. 

For example, on my box, /usr/local is mounted on /dev/hda5, as this
entry from /etc/fstab attests:

/dev/hda5        /usr/local       ext3        defaults         1   2

and as this report from mount also attests:
# mount
/dev/hda2 on / type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
/dev/hda3 on /usr type ext3 (rw)
/dev/hda5 on /usr/local type ext3 (rw)

Kurt
-- 
"Beware of bugs in the above code; I have only proved it correct, not
tried it."
		-- Donald Knuth


More information about the Linux-users mailing list