Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Wed Aug 15, 2018 5:43 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 49 posts ]  Go to page Previous 1 2 3 4 Next
Author Message
 Post subject: Re: Debian on Mini
PostPosted: Mon Oct 26, 2009 10:52 pm 
Offline
Total Newbie
User avatar

Joined: Wed Aug 12, 2009 8:43 pm
Posts: 2
rpinchbeck wrote:
I just posted a guide to installing Ubuntu (and Debian) on the LinkStation Mini...
http://buffalo.nas-central.org/wiki/LS_ ... all_Ubuntu

This is really great. Thanks!!!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Thu Oct 29, 2009 2:00 am 
Offline
Newbie

Joined: Wed Oct 07, 2009 12:00 am
Posts: 48
I added a wiki template for all Debian-based installs. Specific instructions for Debian and Ubuntu are available now as separate pages (no uncommenting required)...

http://buffalo.nas-central.org/wiki/LS_ ... all_Debian
http://buffalo.nas-central.org/wiki/LS_ ... all_Ubuntu

-=Bob


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Sun Nov 08, 2009 8:19 pm 
Offline
Total Newbie

Joined: Sun Nov 08, 2009 7:23 pm
Posts: 3
Hello @,
I want to install DEBIAN on my new Linkstation Mini (LS-WS1.0TGL/R1) 2x500GB.
I follwed the instructions, on the Page:
http://buffalo.nas-central.org/wiki/LS_ ... all_Debian

I completed the first Phase :-)
and started with the second Phase.

2nd Phase....on Web-Page:
After move of the Power Switch to ON Position,
the SATA Hard Disks in the Mini are running only a few seconds and then stopping.

After the stop of the Hard Disks:
The green LED is showing network traffic and
the red LED ist periodic 6 times blinking with a following longer pause.

The Linkstation does not reply a ping.

Here the output of "fdisk -l" of the first SATA disk in LS-Mini:
sdd on my Computer = sda on LS-Mini

Code:
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1         125     1004031   fd  Linux raid autodetect
/dev/sdd2             126         375     2008125   82  Linux swap / Solaris
/dev/sdd3             376        2808    19543072+  fd  Linux raid autodetect
/dev/sdd4            2809       60801   465828772+  fd  Linux raid autodetect


Here the output of "df -h" of the mounted partitions.
I have choosen an other partitions size according the instruction on the WEB-Page.
Code:
/dev/md13              19G  654M   17G   4% /mnt/md13
/dev/md11             965M   19M  898M   3% /mnt/md13/boot
/dev/md14             438G  329M  415G   1% /mnt/md14


Here the "ls -al" of the /boot partition:
Code:
-rw-r--r-- 1  501 uucp  252322  9. Okt 2008  initrd.buffalo
-rw-r--r-- 1  501 uucp      49  9. Okt 2008  initrd-md13.md5sum
drwx------ 2 root root   16384  7. Nov 15:25 lost+found
-rw-r--r-- 1  501 uucp 1220924  9. Okt 2008  uImage.buffalo


What is probaly the problem, why the HardDisks stop running ?
What can I do in this phase of installation?

The next days I want to build a cable with an RS232 level shifter to view the serial output of LS-MINI.

Regards
Lille :D


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Sun Nov 08, 2009 11:53 pm 
Offline
Newbie

Joined: Wed Oct 07, 2009 12:00 am
Posts: 48
[quote="lille"]I have choosen an other partitions size according the instruction on the WEB-Page.
What is probaly the problem, why the HardDisks stop running ?
What can I do in this phase of installation?
[/quote]

Not sure what the problem is... it might be the different partition sizes, but I don't know enough about the u-boot and initrd images to comment on that. I have only tested the scripts with the partition sizes listed.

During testing, I encountered a similar problem which appeared to be caused by residual partitions on the drives. To resolve the problem, I had to remove all partitions, add new ones, and reformat them on both drives before it booted successfully. The scripts do this for you... provided you follow them exactly.

If you run the scripts in the exact order listed, it should work (it has worked for me during numerous test runs). As a first test, try exchanging the hard drives in the Linkstation and see if it boots. Remember that the first boot of Gentoo can take 20 minutes to finish (it did during my tests).

I can't imagine that the partition sizes matter, but maybe they do. If all else fails, try using the scripted partition sizes and see if that makes a difference. Good luck.

-=Bob


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Mon Nov 16, 2009 2:57 pm 
Offline
Total Newbie

Joined: Sun Nov 08, 2009 7:23 pm
Posts: 3
Hello @,

in my first Debian Install on LS Mini, I mixed up the LS Mini disks.
That was the reason I can't complete step 2, described on the Web:
http://buffalo.nas-central.org/wiki/LS_ ... all_Debian
in my message before.

Yet I have choosen the following partition size on LS-Mini:
Code:
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x63b5caea

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          63      506016   fd  Linux raid autodetect                                ---> 512MB
/dev/sdc2              64         307     1959930   82  Linux swap / Solaris                            ---> 2GB
/dev/sdc3             308        2740    19543072+  fd  Linux raid autodetect                      ---> 20GB
/dev/sdc4            2741       60801   466374982+  fd  Linux raid autodetect                  ---> rest   


In the next step, with the above choosen partitions,
I was successful with the Installation of:
* First Phase ... all OK :D

* Second Phase :D Booted Gentoo on Mini and saw ssh Gentoo login screen ... Complete bootstrapping process

* Third Phase ... done as described in the installation guide

* Fourth Phase .... :( after 15minutes and longer waittime, can't login into LS-MINI.

No ping replies from LS-Mini after 15min waittime.




Some questions:

* After Third Phase: Only SATA2 on Linkstation disk has the Debian installation and
SATA1 on Linkstation has the same partitions as SATA1 but is complete empty. --> correct?

* In the reason above the Linkstation is booting on SATA2 ---> correct?

* SATA1 label on Linkstation board is /dev/sda and SATA2 label on LS board is /dev/sdb ---> correct?

* In the Fourth Phase the description want to add the sdb partitions to the RAID with command: mdadm --add /dev/md11 /dev/sdb1
But, when the LS-Mini is booting from sdb (SATA2) I have to add /dev/sda partitions to the RAID.... or not ?

* To prevent errors in network configuration of the Third Phase, in my opinion it is better to boot the LS-Mini by dhcp network connection :-)
Like as Gentoo in Phase Two......

* What can I do in this Phase of installation?

Best regards from
Thomas


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Sat Dec 05, 2009 1:01 pm 
Offline
Total Newbie

Joined: Sun Nov 08, 2009 7:23 pm
Posts: 3
Hello @,
after I installed the SerialPort RS232 on my LS-Mini as described in
http://buffalo.nas-central.org/wiki/Add ... he_LS_MINI
I used the terminal program "minicom" on my Debian installed Computer,
to view the /dev/console output from my Linkstation Mini (Settings BAUD 115200 8N1)

In the minicom terminal I saw what happens during boot in the "Fourth Phase".
See Phase 1-4 in http://buffalo.nas-central.org/wiki/LS_ ... all_Debian

That happens:
    * During boot, the System is starting a harddisk check of each installed partition. Described as "Wait for 15 minutes for initialization to complete". But in my installation the harddisk check fails and the kernel stops the boot process. Due this time of boot the LAN network is not available, but with the minicom console I see the boot process output and it is possible to login to LS-Mini via minicom :up: .
    * After login as root, I have to start the fsck /dev/partition_name manually
    * After manual fsck the LS-Mini is booting with network.
    * I can login with ssh and completed the Fourth Phase of Debian installation on my LS-Mini :D
    * Happy

Best regards from
Thomas


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Jan 06, 2010 11:52 am 
Offline
Newbie

Joined: Thu Oct 30, 2008 7:52 pm
Posts: 14
Hi Thomas,
Thanks for posting the update, I really would like to have Debian on my mini. I currently have GenLink but it's a real pain installing new software.
Are the full binaries available once you have debian setup? My old Linksys NSLU2 (slug) was brilliant and installing packages couldn't be easier with apt-get.
I wanted my mini to be a fast NSLU2 but the software has really let it down.

Sounds like a serial port is a must-have for the upgrade though :-(

Cheers,
Chris.


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Jan 06, 2010 12:25 pm 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
cmcbuffalo wrote:
Sounds like a serial port is a must-have for the upgrade though :-(

Not really. Emerge debootstrap and you almost got it :)


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Mon Mar 15, 2010 8:25 pm 
Offline
Newbie

Joined: Thu Oct 30, 2008 7:52 pm
Posts: 14
LaitrKeiows wrote:
cmcbuffalo wrote:
Sounds like a serial port is a must-have for the upgrade though :-(

Not really. Emerge debootstrap and you almost got it :)


Hi just saw your post now. What the heck, I'll give it a go!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Tue Mar 16, 2010 9:56 pm 
Offline
Newbie

Joined: Thu Oct 30, 2008 7:52 pm
Posts: 14
Hi,
I've followed your tip and managed to get debootstrap emerged. I have completed stage 2. As far as I can figure I am now exactly where I would be if I had followed the guide from the beginning, or, is there any way I can avoid taking the disks out? My PC is old and doesn't have SATA interfaces but if I have to I will find a PC to use.

I presume the reason I need to take the disks out is that it is not possible to replace the contents of the root filesystem at runtime without the OS crashing, is this the case?

Looking forwarding to having Lenny on my Mini :D

Cheers,
Chris.


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Mar 17, 2010 3:53 pm 
Offline
Newbie

Joined: Thu Oct 30, 2008 7:52 pm
Posts: 14
Well, I now have Lenny on my Mini :biglol:

Here is what I did:

To start with I had Gentoo installed for about a year and I was getting by but rather frustrated with the emerge stability problems and inability to install basic software like samba etc. My partitions were already set up as described in the Gentoo Wiki.

1. Installed debootstrap using emerge. As always with emerge there were lots of dependencies and problems.
po4a: The build was taking hours and eventually crashing translating Italian binary man pages (it.po). Solved by doing an emerge and when the files are extracted, delete all occurrences of it.po.
dpkg: Could not get this to work so found the source on the web and did a manual install.
debootstrap: Installed using --nodeps when the only missing package was dpkg which was manually installed.

2. Did stage 1 debootstrap directly on the Gentoo LS Mini.
3. Did a second stage debootstrap directly on the Gentoo LS Mini. Also copied everything from /lib/modules into this debootstrap dir. Created an archive of this as described in the wiki and configured my network in /etc/network/interfaces. I set the hostname and /etc/resolv.conf.
4. At this point I could chroot into my debootstrap dir and make sure everything was ok.
5. Opened the LS Mini case and attached the top drive to my Ubuntu PC using USB (the drive next to the ethernet port). Mounted this on my PC as /dev/sdc3 /mnt/root.
6. Removed everything from the root partition (/mnt/root).
7. Extracted the debootstrap fs that I prepared in step 3 as described in the wiki. Local settings were already configured in step 3.
8. I put the drive into the LS Mini and booted with just the top disk. Startup was quick and successful.
9. I put the second disk back in and booted up.
10. I added the second disk to the RAID:

mdadm /dev/md13 -a /dev/sda3
# Then observed in /proc/mdstat that the resync was occuring. This was pretty quick as the partition is only 2GB.

mdadm /dev/md14 -a /dev/sda4
# Then observed in /proc/mdstat that the resync was occuring, this one will quite a while (still running).

Thanks a lot to rpinchbeck for the excellent Wiki and to LaitrKeiows for the gentle "nudge" to give debootstrap a go.

Cheers,
Chris.


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Mar 31, 2010 9:50 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
In my opinion the current guide is too complex and contains many unnecessary steps. You do not need to install Gentoo to get Ubuntu/Debian on your LS Mini, as there is a very simple procedure to make an armel tarball and unpack it. The only thing you need is to use Debian tarball inplace of Gentoo one to get everything spinning ;)

Do not forget to install ssh into it!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Fri Apr 02, 2010 3:38 am 
Offline
Newbie

Joined: Wed Oct 07, 2009 12:00 am
Posts: 48
I wrote the original procedure and I agree that it is too complicated. However, it is what works with the resources available for download. It would be my pleasure to upload working Debian/Ubuntu compressed images here... if someone would be kind enough to explain to me how to do it. That would eliminate the entire Gentoo install and reduce the procedure to one simple phase (remove drives, create/format raid volumes, uncompress image file, reboot). And, for those who still have the stock kernel installed, the drives would not even require removal.


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Thu Jul 15, 2010 11:20 pm 
Offline
Newbie

Joined: Wed Oct 07, 2009 12:00 am
Posts: 48
Well, I finally got the files compiled and uploaded...

Install Debian 5.0 (Lenny) On Buffalo Linkstation Mini:
http://buffalo.nas-central.org/wiki/Ins ... ation_Mini

No disassembly required.

These instructions use an Ubuntu 9.04 live CD (although other live CDs may work) to run ACP Commander, connect to the device, and install a debootstrap stage2 archive of Debian 5.0.5 with the latest Debian kernel custom built for the Linkstation Mini (version 2.6.32-15 backported).

Enjoy!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Fri Jul 16, 2010 7:43 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
rpinchbeck wrote:
No disassembly required.

Thank you for such a clever guide!


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

All times are UTC+01:00


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:
Powered by phpBB® Forum Software © phpBB Limited