Cannot access 5big network 2

pacco
Posts: 27
Joined: Tue Apr 28, 2015 12:42 pm

Re: Cannot access 5big network 2

Post by pacco » Mon May 18, 2015 6:53 pm

Code: Select all

root@fvdw-sta-kirkwood:/tmp/mountpoint/shares # httpd
-sh: httpd: not found
I guess httpd is not available in this kernel?

Just called someone and maybe tomorrow I can get my hands on a usb disk large enough to store the data.

If so, how do I copy the data to the disk?

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Cannot access 5big network 2

Post by Mijzelf » Mon May 18, 2015 7:00 pm

It's inside busybox. Maybe the symlink is lacking. Try

Code: Select all

busybox httpd
About the usb disk. Connect it to the NAS. it will show up in /proc/partitions, possibly as sdf and sdf1. Now you can mount it:

Code: Select all

mkdir -p /tmp/usb
mount /dev/sdf1 /tmp/usb
Copy the data:

Code: Select all

cp -a /tmp/mountpoints/shares/* /tmp/usb/
But there is a catch. I don't think the stand alone kernel will support much filesystems. fvdw can tell.

Jocko
Posts: 99
Joined: Thu Mar 08, 2012 7:47 pm
Contact:

Re: Cannot access 5big network 2

Post by Jocko » Mon May 18, 2015 7:02 pm

I reread the unlucky's posts on plugout and at least he succeeded to transfer some files to his PC with the command

Code: Select all

tftp -l /mp2/path-to/file-name  -r file-name -p ip-pc
where mp2 is the folder where you mount the raid after assembling it; ip-pc is the ip of your PC

---Removed text about data size---
Last edited by Jocko on Mon May 18, 2015 7:13 pm, edited 1 time in total.

pacco
Posts: 27
Joined: Tue Apr 28, 2015 12:42 pm

Re: Cannot access 5big network 2

Post by pacco » Mon May 18, 2015 7:05 pm

Code: Select all

root@fvdw-sta-kirkwood:/tmp/mountpoint/shares # busybox httpd
root@fvdw-sta-kirkwood:/tmp/mountpoint/shares # httpd
-sh: httpd: not found
Unfortunately httpd still not working.

About the usb disk, I will report when I get my hands on it. Maybe I can reformat it to Linux. For Windows there is a tool to mount Linux volumes.

Jocko
Posts: 99
Joined: Thu Mar 08, 2012 7:47 pm
Contact:

Re: Cannot access 5big network 2

Post by Jocko » Mon May 18, 2015 7:08 pm

if you don't create the symlink, it can not work

Code: Select all

ln -s /bin/busybox /bin/httpd

pacco
Posts: 27
Joined: Tue Apr 28, 2015 12:42 pm

Re: Cannot access 5big network 2

Post by pacco » Mon May 18, 2015 7:09 pm

@Jocko
I reread the unlucky's posts on plugout and at least he succeeded to transfer some files to his PC with the command

Code:
tftp -l /mp2/path-to/file-name -r file-name -p ip-pc
where mp2 is the folder where you mount the raid after assembling it; ip-pc is the ip of your PC
Tried this already earlier today and got error messages that files were too big to transfer using tftp :-(

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Cannot access 5big network 2

Post by Mijzelf » Mon May 18, 2015 7:11 pm

httpd is already running, I think. The command 'busybox httpd' didn't spawn an error.

pacco
Posts: 27
Joined: Tue Apr 28, 2015 12:42 pm

Re: Cannot access 5big network 2

Post by pacco » Mon May 18, 2015 7:12 pm

Jocko wrote:if you don't create the symlink, it can not work

Code: Select all

ln -s /bin/busybox /bin/httpd
Website says

Code: Select all

404 Not Found

The requested URL was not found

Code: Select all

root@fvdw-sta-kirkwood:/tmp/mountpoint/shares # httpd
httpd: bind: Address already in use
Sorry for my ignorance. Really not familair with Linux.

Jocko
Posts: 99
Joined: Thu Mar 08, 2012 7:47 pm
Contact:

Re: Cannot access 5big network 2

Post by Jocko » Mon May 18, 2015 7:22 pm

You did first busybox httpd so you start once the httpd server and if you did again htppd after creating the symlink you try to start a 2d time the server.

So httpd is already running.

try to kill all httpd daemon(killall httpd) and use this command

Code: Select all

httpd -v -h /path/to/md2
/path/to/md2 is the path where the raid is mounted

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Cannot access 5big network 2

Post by Mijzelf » Mon May 18, 2015 7:25 pm

Hm. Seems busybox httpd doesn't support directory listings. Bummer. Some googling tells that can be 'solved' by using cgi scripts, but I guess that is beyond scope.

Maybe an ftp server?

Code: Select all

tcpsvd -vE 0.0.0.0 21 ftpd /tmp/mountpoint/shares
or

Code: Select all

busybox tcpsvd -vE 0.0.0.0 21 busybox ftpd /tmp/mountpoint/shares
I remember this leaked, some time ago. But this is a newer version of busybox, I guess.

pacco
Posts: 27
Joined: Tue Apr 28, 2015 12:42 pm

Re: Cannot access 5big network 2

Post by pacco » Mon May 18, 2015 7:32 pm

Mijzelf wrote:Hm. Seems busybox httpd doesn't support directory listings. Bummer. Some googling tells that can be 'solved' by using cgi scripts, but I guess that is beyond scope.

Maybe an ftp server?

Code: Select all

tcpsvd -vE 0.0.0.0 21 ftpd /tmp/mountpoint/shares
or

Code: Select all

busybox tcpsvd -vE 0.0.0.0 21 busybox ftpd /tmp/mountpoint/shares
I remember this leaked, some time ago. But this is a newer version of busybox, I guess.
Ok, this works partially. Right now I am using ftp to copy some important files to the other NAS. Some files however give an error trying to copy. Could it be that some of the files are damaged?

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Cannot access 5big network 2

Post by Mijzelf » Mon May 18, 2015 7:39 pm

Which error? Are these files huge? If there is a filesystem error, you should see that if you run

Code: Select all

dmesg | tail
on the NAS. (You can open a 2nd telnet session, if desired)

pacco
Posts: 27
Joined: Tue Apr 28, 2015 12:42 pm

Re: Cannot access 5big network 2

Post by pacco » Mon May 18, 2015 7:46 pm

Mijzelf wrote:Which error? Are these files huge? If there is a filesystem error, you should see that if you run

Code: Select all

dmesg | tail
on the NAS. (You can open a 2nd telnet session, if desired)
Yes, some files are approx. 30/40Gb big.

Code: Select all

root@fvdw-sta-kirkwood:/ # dmesg | tail
[  101.951309]  disk 0, o:1, dev:sda2
[  101.951318]  disk 1, o:1, dev:sdb2
[  101.951326]  disk 2, o:1, dev:sdc2
[  101.951334]  disk 3, o:1, dev:sdd2
[  101.951507] md0: detected capacity change from 0 to 3992583405568
[  128.273781]  md0: unknown partition table
[  128.280275] XFS (md0): Mounting Filesystem
[  128.579832] XFS (md0): Starting recovery (logdev: internal)
[  128.597702] XFS (md0): resetting quota flags
[  129.153768] XFS (md0): Ending recovery (logdev: internal)
For now I will take the most important files and copy them to the other NAS (some fail).

Will get back to you tomorrow. This will took some time! At least I see files being copied so I am so greatful to both of you!!! THANKS!

Frank

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Cannot access 5big network 2

Post by Mijzelf » Mon May 18, 2015 7:48 pm

No filesystem errors. So I think busybox ftpd just can't handle files >4GiB.

Jocko
Posts: 99
Joined: Thu Mar 08, 2012 7:47 pm
Contact:

Re: Cannot access 5big network 2

Post by Jocko » Mon May 18, 2015 7:50 pm

which ftp client do you use? maybe you should limit the number of connections and speed transfer

Post Reply