Ok, I am here again. I try to learn more about the linux file system, encryption and more. But its not easy for me i am not familiar using bash, but i try to learn profoundly.
--> It must be the large sdb3 which is the encrypted partition:
https://imgur.com/a/J1Nh0Xa
So you suggest me to do the following:
1. Try to fix the file szstem using fdisk / debugfs?
Code: Select all
phoenix@phoenixzen ~ $ sudo debugfs /dev/sdb3
[sudo] password for phoenix:
Sorry, try again.
[sudo] password for phoenix:
debugfs 1.42.13 (17-May-2015)
/dev/sdb3: Bad magic number in super-block while opening filesystem
debugfs: ls
ls: Filesystem not open
debugfs:
.. and I tried 2fsck:
Code: Select all
phoenix@phoenixzen ~ $ sudo e2fsck -f /dev/sdb3
e2fsck 1.42.13 (17-May-2015)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb3
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
and now i try e2fsk:
Code: Select all
phoenix@phoenixzen ~ $ sudo e2fsck -f /dev/sdb3
e2fsck 1.42.13 (17-May-2015)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb3
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
phoenix@phoenixzen ~ $ sudo mke2fs -n /dev/sdb3
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 243996672 4k blocks and 61005824 inodes
Filesystem UUID: ccd2210a-20d0-4442-a0b7-23f353a670af
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
--> My Idea is now to fix the file system like this:
I tried but:
Code: Select all
phoenix@phoenixzen ~ $ sudo e2fsck -f -b 32768 /dev/sdb3
e2fsck 1.42.13 (17-May-2015)
e2fsck: Bad magic number in super-block while trying to open /dev/sdb3
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
--> If you have an input that would be highly appreceatet.. I think i dont do a backup due of lack of storage. I just try, cannot get much worse i guess.
2. Restore the system using another superblock?
--> I try to find out anything about the partition (as you said, the sdb3 is probably the encrypted partition)
Code: Select all
phoenix@phoenixzen ~ $ sudo dumpe2fs /dev/sdb3 | grep superblock
dumpe2fs 1.42.13 (17-May-2015)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb3
Couldn't find valid filesystem superblock.
I found here an example.. but its difficult for me due lack of understanding of bash and filesystem
https://www.cyberciti.biz/tips/survivin ... lures.html
Do you have maybe an example?