Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Stefan Reuther Newsgroups: de.comp.os.unix.linux.misc Subject: Re: Partitionsimage mounten Date: Wed, 17 May 2017 18:57:27 +0200 Lines: 34 Message-ID: References: <9cdab402-e156-1038-b4d8-793fe37e314f@alexander-goetzenstein.my-fqdn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net vLOw1A/JomEH8enJbA0UzwOvmQpmPYABnCxqG/P6v8l5w0gdRS Cancel-Lock: sha1:MOY3s+3IsFfsZTR/I1r5uMXe5nY= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 Hamster/2.1.0.1538 In-Reply-To: <9cdab402-e156-1038-b4d8-793fe37e314f@alexander-goetzenstein.my-fqdn.de> Xref: csiph.com de.comp.os.unix.linux.misc:90528 Am 17.05.2017 um 16:30 schrieb Alexander Goetzenstein: > ich habe hier ein mit dd gezogenes Image einer Festplattenpartition, das > ich gern als loop device mounten möchte: > >> sudo mount -o loop /home/alex/Dokumente/Sicherungen/hdd-part.img /mnt/sdb7 >> Failed to read last sector (76083776): Das Argument ist ungültig >> HINTS: Either the volume is a RAID/LDM but it wasn't setup yet, >> or it was not setup correctly (e.g. by not using mdadm --build ...), >> or a wrong device is tried to be mounted, >> or the partition table is corrupt (partition is smaller than NTFS), >> or the NTFS boot sector is corrupt (NTFS size is not valid). >> Failed to mount '/dev/loop0': Das Argument ist ungültig >> The device '/dev/loop0' doesn't seem to have a valid NTFS. >> Maybe the wrong device is used? Or the whole disk instead of a >> partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? > > Wie gesagt, es ist ein Abbild von sda1, nicht von sda, da müsste ich > doch nichts extra tun, oder doch? Oder ist an dem Image etwas kaputt? Könnte es denn einer der anderen in der Fehlermeldung erwähnten Gründe sein, also ist es z.B. ein NTFS? Wenn nicht: hilft es, den Dateisystemtyp anzugeben? Google spuckt gleich als erstes das hier zu "Failed to read last sector" aus: https://tuxera.com/forum/viewtopic.php?f=3&t=124 Das deckt sich mit meinen Erfahrungen aus der DOS-Zeit, dass Microsoft das mit den Partitionsgrößen manchmal nicht so genau genommen hat (die Grüßen werden im Bootsektor der Partition gespiegelt, und diese Werte wurden nicht gegen die Partitionstabelle gegengeprüft). Dann hilft es vermutlich, einfach per "dd if=/dev/zero bs=1M count=1 >>hdd-part.img" noch ein Megabyte an das Image anzuhängen. Stefan