HDD/Partition initialization problems

Re: HDD/Partition initialization problems

Postby jaker » Wed Aug 12, 2020 1:42 pm

fvdw wrote:attached wipefs from util-linux-2.30
To be installed in /usr/sbin (and make executable with chmod)


Sorry I didn't manage to download this directly to NAS. RZ for receiving ZMODEM transfer over SSH does not exist and wget doesn't seem to be able to handle forum attachments. That "plugout download " method or direct link to file seemed to work. Could you copy the file to location without login?

I ended up trying filetransfer.io service and got the file downloaded. Here's the output.

Code: Select all
root@fvdwsl-base:/ # cd tmp/
root@fvdwsl-base:/tmp # wget  https://filetransfer.io/data-package/ASb6eBf7?do=d
ownload  -O /tmp/wipefs-utl-linux-2.30-arm.zip
--2020-08-12 13:59:51--  https://filetransfer.io/data-package/ASb6eBf7?do=download
Resolving filetransfer.io... 172.67.156.101, 104.27.158.245, 104.27.159.245
Connecting to filetransfer.io|172.67.156.101|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://s22.filetransfer.io/storage/download/eQQguWtRXjc6 [following]
--2020-08-12 13:59:52--  http://s22.filetransfer.io/storage/download/eQQguWtRXjc6
Resolving s22.filetransfer.io... 104.27.158.245, 172.67.156.101, 104.27.159.245
Connecting to s22.filetransfer.io|104.27.158.245|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13082 (13K) [application/octet-stream]
Saving to: ‘/tmp/wipefs-utl-linux-2.30-arm.zip’

100%[======================================>] 13,082      --.-K/s   in 0.001s

2020-08-12 13:59:52 (20.6 MB/s) - ‘/tmp/wipefs-utl-linux-2.30-arm.zip’ saved [13082/13082]

root@fvdwsl-base:/tmp # unzip -d /usr/sbin wipefs-utl-linux-2.30-arm.zip
Archive:  wipefs-utl-linux-2.30-arm.zip
  inflating: /usr/sbin/wipefs
root@fvdwsl-base:/tmp # chmod 755 /usr/sbin/wipefs
root@fvdwsl-base:/tmp # wipefs /dev/sda8
offset               type
----------------------------------------------------------------
0x1d10feb3000        zfs_member   [filesystem]

0x438                ext4   [filesystem]
                     UUID:  34b28832-b0c3-4bad-9617-5fa3c8620208

root@fvdwsl-base:/tmp #
Last edited by jaker on Wed Aug 12, 2020 2:01 pm, edited 1 time in total.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: HDD/Partition initialization problems

Postby fvdw » Wed Aug 12, 2020 1:59 pm

To download it using method describe by Jocko use as id 6474
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: HDD/Partition initialization problems

Postby fvdw » Wed Aug 12, 2020 2:01 pm

Seems our post crossrd each other
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: HDD/Partition initialization problems

Postby jaker » Wed Aug 12, 2020 2:01 pm

Code: Select all
root@fvdwsl-base:/ # cd tmp/
root@fvdwsl-base:/tmp # wget  https://filetransfer.io/data-package/ASb6eBf7?do=d
ownload  -O /tmp/wipefs-utl-linux-2.30-arm.zip
--2020-08-12 13:59:51--  https://filetransfer.io/data-package/ASb6eBf7?do=download
Resolving filetransfer.io... 172.67.156.101, 104.27.158.245, 104.27.159.245
Connecting to filetransfer.io|172.67.156.101|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://s22.filetransfer.io/storage/download/eQQguWtRXjc6 [following]
--2020-08-12 13:59:52--  http://s22.filetransfer.io/storage/download/eQQguWtRXjc6
Resolving s22.filetransfer.io... 104.27.158.245, 172.67.156.101, 104.27.159.245
Connecting to s22.filetransfer.io|104.27.158.245|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13082 (13K) [application/octet-stream]
Saving to: ‘/tmp/wipefs-utl-linux-2.30-arm.zip’

100%[======================================>] 13,082      --.-K/s   in 0.001s

2020-08-12 13:59:52 (20.6 MB/s) - ‘/tmp/wipefs-utl-linux-2.30-arm.zip’ saved [13082/13082]

root@fvdwsl-base:/tmp # unzip -d /usr/sbin wipefs-utl-linux-2.30-arm.zip
Archive:  wipefs-utl-linux-2.30-arm.zip
  inflating: /usr/sbin/wipefs
root@fvdwsl-base:/tmp # chmod 755 /usr/sbin/wipefs
root@fvdwsl-base:/tmp # wipefs /dev/sda8
offset               type
----------------------------------------------------------------
0x1d10feb3000        zfs_member   [filesystem]

0x438                ext4   [filesystem]
                     UUID:  34b28832-b0c3-4bad-9617-5fa3c8620208

root@fvdwsl-base:/tmp #


Actually I first did this to wrong NAS. :D and had to remove text and do it again. Here you go.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: HDD/Partition initialization problems

Postby fvdw » Wed Aug 12, 2020 2:17 pm

Seems there is a zfs_member signature besides ext4

Try to erase it using
Code: Select all
wipefs -a -t zfs_member /dev/sda8
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: HDD/Partition initialization problems

Postby Jocko » Wed Aug 12, 2020 3:07 pm

After running it, see what is now blkid output
Code: Select all
blkid /dev/sda8


and also mount command
Code: Select all
mkdir /tmp/sda8
mount /dev/sda8 /tmp/sda8

umount /tmp/sda8
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: HDD/Partition initialization problems

Postby jaker » Wed Aug 12, 2020 7:28 pm

Well that doesn't seem to do anything. Wonder what's wrong with this now. It does not seem to remove zfs_member.


Code: Select all
root@fvdwsl-base:/tmp # wipefs /dev/sda8
offset               type
----------------------------------------------------------------
0x1d10feb3000        zfs_member   [filesystem]

0x438                ext4   [filesystem]
                     UUID:  34b28832-b0c3-4bad-9617-5fa3c8620208

root@fvdwsl-base:/tmp # wipefs -a -t zfs_member /dev/sda8
root@fvdwsl-base:/tmp # wipefs /dev/sda8
offset               type
----------------------------------------------------------------
0x1d10feb3000        zfs_member   [filesystem]

0x438                ext4   [filesystem]
                     UUID:  34b28832-b0c3-4bad-9617-5fa3c8620208

root@fvdwsl-base:/tmp # blkid /dev/sda8
root@fvdwsl-base:/tmp #


Clearly mounting does not do anything either.

I wonder why it does not print any errors. Perhaps I should try -f parameter?

Code: Select all
root@fvdwsl-base:/tmp # wipefs

Usage:
 wipefs [options] <device>

Wipe signatures from a device.

Options:
 -a, --all           wipe all magic strings (BE CAREFUL!)
 -b, --backup        create a signature backup in $HOME
 -f, --force         force erasure
 -h, --help          show this help text
 -n, --no-act        do everything except the actual write() call
 -o, --offset <num>  offset to erase, in bytes
 -p, --parsable      print out in parsable instead of printable format
 -q, --quiet         suppress output messages
 -t, --types <list>  limit the set of filesystem, RAIDs or partition tables
 -V, --version       output version information and exit

For more details see wipefs(8).
root@fvdwsl-base:/tmp #


Force does not change the results
Code: Select all
root@fvdwsl-base:/tmp # wipefs -a -f -t zfs_member /dev/sda8
root@fvdwsl-base:/tmp # wipefs /dev/sda8
offset               type
----------------------------------------------------------------
0x1d10feb3000        zfs_member   [filesystem]

0x438                ext4   [filesystem]
                     UUID:  34b28832-b0c3-4bad-9617-5fa3c8620208

root@fvdwsl-base:/tmp #


I found this, so clearly someone else is also having same problem. https://bugs.debian.org/cgi-bin/bugrepo ... bug=856833

These might be useful, but I hesitated to try these on my own.
Using dd to erase:
https://icesquare.com/wordpress/linuxde ... ot-happen/

https://mikebellerue.blogspot.com/2017/04/wipefs.html
Last edited by jaker on Wed Aug 12, 2020 7:54 pm, edited 1 time in total.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: HDD/Partition initialization problems

Postby fvdw » Wed Aug 12, 2020 7:35 pm

Yes try the -f parameter
You could also try
Code: Select all
wipefs -a -f /dev/sda8


This should remove all sgnatures so also ext4
But I assume you have no data stored on sda8 so you can create it again by using format command
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: HDD/Partition initialization problems

Postby fvdw » Wed Aug 12, 2020 7:40 pm

The offset mentioned for zfs_member converted to decimal is 1997426864128 bytes so somewhere at the end of the disk. I wonder how it came there??. Was this disk used in another computer?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: HDD/Partition initialization problems

Postby fvdw » Wed Aug 12, 2020 7:51 pm

You can also try
Code: Select all
wipefs -o 1997426864128
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 8 guests