Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been using a persistent mode USB when the hard disk of my laptop crashed. I like to mount the USB files on another computer running Ubuntu 12.10. From what I found after internet search, the file system is saved as squashfs file. The only squashfs file was /casper/filesystem.squashfs . I mounted this file using disks application (it used /dev/loop0 device ). However, I could not find the files that I had saved while running from the USB.

The files were saved in /home/ubuntu/Downloads. The mounted filesystem has no folder under the home directory. What should I do to retrieve the file on this computer. I do not have the permission to reboot this computer from the persistent USB. I just need the files saved inside the persistent file.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

filesystem.squashfs is mounted read only. The files you have modified/created are written to casper-rw. Mount it with:

mkdir /tmp/casper
sudo mount -o loop /media/<drive-label>/casper-rw /tmp/casper
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.