HowTo: Mount USB Persistent casper-rw File in Linux

So, you’ve created an awesome Live USB Linux stick with a persistence file which let’s you boot anywhere and carry all your sweet sweet datas around on it too. If you want to see those files in Linux on your desktop or laptop outside the USB you’re going to have to mount the loop device (the casper-rw file) somewhere first. The following commands show how to make a folder and mount the loop and then unmount it too.

Just change the /media/USB/ for the mounted location of your mounted USB stick which contains the casper-rw file you want to view the contents of and the /home/alex/caspermnt/ for the mount point on your system.

Mount:

 mkdir ~/caspermnt
sudo mount -o loop /media/USB/casper-rw /home/alex/caspermnt/

Unmount:

 sudo umount ~/caspermnt/

This can be useful for recovering data from a borked Live USB stick or for backing up your files on your computer just to be sure.

8 comments to HowTo: Mount USB Persistent casper-rw File in Linux

  • Frank

    Thanks for this ‘tip’. You have saved me a lot of work by being able to rescue a ‘home’ from a borked casper rw that I spent hours putting together.

    Many thanks, Frank. :)

  • Brompton

    Super and thanks, I’ve just resumed an interest in faffing with Distros and USB’s, I often wondered about this but never chased round to find out, I just stumbled across this page

  • Thanks very much for this. Was working on a live USB at home, brought it into the office to use on my proper Ubuntu machine and was a bit worried when I couldn’t find the files. Your clear instructions have saved me a lot of time redoing all the work!

  • Thanks! I made a live system unbootable and thought my files were lost..

  • Anonymous

    Thank You very very very very very very very very very very very very very very very very very very very …. much!

    You are a life saver.

  • denis

    Thanks a lot. Very very useful. Live USB aren’t life long devices

  • pacePapua

    After been writed on February 6th, 2011, this article help me TODAY… STILL uptodate!! thank you Alex.

  • Bullpole

    exactly what I needed to do. Well explained. Solved my issue perfectly. (pacePapua – still up to date!!)

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>