My share is gone.

My share is gone.

Postby ressof » Fri Jan 09, 2015 9:04 am

Hi

My share is gone and I wonder if you can do a factory reset of the fvdw-sl firmware?

I don't have any importent things on the share.

When I run fdisk -l I get this output

Code: Select all
Disk /dev/mtdblock0: 0 MB, 512000 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 0 MB, 4096 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1      243202  1953514583+ ee EFI GPT
ressof
 
Posts: 13
Joined: Thu Jun 12, 2014 5:34 am

Re: My share is gone.

Postby Jocko » Fri Jan 09, 2015 11:21 am

Hi ressof,

With fvdw-sl, there is no factory reset.
My share is gone
could you explain more please. is it happened after rebooting ?
(in this case, I think it is just because the data partition is no longer mounted)

I note that your nwsp2 uses a EFI GPT partition table. So you don't have to use fdisk but gdisk to get it:
Code: Select all
gdisk -l /dev/sda
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: My share is gone.

Postby ressof » Fri Jan 09, 2015 11:44 am

Here is my result from the command

Code: Select all
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): C01081EE-1216-4498-9EA0-562DCD492EDC
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 4062 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            4096         1052671   512.0 MiB   8300  Linux filesystem
   2         1052672         2101247   512.0 MiB   8300  Linux filesystem
   3         2101248         3149823   512.0 MiB   8200  Linux swap
   4         3149824         3166207   8.0 MiB     8300  Linux filesystem
   5         3166208         4739071   768.0 MiB   8300  Linux filesystem
   6         4739072         4755455   8.0 MiB     8300  Linux filesystem
   7         4755456         5804031   512.0 MiB   8300  Linux filesystem
   8         5804032      3907029134   1.8 TiB     8300  Linux filesystem


my /share/1000/ is empty

I have tried to get file permission with user nobody, maybe that have done something? I have noticed that some files belong to user nodbody that I havent altered.
ressof
 
Posts: 13
Joined: Thu Jun 12, 2014 5:34 am

Re: My share is gone.

Postby Jocko » Fri Jan 09, 2015 1:28 pm

So your partition table is still ok.

1/From putty, post this output
Code: Select all
mount


2/What it is your firmware version ?

3/ if you don't read this line in the mount output
Code: Select all
/dev/sda8 on /share/1000 type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
do:
Code: Select all
mount /dev/sda8 /share/1000
and then you should see your shares in
Code: Select all
ls -al /share/1000/


Next step, we need to search why the firmware failed to mount sda8
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: My share is gone.

Postby ressof » Fri Jan 09, 2015 2:03 pm

message after mount command

Code: Select all
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
/dev/sda1 on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda5 on /rw_fs type ext3 (rw,noatime,errors=continue,barrier=1,data=ordered)
tmpfs on /rw_fs/tmp/usr/var type tmpfs (rw,relatime,size=5000k)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/root on /lacie-boot type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)


I get this message when I try the mount dev/sda8 command

Code: Select all
mount: block device /dev/sda8 is write-protected, mounting read-only
mount: you must specify the filesystem type


and when I run mount again theres no sda8

should the owner and group of /rw_fs be nobody:nogroup?
ressof
 
Posts: 13
Joined: Thu Jun 12, 2014 5:34 am

Re: My share is gone.

Postby Jocko » Fri Jan 09, 2015 2:56 pm

ressof wrote:I get this message when I try the mount dev/sda8 command
Code: Select all
mount: block device /dev/sda8 is write-protected, mounting read-only
mount: you must specify the filesystem type
This would mean that you are lost your fs on sda8 :cry:
So post the output
Code: Select all
file -s /dev/sda8

and try again to mount sda8 with this cmdline
Code: Select all
mount -t ext3 /dev/sda8 /share/1000


should the owner and group of /rw_fs be nobody:nogroup?
This is also not normal. What did you play with nobody account ?
(we will look at later this point)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: My share is gone.

Postby ressof » Fri Jan 09, 2015 3:00 pm

Output of first command

Code: Select all
/dev/sda8: data


second command

Code: Select all
mount: wrong fs type, bad option, bad superblock on /dev/sda8,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


I played with to get btsync to work with another NAS, maybe run something that changes all files owner to root?

Thank you for your help
ressof
 
Posts: 13
Joined: Thu Jun 12, 2014 5:34 am

Re: My share is gone.

Postby Jocko » Fri Jan 09, 2015 3:10 pm

it seems that your first super block is corrupted.

So post
Code: Select all
 mke2fs -n /dev/sda8
(DON'T FORGET the flag '-n' !) and
Code: Select all
 tune2fs -l /dev/sda8
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: My share is gone.

Postby fvdw » Fri Jan 09, 2015 3:21 pm

read this post
viewtopic.php?f=11&t=1739#p13159

probably you just need
Code: Select all
e2fsck /dev/sda8
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: My share is gone.

Postby Jocko » Fri Jan 09, 2015 4:24 pm

This will work only if the superblock is not corrupted.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Next

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 2 guests