Re: [DNG] Can this drive be saved?

2020-08-29 Thread Gregory Nowak
On Sat, Aug 29, 2020 at 10:36:26PM -0500, goli...@devuan.org wrote: > On 2020-08-29 22:15, Gregory Nowak wrote: > >On Sat, Aug 29, 2020 at 09:15:13PM -0500, goli...@devuan.org wrote: > >>dd if=/dev/zero bs=1M of=/dev/sdx > > > >That will just erase the first megabyte of the drive, leaving > >utilit

Re: [DNG] Can this drive be saved?

2020-08-29 Thread golinux
On 2020-08-29 22:15, Gregory Nowak wrote: On Sat, Aug 29, 2020 at 09:15:13PM -0500, goli...@devuan.org wrote: dd if=/dev/zero bs=1M of=/dev/sdx That will just erase the first megabyte of the drive, leaving utilities like cfdisk to think the drive is new and unformatted. It won't attempt to ove

Re: [DNG] Can this drive be saved?

2020-08-29 Thread Gregory Nowak
On Sat, Aug 29, 2020 at 09:15:13PM -0500, goli...@devuan.org wrote: > dd if=/dev/zero bs=1M of=/dev/sda That will just erase the first megabyte of the drive, leaving utilities like cfdisk to think the drive is new and unformatted. It won't attempt to over write the bad sector(s) though. See the ot

Re: [DNG] Can this drive be saved?

2020-08-29 Thread golinux
I was wondering if a reformat might be possible but if it requires the nuclear option so be it. LOL! I've only had to dd a handful of times so searched and found this command to zero a drive. Will that get the job done? Any idea how long that might take on a 1 TB drive? There is cost|benefit

Re: [DNG] Can this drive be saved?

2020-08-29 Thread Gregory Nowak
On Sat, Aug 29, 2020 at 04:35:01PM -0500, goli...@devuan.org wrote: > What are the chances of fsck repairing the bad sectors? I shamefully admit I > have not thought about fsck for years. This looks to be at the media level, so is most likely beyond fsck. Since you said you can afford to lose this

Re: [DNG] Can this drive be saved?

2020-08-29 Thread Bruce Perens via Dng
If you just want to reuse the physical drive, without the data, there is a way to do that. Write zeros the entire length of the block device. If there are enough spare sectors left on the disk, the bad ones will be relocated as you write them. The various disk tools will then tell you what the over

Re: [DNG] Can this drive be saved?

2020-08-29 Thread golinux
On 2020-08-29 18:13, terryc wrote: On Sat, 29 Aug 2020 16:35:01 -0500 goli...@devuan.org wrote: PS. There is no critical data on this disk because I always keep multiple backups. But it would be nice to have that drive functioning in some capacity. The only other suggestion is 'the put it i

Re: [DNG] Can this drive be saved?

2020-08-29 Thread terryc
On Sat, 29 Aug 2020 16:35:01 -0500 goli...@devuan.org wrote: > PS. There is no critical data on this disk because I always keep > multiple backups. But it would be nice to have that drive functioning > in some capacity. The only other suggestion is 'the put it in the freezer trick' which may w

Re: [DNG] Can this drive be saved?

2020-08-29 Thread golinux
On 2020-08-29 17:15, Bruce Perens via Dng wrote: Copy the block partition (not the mounted files) to a same size or larger blank block partition using ddrescue or gddrescue. Try to mount that read only and copy the files off. If it doesn't work, try to restore the superblock using one of the tu

Re: [DNG] Can this drive be saved?

2020-08-29 Thread golinux
On 2020-08-29 16:52, Dimitris via Dng wrote: On 8/30/20 12:35 AM, goli...@devuan.org wrote: advice is most welcome. Thanks, Dimitris . . . maybe a "long shot" , but did you try another cable/adapter/case for that disk? Yes. Tested different usb and adapter. Have ordered a dock which wi

Re: [DNG] Can this drive be saved?

2020-08-29 Thread Bruce Perens via Dng
Copy the block partition (not the mounted files) to a same size or larger blank block partition using ddrescue or gddrescue. Try to mount that read only and copy the files off. If it doesn't work, try to restore the superblock using one of the tutorials online. On Sat, Aug 29, 2020, 2:52 PM Dimitr

Re: [DNG] Can this drive be saved?

2020-08-29 Thread Dimitris via Dng
On 8/30/20 12:35 AM, goli...@devuan.org wrote: > advice is most welcome. maybe a "long shot" , but did you try another cable/adapter/case for that disk? a few badblocks (?) would slow down the whole disk and maybe not open some folder(s)... "input/output error" and smart "read failure" could be s

[DNG] Can this drive be saved?

2020-08-29 Thread golinux
Dear Dev1ers, I have an oldish external 1 TB backup drive that is throwing up this mount error. Drive is single ext4 partition about 70% full: Error when trying to mount: Failed to open directory "cstwo". Error when getting information for file '/media/xx/cstwo/600': Input/output error.

Re: [DNG] terminology

2020-08-29 Thread Didier Kryn
Le 29/08/2020 à 11:24, Didier Kryn a écrit : > Le 28/08/2020 à 15:39, Adam Borowski a écrit : >> On Fri, Aug 28, 2020 at 08:37:07AM -0400, Hendrik Boom wrote: Is there an establiched word in the Linux/Unix xommunity for something which might be a file or a directory? Theref