General NAS-Central Forums

Welcome to the NAS community
It is currently Sat Jul 22, 2017 6:42 pm

All times are UTC




Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Mon May 18, 2015 6:53 pm 
Offline

Joined: Tue Apr 28, 2015 12:42 pm
Posts: 27
Code:
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?


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:00 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6014
It's inside busybox. Maybe the symlink is lacking. Try
Code:
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:
mkdir -p /tmp/usb
mount /dev/sdf1 /tmp/usb
Copy the data:
Code:
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.


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:02 pm 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
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

---Removed text about data size---


Last edited by Jocko on Mon May 18, 2015 7:13 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:05 pm 
Offline

Joined: Tue Apr 28, 2015 12:42 pm
Posts: 27
Code:
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.


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:08 pm 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
if you don't create the symlink, it can not work
Code:
ln -s /bin/busybox /bin/httpd


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:09 pm 
Offline

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

Quote:
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 :-(


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:11 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6014
httpd is already running, I think. The command 'busybox httpd' didn't spawn an error.


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:12 pm 
Offline

Joined: Tue Apr 28, 2015 12:42 pm
Posts: 27
Jocko wrote:
if you don't create the symlink, it can not work
Code:
ln -s /bin/busybox /bin/httpd


Website says

Code:
404 Not Found

The requested URL was not found


Code:
root@fvdw-sta-kirkwood:/tmp/mountpoint/shares # httpd
httpd: bind: Address already in use


Sorry for my ignorance. Really not familair with Linux.


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:22 pm 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
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:
httpd -v -h /path/to/md2
/path/to/md2 is the path where the raid is mounted


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:25 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6014
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:
tcpsvd -vE 0.0.0.0 21 ftpd /tmp/mountpoint/shares
or
Code:
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.


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:32 pm 
Offline

Joined: Tue Apr 28, 2015 12:42 pm
Posts: 27
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:
tcpsvd -vE 0.0.0.0 21 ftpd /tmp/mountpoint/shares
or
Code:
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?


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:39 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6014
Which error? Are these files huge? If there is a filesystem error, you should see that if you run
Code:
dmesg | tail
on the NAS. (You can open a 2nd telnet session, if desired)


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:46 pm 
Offline

Joined: Tue Apr 28, 2015 12:42 pm
Posts: 27
Mijzelf wrote:
Which error? Are these files huge? If there is a filesystem error, you should see that if you run
Code:
dmesg | tail
on the NAS. (You can open a 2nd telnet session, if desired)

Yes, some files are approx. 30/40Gb big.

Code:
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


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:48 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6014
No filesystem errors. So I think busybox ftpd just can't handle files >4GiB.


Top
 Profile  
 
PostPosted: Mon May 18, 2015 7:50 pm 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
which ftp client do you use? maybe you should limit the number of connections and speed transfer


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group