Networkspace 2 not working - understand what fvdw-sl can do

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby schlum » Tue Jun 07, 2016 3:03 pm

thanks very much Jocko. :rock

I am at work, and will try tonight.

for the sake of clarity, I understand I should:

1. first upload the specific mount binary that you refer to which is in tftp directory in my pc.
2. unpack it, and use it to mount the sda2
3. check if I can see my data.

if I can, I assume I could copy them to my pc (no clue on how I will do that, I assume I have to mount my PC hard drive or a network drive, but I don't know how I can refer to it in telnet).

If I can't, then I will need to upload xfs_repair, and other tars as you said:

do
Code: Select all
tftp -l  glibc-mini-mkfs.xfs-25feb14.tar -r  glibc-mini-mkfs.xfs-25feb14.tar -g ip-pc
tar -xf glibc-mini-mkfs.xfs-25feb14.tar -C /

and
Code: Select all
tftp -l xfs_repair -r xfs_repair -g ip-pc



(by the way, is there an order to respect in the former 2 uploads, like first xfs_repair, or first glibc-mini-mkfs.xfs-25feb14.tar ??)

and finally I would be able to run xfs_repair on my mounted sda2.

Thanks for confirming, and apologies if my questions are very basic... :oops:
schlum
 
Posts: 19
Joined: Thu Jun 02, 2016 4:42 pm

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby Jocko » Tue Jun 07, 2016 6:14 pm

Hi schlum
for the sake of clarity, I understand I should:

1. first upload the specific mount binary that you refer to which is in tftp directory in my pc.
2. unpack it, and use it to mount the sda2
3. check if I can see my data.

if I can, I assume I could copy them to my pc (no clue on how I will do that, I assume I have to mount my PC hard drive or a network drive, but I don't know how I can refer to it in telnet).
Yes that is
fvdw is testing a ftp server with fvdw-sl console, so it will be easy to do it
by the way, is there an order to respect in the former 2 uploads, like first xfs_repair, or first glibc-mini-mkfs.xfs-25feb14.tar ??)
No you can install them in the order you want
schlum wrote:and finally I would be able to run xfs_repair on my mounted sda2.
No! as mount command failed to do it.
and xfs_repair must be run only on an unmounted device (see carefully my command)

Then if xfs_repair succeeds to repair the fs on sda2, you should be able to mount it
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby schlum » Tue Jun 07, 2016 6:58 pm

Well, not a good start...: mount.tar is not in my tftp directory nor is mount binary.

Here is what I have in my tftp directory, from the console download in the attached file.

Where am I supposed to find this mount binary that is able to treat xfs partition ?

sorry for being so stupid...
You do not have the required permissions to view the files attached to this post.
schlum
 
Posts: 19
Joined: Thu Jun 02, 2016 4:42 pm

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby Jocko » Tue Jun 07, 2016 7:30 pm

:mrgreen: Sorry, mount.tar archive is not included in the fvdwsl console package

You will find here http://plugout.net/viewtopic.php?f=26&t=1574&start=40#p19163

Store the tar file in tftp folder
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby schlum » Tue Jun 07, 2016 9:09 pm

thanks a lot, again.

no luck for me though :cry: :cry: . It does not allow to mount sda2,
"mount: /dev/sda2: can't read superblock"

and xfs_repair also gives an error
"superblock read failed, offset 0, size 524288, ag 0, rval -1

fatal error -- Input/output error"

Not sure there is much more I can do now to recover the data..... Or do you have another idea ?
I have started to look it up in google and found this thread, but not sure what a superblock is, nor how I can make it use an "alternate superblock", nor if e2fsck present in tftp directory is the same as fsck...:
http://www.cyberciti.biz/faq/recover-ba ... partition/

Any guidance would be, once again, much appreciated !!!! Thanks.

Code: Select all
root@fvdw-sta-kirkwood:/ # tftp -l mount.tar -r mount.tar -g 192.168.1.109
mount.tar            100% |****************************************************************|   199k  0:00:00 ETA
root@fvdw-sta-kirkwood:/ # tar -xvf mount.tar
usr/
usr/sbin/
usr/sbin/mount
usr/lib/
usr/lib/libblkid.so.1
usr/lib/libblkid.so.1.1.0
usr/lib/libblkid.so
root@fvdw-sta-kirkwood:/ # mkdir /sda2
root@fvdw-sta-kirkwood:/ # /usr/sbin/mount /dev/sda2 /sda2

mount: /dev/sda2: can't read superblock
root@fvdw-sta-kirkwood:/ #
root@fvdw-sta-kirkwood:/ # cd /sda2
root@fvdw-sta-kirkwood:/sda2 # ls -l
total 0
root@fvdw-sta-kirkwood:/sda2 # cd /usr/sbin/
root@fvdw-sta-kirkwood:/usr/sbin # mount /dev/sda2 /sda2
mount: /dev/sda2: can't read superblock
root@fvdw-sta-kirkwood:/usr/sbin # cd /

root@fvdw-sta-kirkwood:/ # tftp -l  glibc-mini-mkfs.xfs-25feb14.tar -r  glibc-mini-mkfs.xfs-25feb14.tar -g 192.168.1.109
glibc-mini-mkfs.xfs- 100% |****************************************************************|  2519k  0:00:00 ETA
root@fvdw-sta-kirkwood:/ # tar -xf glibc-mini-mkfs.xfs-25feb14.tar -C /
root@fvdw-sta-kirkwood:/ # tftp -l xfs_repair -r xfs_repair -g 192.168.1.109
xfs_repair           100% |****************************************************************|   622k  0:00:00 ETA
root@fvdw-sta-kirkwood:/ # chmod 755 /xfs_repair
root@fvdw-sta-kirkwood:/ # xfs_repair /dev/sda2
-sh: xfs_repair: not found
root@fvdw-sta-kirkwood:/ # ls -l
total 3356
drwxr-xr-x    2 root     root          1820 Feb 25  2014 bin
drwxrwxr-x    6 root     root          3820 Jun  7 18:01 dev
drwxrwxrwx    4 root     root           200 Feb  3 22:56 etc
-rwxr-xr-x    1 root     root           672 Feb  2 19:56 fvdw-sl-programs
-rw-r--r--    1 root     root       2579456 Jun  7 20:11 glibc-mini-mkfs.xfs-25feb14.tar
-rwxr-xr-x    1 root     root          2125 Oct 26  2015 init
-rw-r--r--    1 root     root            14 Jun  7 18:01 ip.txt
drwxr-xr-x    3 root     root           300 Jun  7 20:12 lib
lrwxrwxrwx    1 root     root            12 Jun  7 18:01 linuxrc -> /bin/busybox
drwxrwxrwx    3 root     root            60 Feb  3 22:56 mnt
-rw-r--r--    1 root     root        204288 Jun  7 20:04 mount.tar
dr-xr-xr-x   62 root     root             0 Jan  1  1970 proc
drwxr-xr-x    2 root     root          1620 Jun  7 20:12 sbin
drwxr-xr-x    2 root     root            40 Jun  7 20:06 sda2
dr-xr-xr-x   12 root     root             0 Jun  7 18:01 sys
drwxr-xr-x    6 root     root           120 Feb 25  2014 usr
drwxr-xr-x    3 root     root            60 Feb  3 22:56 var
-rwxr-xr-x    1 root     root        637568 Jun  7 20:13 xfs_repair
root@fvdw-sta-kirkwood:/ # xfs_repair -n /dev/sda2
-sh: xfs_repair: not found
root@fvdw-sta-kirkwood:/ # mv xfs_repair /usr/sbin
root@fvdw-sta-kirkwood:/ # cd /usr/sbin
root@fvdw-sta-kirkwood:/usr/sbin # ls -l
total 688
-rwxr-xr-x    1 root     root         62872 Aug  7  2012 mount
-rwxr-xr-x    1 root     root        637568 Jun  7 20:13 xfs_repair
root@fvdw-sta-kirkwood:/usr/sbin # xfs_repair -n /dev/sda2
Phase 1 - find and verify superblock...
superblock read failed, offset 0, size 524288, ag 0, rval -1

fatal error -- Input/output error
root@fvdw-sta-kirkwood:/usr/sbin #
schlum
 
Posts: 19
Joined: Thu Jun 02, 2016 4:42 pm

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby Jocko » Tue Jun 07, 2016 9:21 pm

So need more swap space,

We go to add sda5 partition (which is also used as swap partition on regular boot),
do
Code: Select all
swapon /dev/sda5


And check new swap size
Code: Select all
free


Note: you failed to use xfs_repair from root because you did not use a full path
Code: Select all
/xfs_repair
(but as you moved the binary, do not use it)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby schlum » Tue Jun 07, 2016 9:29 pm

I/O error

Code: Select all
root@fvdw-sta-kirkwood:/ # swapon /dev/sda5
swapon: /dev/sda5: Input/output error
root@fvdw-sta-kirkwood:/ # free
             total         used         free       shared      buffers
Mem:        251884        14376       237508            0            0
-/+ buffers:              14376       237508
Swap:            0            0            0
schlum
 
Posts: 19
Joined: Thu Jun 02, 2016 4:42 pm

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby Jocko » Tue Jun 07, 2016 9:31 pm

and what is the output of
Code: Select all
fdisk -l /dev/sda
(replace by gdisk if it is a gpt table)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby schlum » Tue Jun 07, 2016 9:36 pm

Code: Select all
root@fvdw-sta-kirkwood:/ # fdisk -l /dev/sda
fdisk: can't open '/dev/sda': Input/output error
root@fvdw-sta-kirkwood:/ # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5

Warning! Read error 5; strange behavior now likely!
Warning! Read error 5; strange behavior now likely!
Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 00000000-0000-0000-0000-000000000000
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3907029101 sectors (1.8 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
schlum
 
Posts: 19
Joined: Thu Jun 02, 2016 4:42 pm

Re: Networkspace 2 not working - understand what fvdw-sl can

Postby Jocko » Tue Jun 07, 2016 9:39 pm

Your disk has disappeared :pound Maybe the xfs_repair error occurs it.

So you need to reboot the nas
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 5 guests