Installing Debian

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Installing Debian

Post by lolcese » Tue Feb 18, 2014 1:27 am

Splitted from NEED HELP for hard drive replacement

I'm in the same spot, with my disk dead and no images :cry:
I will try the Debian way, anybody has an advice about where to start? http://www.rigacci.org/wiki/doku.php/do ... d2_network has a detailed tutorial to install Debian together with LaCie operating system. I think that I can adapt the procedure to an empty disk, but better if somebody has a better idea.
Thanks


lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: NEED HELP for hard drive replacement

Post by lolcese » Tue Feb 18, 2014 10:33 am

Thanks a lot
The Debian repository (http://ftp.nl.debian.org/debian/dists/t ... ole/lacie/) is empty, do you know where I can get the files?
Also, in ftp://lacie-nas.org/u-boot there are files for the d2 network v2, but not for the d2 network. They are the same or I need to compile them?

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

Re: NEED HELP for hard drive replacement

Post by Mijzelf » Tue Feb 18, 2014 1:53 pm

Uhm. Posted too soon, I think. The D2 is not Kirkwood based, it has an Orion chip, so this installer won't work anyway.

And no, the u-boot of the D2v2 is not compatible with the D2.

I'm not aware of an installer for the Orion, but it can be installed manually. Just compile a compatible uImage, and write it (raw) to partition sda6. U-boot will load it, and execute it with 'root=/dev/sda7,ro' in the command line.
So put a Debian rootfs in sda7, and the system will boot into Debian. No need to exchange u-boot, so far.

Having a serial connection is highly recommended.

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: NEED HELP for hard drive replacement

Post by lolcese » Thu Feb 20, 2014 6:07 pm

Mijzelf, thanks a lot for your help. I managed to successfully compile uImage (at least, I have a file called uImage), and I wrote it to /dev/sda6. Now, I'm lost, how can I put a Debian rootfs?
Thanks again

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

Re: NEED HELP for hard drive replacement

Post by Mijzelf » Thu Feb 20, 2014 7:37 pm

Which kernel version?

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: NEED HELP for hard drive replacement

Post by lolcese » Thu Feb 20, 2014 7:39 pm

arm kernel. I followed (more or less) the instructions in http://www.rigacci.org/wiki/doku.php/do ... d2_network

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

Re: NEED HELP for hard drive replacement

Post by Mijzelf » Thu Feb 20, 2014 7:42 pm

No, I meant which number (2.6.??). That defines which Debian version can run upon it.

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: NEED HELP for hard drive replacement

Post by lolcese » Thu Feb 20, 2014 7:43 pm

kernel 2.6.36

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

Re: NEED HELP for hard drive replacement

Post by Mijzelf » Thu Feb 20, 2014 7:57 pm

Ah. In that case you can run a recent one. Having a quick look in the download section I guess this one can do. Do you have serial access?

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: NEED HELP for hard drive replacement

Post by lolcese » Thu Feb 20, 2014 9:57 pm

No, I haven't serial access. So, I dd uImage to sda6, debian-wheezy-arm.tar.gz to sda7 and...

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: NEED HELP for hard drive replacement

Post by lolcese » Fri Feb 21, 2014 1:00 am

Well, something is working, as the blue led is on and the disk is spinning. But nothing shows in the router asking for DHCP. Any ideas?

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

Re: Installing Debian

Post by Mijzelf » Fri Feb 21, 2014 6:55 pm

Several.
1) I chose this rootfs on base of it's name, I don't know anything about it. The poster doesn't seem to have posted anything in the forum. So I don't know the network configuration either. Maybe it has a fixed address. Have a look in /etc/network/interfaces. More info here.
2) Have a look in /var/log/ to see if something interesting is logged.
3) It is possible the rootfs is readonly, as the u-boot command line specifies so. You can edit /etc/fstab to solve that, add a line

Code: Select all

/dev/sda7				/		auto	noatime,rw	0 0

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Fri Feb 21, 2014 10:53 pm

First at all, thanks Mijzelf, i really appreciate your help.

/etc/network/interfaces contains

Code: Select all

auto lo
iface lo inet loopback
So it looks good.

I cleaned /var/log, booted again and still empty, so is seems that debian is not booting.

/etc/fstab didn't existed, so I created it with (and also placed a copy in /etc/fstab.d:

Code: Select all

/dev/sda7            /      auto   noatime,rw   0 0
/dev/sda2            /home  auto   defaults,noatime      0      1
How can I check if the uImage is properly redirecting to /dev/sda7?

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Sat Feb 22, 2014 2:28 am

I realized that in your http://downloads.lacie.nas-central.org/ ... jzelf/tmp/ dir there are files like uImage_d2Network and rootfs.txz. Those are valid files?

Post Reply