0

I have installed Xubuntu on a USB stick and created some files. Later there was a problem with Xubuntu, so I made a backup and re-installed it.

The wayt I made the backup, isn't exacly the right way of doing it (I'm not so familiar with this subject :) ):

I cnnected the USB stick to a running Windows computer and just copied all the files I found there form the USB stick ("My Computer") to the windows computer.

The files I copied are some folders (e.g. .disk, boot, casper, dists, EFI and some more.) and some files (e.g. casper-rw, md5sum.txt, menu.c32, README.diskdefines, syslinux.cfg and more.)

Now I want to recover some files from my desktop in Xubuntu in order to edit them in Windows or even linux.

I notices in the folder casper there are few files:

  • filesystem.manifest
  • filesystem.manifest-remove
  • filesystem.size
  • filesystem.squashfs
  • initrd.lz
  • vmlinuz.efi

The biggest file there, filesystem.squashfs, weights almost 1 GB, so I have a reason to beleive that this file contains my files from Xubuntu.

How can I exctract them? I can use linux (I have a new, working version of Xubuntu on the same USB stick, while the "backup" is located on the C drive of the hosting computer)

Thanks!!

8
0

From your overall question, and comments like:

  • i ran a diskless virtual machine with an iso as a "cd drive", and booted from the "cd".

It sounds to me like you may have only been running "live" with no persistence. Especially given the iso in the VM's "cd drive", I'm suspecting there might not be any saved files to recover, unless the VM saved them somehow...

But, maybe using a USB it did let you save persistent data. If there is a casper-rw file then you should be able to mount it and take a look, as Eric's comment suggests, with

mkdir /tmp/casper
sudo mount -o loop /path/to/casper-rw /tmp/casper
6
  • I do have persistence, sorry I didn't mention it. Where can I find this casper-rw file? – Reuven Karasik Jan 22 '15 at 17:53
  • Ok. Then it should be in the files you copied, you mentioned "some files (e.g. casper-rw,..." – Xen2050 Jan 22 '15 at 18:04
  • Dude, you saved my life! It's amazing! always fun to learn something new :) – Reuven Karasik Jan 22 '15 at 20:04
  • Actually... hold on.. I copied the files, they contain ry_Certification_Authority_-_G3.crt, mozilla/GeoTrust_Universal_CA.crt, mozilla/GeoTrust_Universal_CA_2.crt, mozilla/GlobalSign_Root_CA.crt, mozilla/GlobalSign_Root_CA_-_R2.crt, mozilla/GlobalSign_Root_.... WHY??? – Reuven Karasik Jan 22 '15 at 20:10
  • I guess it's my fault, because the XFCE config files were recovered correctly... I don't know why it happened to these files, but fine. thanks again! Next time I'll know not to create files on linux without Dropbox or some other automatic backup services. – Reuven Karasik Jan 23 '15 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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