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

how tp copy it to a usb drive preserving the links

link|improve this question
1  
this belongs on Super User – xenoterracide Jul 21 '10 at 10:07
feedback

migrated from stackoverflow.com Jul 21 '10 at 10:21

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

2 Answers

I'd use rsync

rsync -avPh <src> <destination>

alternatively you could just

cp -a

it

link|improve this answer
feedback

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).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown