data-recovery

How can I recover moved jpg files

How can I recover moved jpg files On my ubuntu system I ran a command and moved all my jpg files to a single file by mistake src_dir=$1 echo "src_dir: $src_dir" for f in $src_dir/*; do if [ -f $f ]; then new_dir=$(date -r $f +"%b_%Y") if [ ! -d $new_dir ]; then mkdir $new_dir …

Total answers: 1

Is there any situation where an Ubuntu bootable drive will use the hard drive?

Is there any situation where an Ubuntu bootable drive will use the hard drive? I want to recover files deleted by accident. I know how to recover the files using testdisk/photorec. This post is not about how to recover files. It is about how an Ubuntu live USB handles downloaded data. I have a bootable …

Total answers: 1

Rename command seemed to remove a bunch of files. Can I recover them?

Rename command seemed to remove a bunch of files. Can I recover them? Using Ubuntu 22.04 I had a folder with a bunch of files I wanted to change the file extension so I used: rename ‘s/.zip$/.cbz/’ *.zip The command completed without throwing any errors, but I found about 2/3 of my files were missing …

Total answers: 2

How to repair a partition damaged by a power outage

How to repair a partition damaged by a power outage I was worked with VMWare and my system suddenly power off. After I power on my system my virtual machine partition doesn’t mount and return this error! How can i fix it and recovery my files? I use command line but it’s not help sudo …

Total answers: 1

First 32GB of a 4TB ext4 filesystem overwritten. How to recover?

First 32GB of a 4TB ext4 filesystem overwritten. How to recover? Due to an accident specifying a block device, the first 32GB of a 4TB ext4 filesystem on a SATA disk was overwritten by the dd command with the contents of a USB flash drive. fdisk -l /dev/sda reports the following: Disk /dev/sda: 3.7 TiB, …

Total answers: 1

Accidentally overwrote /usr/lib/x86_64-linux-gnu(using mv command) with file

Accidentally overwrote /usr/lib/x86_64-linux-gnu(using mv command) with file While trying to move a file into /usr/lib/x86_64-linux-gnu, I accidentally overwrote x86_64-linux-gnu itself. The system(ArchLinux) is still running, but I’m not sure how to safely recover x86_64-linux-gnu, what exactly/how important it is, or what will happen if the system reboots. How can I fix/recover x86_64-linux-gnu, and anything else …

Total answers: 1

Accidentally deleted /dev directory

Accidentally deleted /dev directory I’ve accidentally performed sudo rm -fr /dev Will I suffer from data loss or any side effects? I’ve rebooted the system and my data seems ok, but I’m afraid there is hidden or non-obvious loss of data that I simply haven’t found out yet. EDIT: I’ve read this post but didn’t …

Total answers: 1

Recover from parted -s /dev/sda1 mklabel gpt

Recover from parted -s /dev/sda1 mklabel gpt Ok. Please don’t judge me. I had no coffee yet when I did this… I tried to format a new USB drive and the drive didn’t mount and I didn’t think straight… long story short, I did parted -s /dev/sda1 mklabel gpt where sda is, of course, my …

Total answers: 1

Problems accessing files on a RAID1+LVM from failed QNAP

Problems accessing files on a RAID1+LVM from failed QNAP Brief context I have a QNAP TS-451. The NAS has failed, but I’m pretty sure the drives are still fine. I have a new QNAP TS-462 to try to replace it and I’d like to ensure my data is intact in the new system. Question How …

Total answers: 2

how to access linux data from another machine physically?

how to access linux data from another machine physically? My laptop is failing, but I know for sure the hard drive is okay and fine. I want to take the data inside it, I connect my laptop’s hard drive (open suse tumbleweed with btrfs filesystem) to my desktop pc (ubuntu 22.04.01 LTS with vfat filesystem), …

Total answers: 1

Overwritten LUKS with a partition table

Overwritten LUKS with a partition table In what I now know feel was a stupid decision, I attempted to dual boot Windows and linux by using the windows installer, After booting into the windows installer I chose one of a 2 cloned hard drives about 500GB in size to erase, as they were cloned it …

Total answers: 1

How to recover lost customized desktop/ubuntu/gnome settings?

How to recover lost customized desktop/ubuntu/gnome settings? My Ubuntu 20.04 system froze/crashed while trying to install anaconda, and after rebooting, I found that all my customized Ubuntu/Gnome/Desktop settings had been reset to the defaults. (Eg background screen image, the appearance of the files windows, the location and behavior of the status/menu bar, and a whole …

Total answers: 1

Recovering LUKS partition with shred disk

Recovering LUKS partition with shred disk I have Ubuntu 18.04 LTS encrypted on my SSD and I ran the command: sudo shred -vfn 1 /dev/sda and have overwritten 8-10 GB I guess. Furthermore, my computer could not load the password input window after that. When I boot with the original disc I get this message …

Total answers: 3

Is it possible to recover a deleted directory?

Is it possible to recover a deleted directory? I deleted a directory using the command rm -drf file_dev as root. Is it possible to recover this directory with its content somehow? Asked By: sarp || Source Install testdisk, thank me later. Works about 99% of the time.The time that it didn’t is when you got …

Total answers: 1

How to recover from running "chown -r ubuntu /"

How to recover from running "chown -r ubuntu /" I ran chown -r ubuntu / on my system, and everything is gone. Is there any way to recover? This is a server server hosted on OHV. Asked By: marotox123 || Source There are (at least) two scenarios: You ran this as a regular user (not …

Total answers: 1

Lost /home partition after resizing with kde partition manager

Lost /home partition after resizing with kde partition manager The disk name is /dev/sdd and the partition table was as it follows: Partition Type Label Size Used First Sector Last Sector Number of sectors /dev/sdd1 unknown Microsoft reserved 15.98MiB —- 34 32767 32734 /dev/sdd2 ntfs Kingston (Data partition) 270.63GiB 252.94GiB 32768 567590911 567558144 /dev/sdd5 ext4 …

Total answers: 1

dd stops copying mid-way through a CD

dd stops copying mid-way through a CD I got a couple of old disks I’m trying to copy over to a HDD. Some of the disks worked fine and I was able to copy them using just mount and rsync, however as is it with old disks, some of the disks were failing to mount. …

Total answers: 1

error: you need to load the kernel first

error: you need to load the kernel first Last night, I jumped to update my Ubuntu, I left it overnight and when I woke up there was a strange screen, I turned it off and turned it on again, right now I get this error on the screen error: failure reading sector ex74706dae from hde". …

Total answers: 1