It's from a how-to on converting a root partition to xfs.
what does the following command do?
mount -t ext2 /dev/hda6 /mnt
cd /
tar lvcf - . | (cd /mnt ; tar xpvf -)
can I use cp -a to achieve what the tar did?
--
.~.Might, Courage, Vision. In Linux We Trust.
/ v \
Quoth M.W. Chang:
It's from a how-to on converting a root partition to xfs.
what does the following command do?
mount -t ext2 /dev/hda6 /mnt
Mount the ext2 file system on /dev/hda6 at /mnt
cd /
Obvious.
tar lvcf - . | (cd /mnt ; tar xpvf -)
Invoke tar on the current directory (.)
it's the - that I didn't understand. thanks.
so tar will always back up the permissions and ownership with c ?
tar lvcf - . | (cd /mnt ; tar xpvf -)
Invoke tar on the current directory (.) without recursing outside
of the current directory's file system (l) and verbosely (v) create
(c) an