Hot answers tagged

5

It's possible for dd conv=sync,noerror (or dd conv=noerror,sync) to corrupt data in some cases. However in your case it's probably simply surplus zeroes at the end of file. If your device is not exact multiple of 64K, your dd command would have filled the last 64K block with zeroes in the image file. And those additional zeroes can't be restored. Which ...


5

On Linux at least, you can access all files which a process still has open, in /proc/${pid}/fd: $ echo Test > removeme $ sleep 1200 < removeme & [1] 21954 $ rm removeme $ ls -l /proc/21954/fd total 0 lr-x------. 1 skitt skitt 64 Aug 13 17:14 0 -> '/home/skitt/tmp/removeme (deleted)' lrwx------. 1 skitt skitt 64 Aug 13 17:14 1 -> /dev/pts/7 ...


3

e2image can be used to create an image of an ext4 file system, while only copying sectors which are in use: e2image -ra /dev/sda1 /path/to/file.img file.img will be created as a sparse file, so it will only occupy the space which is really used in the file system, even though its apparent size will reflect the capacity of the file system. You can also use ...


3

As root, just cat the partition to another partition: cat /dev/sdXn > /dev/sdYi or to a file: cat /dev/sdXn > backup.img Or to a file or partition on another machine: cat /dev/sdXn | ssh user@host 'cat > backup.img' You could use dd instead of cat, but there's no good reason to do so: dd if=/dev/sdXn of=backup.img Or if you want a progress bar ...


2

The reason you're probably getting these errors is because the ~/bin folder contains programs added to your $PATH, via ~/.profile. I recommend making a new user on the machine, and copy all of the contents of their ~/bin directory to a ~/bin directory in your user directory.


2

Yes, you could do this with TimeShift but using CloneZilla Live would be a better option as that will clone your system while it's shut down (cold snapshot) instead of TimeShift's warm snapshot: Download CloneZilla live "Burn" it to a USB stick Boot the (now live) USB stick Use the Device to Image option Attach the external HDD when CloneZilla asks you to ...


1

From man cryptsetup (section luksFormat): WARNING: Doing a luksFormat on an existing LUKS container will make all data of the old container permanently irretrievable, unless you have a header backup. I guess you don't have a header backup and therefore your data will be history. Sorry for the bad news. Nevertheless, the hexdump: /dev/md0: Input/...


1

If your system support it, you can hibernate debian into his swap partition. Then restart MS_Win10 (that could also be hibernated in his own pagefile.sys file). Then, again, restart in debian et voilĂ ... Suppose you share files between the two OS, you should take care you can't be here and there at the "same" time. See "Back to the future" for more ...


1

Not sure if we can answer the "why" behind the "what", but your system restoration options are limited to what the System Management Services (SMS) can boot from. There is an old article: Restore via a CD (Power5) that steps you through restoring via a CD-ROM. Otherwise, the typical SMS boot options are: Diskette Tape CD/DVD IDE Hard Drive ...


1

deja-dup does not look for the duplicity binaries but looks at the installed packages. Try to recompile deja-dup without HAS-PACKAGEKIT defines. This can be done by commenting out these lines in meson.build #if packagekit_dep.found() #common_vflags += ['--define=HAS_PACKAGEKIT'] #endif


Only top voted, non community-wiki answers of a minimum length are eligible