Answer the question
In order to leave comments, you need to log in
Fsck killed the ext4 partition. How to recover data?
Good afternoon!
The story is sad. There was a server at home, under ubuntu, for torrents and backups of the system. At some point, there was not enough space and I connected another screw. But it worked strangely and I often ran fsck on it. Once I missed a partition and ran fsck -y on the main hard drive. He found something on it, corrected something and that's it, after that the system does not boot.
mount: mounting /dev on /root/dev failed: No such file or directory<br/>
mount: mounting /sys on /root/sys failed: No such file or directory<br/>
mount: mounting /proc on /root/proc failed: No such file or Direcoty<br/>
<br/>
Filesystem mounted or opened exclusively by another program?
mount /dev/sda2 /mnt<br/>
mount: /dev/sda2 already mounted or /mnt busy<br/>
Answer the question
In order to leave comments, you need to log in
the stump is clear, all of the following must be done with a copy of the FS, in order not to lose it completely if there is still a chance
1. tune2fs -l / dev / sd? - what does he say? (The command means "print the contents of the superblock in human-readable form")
2. if tune2fs shows some "extra" flags, etc., they can be fixed using debugfs set_super_value (read man!). And in general, debugfs will demonstrate whether something can be done with the FS, or is that all. By the way, with it you can also pull spare superblocks, if their contents are different and more adequate - you're in luck. after that - fsck By the
way, just fsck with another (spare) superblock for reading information about the file system can help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question