Tyrone wrote:

> So, I just want to copy the files and direcotries
> under /, but I don't know how to do this since this
> would include special directories such as /dev /proc
> etc..

Use recent versions of tar, which will save and restore the /dev
directory correctly.  Forget about /proc - it is recreated at every
boot. 

But untar to a new partition to check everything out before
committing.

You can e2fsck your / partition if it is unmounted from another Linux
partition or a tomsrtbt floppy.   

Perhaps simpler yet, as root make sure that the / partition is set to
0 1 in your /etc/fstab, use the tune2fs utility to change the
max-mounts-count to 1 (tune2fs -c 1) and reboot.  This will run
e2fsck on / before mounting it.

Or just wait for the next mount count to be reached.

-- 
Regards,

Ron. [AU]

Reply via email to