Date: Fri, 14 Jun 2019 11:56:15 +0200 From: Jan Martin Mikkelsen <janm@transactionware.com> To: peter.blok@bsd4all.org Cc: freebsd-scsi@freebsd.org Subject: Re: Bad SSD drive - what happens with unreadable data Message-ID: <E2C30D1A-A158-4923-B3C6-090249F004B8@transactionware.com> In-Reply-To: <C13683A4-B5CB-43B9-84EC-1E18BD88D63E@bsd4all.org> References: <C13683A4-B5CB-43B9-84EC-1E18BD88D63E@bsd4all.org>
index | next in thread | previous in thread | raw e-mail
Hi, You need to add “sync" to get the unreadable areas filled with zeros. Something like "dd conv=sync,noerror bs=4k” is probably good. Regards, Jan. > On 13 Jun 2019, at 13:02, peter.blok@bsd4all.org wrote: > > Hi, > > I have a bad SSD drive. If I read it with dd and conv=noerror, what happens with the unreadable areas? Does it fill with zeroes, or does the driver still copy what it was able to read? > > I’m getting ATA status 51 back, many blocks in a row. Followed by chunks of readable data, followed by unreadable data. > > Is there a modepage or something else to tell the drive to pass on the bad data? > > Any other ideas? > > Peter > > > > > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E2C30D1A-A158-4923-B3C6-090249F004B8>
