HDD/Partition initialization problems

Re: HDD/Partition initialization problems

Postby Jocko » Thu Aug 06, 2020 7:59 am

All your ouptuts are ok :scratch and then it is only blkid command which has an amazing behaviour on your nas.

@fvdw
maybe if you compile the binary strace for jaker we may get some additional information to understand that.

I go to post you a patched format script where I disabled the final check on the fs (I can not use the busybox applet instead as it doesn't return fs type)

This will allow you to update the nas database after formatting and get vol-A
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: HDD/Partition initialization problems

Postby Jocko » Thu Aug 06, 2020 8:57 am

As there is no volume available on your nas you can not store on it easily the patched file. So it is available via a direct link and you have to download it with wget so that it is be stored on your nas :
Code: Select all
wget http://plugout.net/firm_version/fvdw-sl-18-2-setupjob-blkid-06aug2020.tgz -O /tmp/fvdw-sl-18-2-setupjob-blkid-06aug2020.tgz

tar -xf /tmp/fvdw-sl-18-2-setupjob-blkid-06aug2020.tgz -C /


Now you should have two format scripts
Code: Select all
ls -l  /usr/share/setup/set_fs*
(original and patched files)

Then if you run again the format script, all should be ok now with Vol-A and only blkid issue must be deepened...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: HDD/Partition initialization problems

Postby fvdw » Thu Aug 06, 2020 8:58 am

attached the strace binary.
Just put it in /usr/sbin and make ik executable (chmod 755 /usr/sbin/strace

To use it just put strace in front of the command
For example
Code: Select all
strace /usr/sbin/blkid

It will produce a lot of info, to capture it use a pipe to store in a file
For example
Code: Select all
strace /usr/sbin/blkid > /strace-blkid.txt


ps this part of output PARTLABEL="Linux filesystem" PARTUUID="00000000-0000-0000-0000-000000000000" when using blkid seems to be only listed when using GPT partition table.
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: HDD/Partition initialization problems

Postby Jocko » Thu Aug 06, 2020 9:38 am

In addition with fvdw's post, to get easily the zip file on your nas...

Set your credentials (if it is not yet done) : go to the main setup menu and click on the tab "firmware interface".

So use this command to download the zip file
Code: Select all
plugout download 6469
unzip -d /usr/sbin /tmp/strace-4.10-7sept15.zip
chmod 755 /usr/sbin/strace
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: HDD/Partition initialization problems

Postby jaker » Thu Aug 06, 2020 8:01 pm

In addition with fvdw's post, to get easily the zip file on your nas...

Well that was ridiculously easy. Thank you.

Let's see if I can add it directly here.

Edit: silly idea about adding it here as text.
Here's attachment
strace.zip
You do not have the required permissions to view the files attached to this post.
Last edited by jaker on Thu Aug 06, 2020 8:11 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 jaker » Thu Aug 06, 2020 8:07 pm

Edit: silly idea about adding it here as text.
Message removed

Output needed total 4 messages with 60000 character limit. :D
Last edited by jaker on Thu Aug 06, 2020 8:13 pm, edited 2 times in total.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: HDD/Partition initialization problems

Postby Jocko » Thu Aug 06, 2020 8:11 pm

Thank you for your posting but the output seems not to be fully pasted (stopped when the command examines the node ram7)

I think you should post two outputs instead
Code: Select all
strace /usr/sbin/blkid /dev/sda5
strace /usr/sbin/blkid /dev/sda8


like this we will be able to compare the outputs
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: HDD/Partition initialization problems

Postby jaker » Thu Aug 06, 2020 8:18 pm

Here's both sda5 and sda8 outputs attached.
strace_SDA5_and_SDA8.zip
You do not have the required permissions to view the files attached to this post.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: HDD/Partition initialization problems

Postby fvdw » Thu Aug 06, 2020 8:31 pm

For sda8 I do no see this line
Code: Select all
ioctl(4, BLKSSZGET, 512)                = 0


Could there be an issue with logical block size on sda8 :scratch
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: HDD/Partition initialization problems

Postby Jocko » Thu Aug 06, 2020 8:35 pm

So there is a significant difference between the output (begins after line 120+) where blkid reads information on sda node (think partition table information) and then additional information on sda5 before writing the output.
Where as with sda8 blkid does not do it :scratch

The exit seems to be different
Code: Select all
sda5:
exit_group(0)                           = ?
+++ exited with 0 +++
sda8:
exit_group(2)                           = ?
+++ exited with 2 +++


fvdw:
maybe code source gives more information

Otherwise, can you run the commands without strace like this
Code: Select all
/usr/sbin/blkid /dev/sda5
echo $?
/usr/sbin/blkid /dev/sda8
echo $?


About sda5 output it is the expected information : returns uuid of the fs and no partuuid
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 2 guests