Fail to get an IP from DHCP server after installing fvdw-sl

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Sun Apr 21, 2019 10:38 pm

webserver is not started in this rcS script, it will come later

oke
lets do following
unzip rcS-new-3.zip and put rcS-new-3 in tftp folder

load standalone kernel and connect with telnet
mkdir /sda7
mount /dev/sda7 on /sda7
give these commands
Code: Select all
rm /sda7/etc/passwd
rm /sda7/etc/passwd-
cp /etc/passwd /sda7/etc/passwd
cp /etc/passwd- /sda7/etc/passwd-
mv /sda7/etc/init.d/rcS /sda7/etc/init.d/rcS-new-2-old
tftp -r rcS-new-3 -l /sda7/etc/init.d/rcS - g ip-of-your-pc
chmod 777 /sda7/etc/init.d/rcS
umount /sda7
reboot -f

after boot connect with putty (port 12)
also fvdw-sl assistant may see the nas now
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

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Sun Apr 21, 2019 10:44 pm

fvdw wrote:webserver is not started in this rcS script, it will come later

oke
lets do following
unzip rcS-new-3.zip and put rcS-new-3 in tftp folder

load standalone kernel and connect with telnet
mkdir /sda7
mount /dev/sda7 on /sda7
give these commands
Code: Select all
rm /sda7/etc/passwd
rm /sda7/etc/passwd-
cp /etc/passwd /sda7/etc/passwd
cp /etc/passwd- /sda7/etc/passwd-
mv /sda7/etc/init.d/rcS /sda7/etc/init.d/rcS-new-2-old
tftp -r rcS-new-3 -l /sda7/etc/init.d/rcS - g ip-of-your-pc
chmod 777 /sda7/etc/init.d/rcS
umount /sda7
reboot -f

after boot connect with putty (port 12)
also fvdw-sl assistant may see the nas now


Seems the console can't see the u-boot...remain in waiting maybe becouse of we fixed ip? (but i give the same in the console...192.168.0.188)
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Sun Apr 21, 2019 10:46 pm

no poweroff the nas shutdown the fvdw-sl console, start fvdw-sl-console again choose standalone kernel and power on nas
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Sun Apr 21, 2019 10:47 pm

and leave fvdw-sl console settings default, do not put in ip of nas
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Sun Apr 21, 2019 10:49 pm

fvdw wrote:no poweroff the nas shutdown the fvdw-sl console, start fvdw-sl-console again choose standalone kernel and power on nas


Yes...as i do every time...but now is the 3rd time i retry... remain the black window in waiting for u-boot...may i have to reboot pc?

and leave fvdw-sl console settings default, do not put in ip of nas


I tried just now, the default ip for nas in console is 10.252.218.252
waiting for u-boot.
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Sun Apr 21, 2019 10:50 pm

I tried just now, the default ip for nas in console is 10.252.218.252
waiting for u-boot.


this can not be right, suggest your reboot your pc
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Sun Apr 21, 2019 10:51 pm

OK, reboot have fixed this trouble :thumbup
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Sun Apr 21, 2019 10:54 pm

I see many "no such file in directory"
Code: Select all
fvdw-sta-kirkwood login: root
Password:
root@fvdw-sta-kirkwood:/ # mkdir /sda7
root@fvdw-sta-kirkwood:/ # mount /dev/sda7 on /sda7
BusyBox v1.21.0 (2013-02-04 10:48:06 GMT+1) multi-call binary.

Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE

Mount a filesystem. Filesystem autodetection requires /proc.

        -a              Mount all filesystems in fstab
        -f              Dry run
        -v              Verbose
        -r              Read-only mount
        -w              Read-write mount (default)
        -t FSTYPE[,...] Filesystem type(s)
        -O OPT          Mount only filesystems with option OPT (-a only)
-o OPT:
        loop            Ignored (loop devices are autodetected)
        [a]sync         Writes are [a]synchronous
        [no]atime       Disable/enable updates to inode access times
        [no]diratime    Disable/enable atime updates to directories
        [no]relatime    Disable/enable atime updates relative to modification time
        [no]dev         (Dis)allow use of special device files
        [no]exec        (Dis)allow use of executable files
        [no]suid        (Dis)allow set-user-id-root programs
        [r]shared       Convert [recursively] to a shared subtree
        [r]slave        Convert [recursively] to a slave subtree
        [r]private      Convert [recursively] to a private subtree
        [un]bindable    Make mount point [un]able to be bind mounted
        [r]bind         Bind a file or directory [recursively] to another location
        move            Relocate an existing mount point
        remount         Remount a mounted filesystem, changing flags
        ro/rw           Same as -r/-w

There are filesystem-specific -o flags.

root@fvdw-sta-kirkwood:/ # rm /sda7/etc/passwd
rm: can't remove '/sda7/etc/passwd': No such file or directory
root@fvdw-sta-kirkwood:/ # rm /sda7/etc/passwd-
rm: can't remove '/sda7/etc/passwd-': No such file or directory
root@fvdw-sta-kirkwood:/ # cp /etc/passwd /sda7/etc/passwd
cp: can't create '/sda7/etc/passwd': No such file or directory
root@fvdw-sta-kirkwood:/ # cp /etc/passwd- /sda7/etc/passwd-
cp: can't create '/sda7/etc/passwd-': No such file or directory
root@fvdw-sta-kirkwood:/ # mv /sda7/etc/init.d/rcS /sda7/etc/init.d/rcS-new-2-old
mv: can't rename '/sda7/etc/init.d/rcS': No such file or directory
root@fvdw-sta-kirkwood:/ # tftp -r rcS-new-3 -l /sda7/etc/init.d/rcS - g 192.168.0.177
BusyBox v1.21.0 (2013-02-04 10:48:06 GMT+1) multi-call binary.

Usage: tftp [OPTIONS] HOST [PORT]

Transfer a file from/to tftp server

        -l FILE Local FILE
        -r FILE Remote FILE
        -g      Get file
        -p      Put file
        -b SIZE Transfer blocks of SIZE octets

root@fvdw-sta-kirkwood:/ # chmod 777 /sda7/etc/init.d/rcS
chmod: /sda7/etc/init.d/rcS: No such file or directory
root@fvdw-sta-kirkwood:/ #
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Fail to get an IP from DHCP server after installing fvdw-sl

Postby fvdw » Sun Apr 21, 2019 10:55 pm

thats because you did not mount correctly
Code: Select all
mkdir /sda7
mount /dev/sda7 /sda7

then do the rest of the commands
before reboot
Code: Select all
umount /sda7
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Fail to get an IP from DHCP server after installing fvdw-sl

Postby Draftmancorp » Sun Apr 21, 2019 11:00 pm

fvdw wrote:thats because you did not mount correctly
Code: Select all
mkdir /sda7
mount /dev/sda7 /sda7

then do the rest of the commands
before reboot
Code: Select all
umount /sda7


oh man, right, ok, i notice a wrong code too "- g" instead of "-g", I correct douring typing, here the response:
Code: Select all
root@fvdw-sta-kirkwood:/ # mkdir /sda7
mkdir: can't create directory '/sda7': File exists
root@fvdw-sta-kirkwood:/ # mount /dev/sda7 /sda7
root@fvdw-sta-kirkwood:/ # rm /sda7/etc/passwd
root@fvdw-sta-kirkwood:/ # rm /sda7/etc/passwd-
root@fvdw-sta-kirkwood:/ # cp /etc/passwd /sda7/etc/passwd
root@fvdw-sta-kirkwood:/ # cp /etc/passwd- /sda7/etc/passwd-
root@fvdw-sta-kirkwood:/ # mv /sda7/etc/init.d/rcS /sda7/etc/init.d/rcS-new-2-old
root@fvdw-sta-kirkwood:/ # tftp -r rcS-new-3 -l /sda7/etc/init.d/rcS -g 192.168.0.177
rcS-new-3            100% |***********************************************************************************|  8160   0:00:00 ETA
root@fvdw-sta-kirkwood:/ # chmod 777 /sda7/etc/init.d/rcS
root@fvdw-sta-kirkwood:/ # umount /sda7
root@fvdw-sta-kirkwood:/ # reboot -f


entered in putty correctly and assistant too see the nas. :thumbup
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 2 guests