Habe jetzt von der defekten partion mitt ddrescue ein image erstellt.
Code: Alles auswählen
root@trixie:~# ddrescue -n /dev/sdc1 /media/michael/Intenso/backup.img backup.logfile
GNU ddrescue 1.27
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 240231 MB, tried: 262144 B, bad-sector: 0 B, bad areas: 0
Current status
ipos: 475912 MB, non-trimmed: 262144 B, current rate: 32243 kB/s
opos: 475912 MB, non-scraped: 0 B, average rate: 9148 kB/s
non-tried: 19136 kB, bad-sector: 0 B, error rate: 0 B/s
rescued: 475893 MB, bad areas: 0, run time: 7h 9m 18s
pct rescued: 99.99%, read errors: 0, remaining time: 1s
time since last successful read: 0s
Copying non-tried blocks... Pass 1 (forwards)
ipos: 65536 B, non-trimmed: 393216 B, current rate: 917 kB/s
opos: 65536 B, non-scraped: 0 B, average rate: 9136 kB/s
non-tried: 458752 B, bad-sector: 0 B, error rate: 0 B/s
rescued: 475912 MB, bad areas: 0, run time: 7h 9m 56s
pct rescued: 99.99%, read errors: 2, remaining time: 1s
time since last successful read: 0s
Copying non-tried blocks... Pass 2 (backwards)
ipos: 113966 MB, non-trimmed: 712704 B, current rate: 0 B/s
opos: 113966 MB, non-scraped: 0 B, average rate: 9126 kB/s
non-tried: 0 B, bad-sector: 0 B, error rate: 13107 B/s
rescued: 475912 MB, bad areas: 0, run time: 7h 10m 25s
pct rescued: 99.99%, read errors: 7, remaining time: 6s
time since last successful read: 5s
Copying non-tried blocks... Pass 5 (forwards)
ipos: 119010 MB, non-trimmed: 0 B, current rate: 0 B/s
opos: 119010 MB, non-scraped: 404480 B, average rate: 9110 kB/s
non-tried: 0 B, bad-sector: 5120 B, error rate: 0 B/s
rescued: 475912 MB, bad areas: 10, run time: 7h 11m 8s
pct rescued: 99.99%, read errors: 17, remaining time: 43s
time since last successful read: 0s
Trimming failed blocks... (forwards)
Finished
root@trixie:~#
das scheint geklappt zuhaben.
Jetzt wie bekomme ich das Image auf eine vorbereitete frei partition. Gedacht habe ich so:
das backup.img welches auf
Code: Alles auswählen
sdc 8:32 0 953.9G 0 disk
`-sdc1 8:33 0 953.9G 0 part /media/michael/Intenso
liegt,
soll auf
ausgepackt werden.
root@trixie:~# mount -o loop /media/michael/Intenso/backup.img /media/michael/backup
mount: /media/michael/backup: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
root@trixie:~#
was nicht klappt weil ja auch auf dem Image der superblock kaputt ist.
Und mit foremost weiß nicht welche Option ich da wählen soll?
Code: Alles auswählen
root@trixie:~# foremost -o /media/michael/Intenso -i /media/michael/backup
ERROR: /media/michael/Intenso is not empty
Please specify another directory or run with -T.
root@trixie:~# foremost -h
foremost version 1.5.7 by Jesse Kornblum, Kris Kendall, and Nick Mikus.
$ foremost [-v|-V|-h|-T|-Q|-q|-a|-w-d] [-t <type>] [-s <blocks>] [-k <size>]
[-b <size>] [-c <file>] [-o <dir>] [-i <file]
-V - display copyright information and exit
-t - specify file type. (-t jpeg,pdf ...)
-d - turn on indirect block detection (for UNIX file-systems)
-i - specify input file (default is stdin)
-a - Write all headers, perform no error detection (corrupted files)
-w - Only write the audit file, do not write any detected files to the disk
-o - set output directory (defaults to output)
-c - set configuration file to use (defaults to foremost.conf)
-q - enables quick mode. Search are performed on 512 byte boundaries.
-Q - enables quiet mode. Suppress output messages.
-v - verbose mode. Logs all messages to screen
root@trixie:~#
Gibt es da eine Alternative?