This is what I did:
root@0[newdir]# cp * /
cp: omitting directory '/bin'
cp: omitting directory '/etc'
cp: omitting directory '/home'
cp: omitting directory '/lib'
cp: omitting directory '/opt'
cp: omitting directory '/root'
cp: omitting directory '/sbin'
cp: omitting directory '/usr'
cp: omitting directory '/var'
root@0[newdir]# cp -a /bin /etc /home /lib /opt /root /sbin /usr /var /
cp: '/bin' and '/bin' are the same file
cp: '/etc' and 'etc' are the same file
cp: '/home' and '/home' are the same file
cp: '/lib' and '/lib' are the same file
cp: '/opt' and '/opt' are the same file
cp: '/root' and '/root' are the same file
cp: '/sbin' and '/sbin' are the same file
cp: '/usr' and '/usr' are the same file
cp: '/var' and '/var' are the same file
I changed directories and ran the following:
root@0[sda3]# cp -prf newdir /
cp: overwrite '/newdir/etc/sysconfig/network-scripts/ifcfg-lo'?
cp: overwrite '/newdir/etc/sysconfig/network-scripts/ifdown', overriding mode 0777?
cp: overwrite '/newdir/etc/sysconfig/network-scripts/ifdown-ipv6'?
cp: overwrite '/newdir/etc/sysconfig/network-scripts/ifdown-post'?
cp: overwrite '/newdir/etc/sysconfig/network-scripts/ifdown-ppp'?
cp: overwrite '/newdir/etc/sysconfig/network-scripts/ifdown-sit'?
cp: overwrite '/newdir/etc/sysconfig/network-scripts/ifdown-sl'?
ect, ect, ect....
that continued for a few more files and then I got this:
cp: overwrite '/newdir/etc/sysconfig/network-scripts/core.25001'?
cp: writing '/newdir/etc/sysconfig/network-scripts/core.25001' : No space left on device
At the very end it gave me this:
cp: cannot creat directory '/newdir/bin' : No space left on device
cp: cannot creat directory '/newdir/home' : No space left on device
cp: cannot creat directory '/newdir/lib' : No space left on device
cp: cannot creat directory '/newdir/opt' : No space left on device
cp: cannot creat directory '/newdir/sbin' : No space left on device
cp: cannot creat directory '/newdir/var' : No space left on device
cp: cannot creat directory '/newdir/root' : No space left on device
cp: cannot creat directory '/newdir/usr' : No space left on device
there's plenty of space on the disk, especially on partition sda3. I'm trying to overwrite those directories that already exist in /. The newdir subdirectories contain information / subdirectories don't have. What else can I do?
thanks for the help!