I have a Buffalo Linkstation with 2 x 2TB disks in a Raid 1
configuration. I found out that one disk was defective, so I bought an identical one on ebay, secondhand because my model is no longer in production. I need to erase it (it was formatted as XFS) so that it can
be used to recreate the raid array. I connected it via a USB adaptor and gave the command
dd if=/dev/zero of=/dev/sdc bs=1M
but got the message
dd: error writing '/dev/sdc': No space left on device
32117+0 records in
32116+0 records out
33676349440 bytes (34 GB, 31 GiB) copied, 9.70154 s, 3.5 GB/s
which surprised me, because I thought that dd command was highly destructive. If that means it only wrote to about 15% of the disk, does
that mean that 85% of the disk cannot be used?
Can someone provide more insight please?
I have a Buffalo Linkstation with 2 x 2TB disks in a Raid 1
configuration. I found out that one disk was defective, so I bought an identical one on ebay, secondhand because my model is no longer in production. I need to erase it (it was formatted as XFS) so that it can
be used to recreate the raid array. I connected it via a USB adaptor and
gave the command
dd if=/dev/zero of=/dev/sdc bs=1M
but got the message
dd: error writing '/dev/sdc': No space left on device
32117+0 records in
32116+0 records out
33676349440 bytes (34 GB, 31 GiB) copied, 9.70154 s, 3.5 GB/s
which surprised me, because I thought that dd command was highly
destructive. If that means it only wrote to about 15% of the disk, does
that mean that 85% of the disk cannot be used?
Can someone provide more insight please?
On Wed, 08 Jun 2022 11:32:52 -0400, Grimble <grimble@nomail.afraid.org> wrote:Hello Dave. Yes, lsblk recognises /dev/sdc as 2TB/1.8TiB SCSI disk.
I have a Buffalo Linkstation with 2 x 2TB disks in a Raid 1
configuration. I found out that one disk was defective, so I bought an
identical one on ebay, secondhand because my model is no longer in
production. I need to erase it (it was formatted as XFS) so that it can
be used to recreate the raid array. I connected it via a USB adaptor and
gave the command
dd if=/dev/zero of=/dev/sdc bs=1M
but got the message
dd: error writing '/dev/sdc': No space left on device
32117+0 records in
32116+0 records out
33676349440 bytes (34 GB, 31 GiB) copied, 9.70154 s, 3.5 GB/s
which surprised me, because I thought that dd command was highly
destructive. If that means it only wrote to about 15% of the disk, does
that mean that 85% of the disk cannot be used?
Can someone provide more insight please?
Are you sure sdc isn't a usb stick and not the hard disk?
Regards, Dave Hodgins
Yes, dd is "highly destructive". I would worry about writing 0 to the
whole disk that it would also destroy the low level formatting of the
disk.
On https://askubuntu.com/questions/17640/how-can-i-securely-erase-a-hard-drive
it says
"dd halts at the first bad block, and fails to clobber the rest (unless
I painfully use skip=... to jump ahead each time it stops)."
so it seems like that disk has bad blocks. Do you really want to be
using a hard drive which has bad blocks ? It sounds like it is on its
last legs which is probably why it was sold on ebay in the first place.
Why not just buy two new hard disks to replace both of your disks. One
of them has failed. What are the chances the other will fail in the next while?
Also why wipe the disk? Why not just reformat it for use as a raid?
On 2022-06-08, Grimble <grimble@nomail.afraid.org> wrote:
I have a Buffalo Linkstation with 2 x 2TB disks in a Raid 1
configuration. I found out that one disk was defective, so I bought an
identical one on ebay, secondhand because my model is no longer in
production. I need to erase it (it was formatted as XFS) so that it can
be used to recreate the raid array. I connected it via a USB adaptor and
gave the command
dd if=/dev/zero of=/dev/sdc bs=1M
but got the message
dd: error writing '/dev/sdc': No space left on device
32117+0 records in
32116+0 records out
33676349440 bytes (34 GB, 31 GiB) copied, 9.70154 s, 3.5 GB/s
which surprised me, because I thought that dd command was highly
destructive. If that means it only wrote to about 15% of the disk, does
that mean that 85% of the disk cannot be used?
Can someone provide more insight please?
Hello Dave. Yes, lsblk recognises /dev/sdc as 2TB/1.8TiB SCSI disk.
On 08/06/2022 18:17, William Unruh wrote:
Yes, dd is "highly destructive". I would worry about writing 0 to theI wanted to protect my 2 years' backups by repairing the current
whole disk that it would also destroy the low level formatting of the
disk.
On https://askubuntu.com/questions/17640/how-can-i-securely-erase-a-hard-drive
it says
"dd halts at the first bad block, and fails to clobber the rest (unless
I painfully use skip=... to jump ahead each time it stops)."
so it seems like that disk has bad blocks. Do you really want to be
using a hard drive which has bad blocks ? It sounds like it is on its
last legs which is probably why it was sold on ebay in the first place.
Why not just buy two new hard disks to replace both of your disks. One
of them has failed. What are the chances the other will fail in the next
while?
degraded raid array. Your point about potential failure had not escaped
me, but I thought I could get some safety first.
Buffalo technical help say the drive should not be pre-formatted before recovering the RAID array, which is why I am trying to erase current xfs format.
Also why wipe the disk? Why not just reformat it for use as a raid?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 483 |
Nodes: | 16 (0 / 16) |
Uptime: | 76:46:30 |
Calls: | 9,574 |
Calls today: | 5 |
Files: | 13,666 |
Messages: | 6,142,668 |