Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a copy of Linux file system in /home/user/desktop/fs/

how tp copy it to a usb drive preserving the links

share|improve this question

migrated from Jul 21 '10 at 10:21

This question came from our site for professional and enthusiast programmers.

I'd use rsync

rsync -avPh <src> <destination>

alternatively you could just

cp -a


share|improve this answer

If you're wanting the pen drive to be bootable or "LIVE" then you have a bit more work ahead of you. I suggest building a bootable USB with a tool, such as the fedora live CD/USB creator. Then put the files you want onto that live USB (rather than a blanket copy, which could be dangerous if you're overwriting system files and binaries, etc).

share|improve this answer

You must log in to answer this question.