Lacie 2bigNAS

Re: Lacie 2bigNAS

Postby IAmTroy » Mon Jul 29, 2024 8:34 pm

When I boot the firmware without uboot, it hangs up. No telnet, no ping. I then have to use the standalone kernel and uboot to boot , then mount /dev/sda7 and read the boot.log file.

It looks like there is an issue in the laniffunc_configure.finc program. My boot.log file is updating if I edit the laniffunc_configure.finc program, so I know it's getting that far. But it appears to not be completing this step. Seems to be getting caught at the line:

Code: Select all
 if (mwexec("/sbin/udhcpc -b -i " . escapeshellarg($lanif) . " -s {$g['etc_path']}/api/api_dhcpc.php dhcpdCbScript -hostname='{$config['system']['hostname']}'") !=
                                echo "cannot start udhcpc process.\n";
                                return FAIL_E;                                                                       
                        }                   


If I comment out this line, it appears to boot further, but still no network access. I'll keep looking.
IAmTroy
Donator VIP
Donator VIP
 
Posts: 8
Joined: Wed Jul 24, 2024 8:32 pm

Re: Lacie 2bigNAS

Postby fvdw » Mon Jul 29, 2024 8:46 pm

do you have a dhcp server active in your lan?
If not, then getting an ip by dhcp the firmware will fail (the standalone kernel assign some ip manual if dhcp fails).

ps the lan configuration script is ok, it is used for all nas types, I uave a 2bignas myself and it works without an issue
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 2bigNAS

Postby IAmTroy » Mon Jul 29, 2024 8:52 pm

fvdw wrote:do you have a dhcp server active in your lan?
If not, then getting an ip by dhcp the firmware will fail (the standalone kernel assign some ip manual if dhcp fails).

ps the lan configuration script is ok, it is used for all nas types, I uave a 2bignas myself and it works without an issue


Thanks. I only have the 2BigNAS and a Windows PC connected to a switch and the switch should be providing the DHCP address. I'll keep checking.
IAmTroy
Donator VIP
Donator VIP
 
Posts: 8
Joined: Wed Jul 24, 2024 8:32 pm

Re: Lacie 2bigNAS

Postby fvdw » Mon Jul 29, 2024 8:58 pm

If you enable a dhcp server on your pc it should work.
If there is no dhcp server the firmware will try to get an ip forever, the character @ that you see in the boot.lig. Means dhcp request time out and a new request is sent.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 2bigNAS

Postby IAmTroy » Wed Jul 31, 2024 3:06 pm

I managed to get it working. It seems my network switch is not providing a dhcp server, so the Lacie would assign a random IP address to the NAS using the format 169.254.xxx.xxx. I was never able to find the fvdw server using fvdw-sl-assistand as the span of IP addresses was too long.

I edited the IPAddr file in the finc directory to provide an address of 169.254.193.xxx instead of the default 169.254.xxx.xxx. This was then able to be found using fvdw-sl-assistant. I'll be placing this device on a different network that uses a DHCP server, but I wanted to get it working before I moved it.

Thanks so much for your help on this. I will be donating to this worthwhile project!
IAmTroy
Donator VIP
Donator VIP
 
Posts: 8
Joined: Wed Jul 24, 2024 8:32 pm

Re: Lacie 2bigNAS

Postby fvdw » Wed Jul 31, 2024 3:26 pm

glad to hear you got it working and thank you for your donation. We prefer to get an ip from a dhcp server as at first time boot it is not possible to know which ip pool is used on the lan. After first boot succeds the user can set a static ip iso automatic using the webinterface of the firmware. Maybe we should add an option during install to set an static ip.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Previous

Return to Lacie 2Big Network vs2

Who is online

Users browsing this forum: No registered users and 12 guests