Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Feb 23, 2018 7:19 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 49 posts ]  Go to page 1 2 3 4 Next
Author Message
 Post subject: Debian on Mini
PostPosted: Tue Nov 25, 2008 8:32 pm 
Offline
Newbie

Joined: Thu Nov 20, 2008 8:27 pm
Posts: 6
Hello everyone,

I just bought this really nice linkstation mini. I already have a Linkstation LS2 and liked the idea having a quiet Debian server at home.
Well, now I am struggling.

Couple of days ago I stumbled upon http://buffalo.nas-central.org/forums/viewtopic.php?f=61&t=12026&st=0&sk=t&sd=a&start=30 where LaitrKeiows noted that he managed to follow the steps on http://buffalo.nas-central.org/index.php/LS_Pro_Debootstrap_Howto to install lenny on the mini.

I realized that you can't really follow this howto because some information is missing and I was not able to find it.

What I did is this:
- Starting the mini
- Stopping services like in http://buffalo.nas-central.org/index.php/LS_Mini:_Install_Gentoo
- Because I was happy with the partitioning I just did:
Code:
mdadm -f /dev/md1 /dev/sdb2
mdadm -f /dev/md0 /dev/sdb1
mdadm -r /dev/md1 /dev/sdb2
mdadm -r /dev/md0 /dev/sdb1
mkfs.ext3 /dev/sdb2
mkfs.ext3 /dev/sdb1
mkdir /mnt/debian
mount -t ext3 /dev/sdb2 /mnt/debian
mkdir /mnt/debian/boot
mount -t ext3 /dev/sdb1 /mnt/debian

- I unpacked my previously generated lenny stage 1 archive to /mnt/debian and started stage 2 via chroot and configured /etc/apt/sources.list, /etc/network/interfaces, /etc/fstab, installed some packages like joe, ssh, udev and configured them like in http://buffalo.nas-central.org/index.php/LS_Pro_Debootstrap_Howto

But then comes the tricky bit I am absoultely not sure about if it was right:
- I copied the contents of /boot to /mnt/debian/boot and unpacked http://buffalo.nas-central.org/download/Users/davy_gravy/kernelpackages/2.6.26-update_full_debian.tgz to /mnt/debian and replaced the original uImage.buffalo with uImage-2.6.26
- Then I copied the files boot_options and initrd.buffalo from http://buffalo.nas-central.org/download/ALL_ARM9/ARMel%20Lenny/ to /mnt/debian/boot
- I 'touched' the files /mnt/debian/boot/linkstation_release, /mnt/debian/boot/hddrootmode and /mnt/debian/boot/rootfs_ok
- Rebooted

After a minute I received pings from the mini but it just booted in EM letting me telnet into it. So the first boot failed.

I can't mount /dev/sdb1 or 2 (mount: /dev/sdb1 is not a valid block device) and left it alone now.

I would like to know what the right files in /boot are to boot the 2.6.26 kernel into lenny and if there is a way to do it without disassembling the unit.

Thanks in advance!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Nov 26, 2008 7:20 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
mrpeggit wrote:
I would like to know what the right files in /boot are to boot the 2.6.26 kernel into lenny

You should have been using a special kernel for the mini.

Quote:
mount -t ext3 /dev/sdb2 /mnt/debian
mkdir /mnt/debian/boot
mount -t ext3 /dev/sdb1 /mnt/debian


So you mounted both /dev/sdb2 and /dev/sdb1 into one directory? :?


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Nov 26, 2008 6:56 pm 
Offline
Newbie

Joined: Thu Nov 20, 2008 8:27 pm
Posts: 6
Quote:
You should have been using a special kernel for the mini.

Arghh. You probably mean this one: http://buffalo.jpfast.net/LS-Mini-2.6.27-rc6.tbz2 :|

Quote:
So you mounted both /dev/sdb2 and /dev/sdb1 into one directory?

Sorry, no. Typo:
Code:
mount -t ext3 /dev/sdb2 /mnt/debian
mount -t ext3 /dev/sdb1 /mnt/debian/boot


I just disassembled the box and will try to fill the right files into place...

Thanks!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Sun Nov 30, 2008 8:38 pm 
Offline
Newbie

Joined: Thu Nov 20, 2008 8:27 pm
Posts: 6
I did some progress, but then again not...

I had success with the kernel in http://buffalo.jpfast.net/LS-Mini-2.6.27-rc6lsmini-2008-10-09-23-39-29.tbz2 and replacing the initrd.buffalo with a custom one to boot from /dev/sdb2. I made this according to http://code.google.com/p/buffalo-nas-hacking/wiki/HOWTO_Initrd_for_Linkstation_RAID.
That worked really good.

Then I got brave and thought it might not such a big step to get the RAID configuration back in place with my new Debian. So I did mkfs.ext3 on sda1/sda2 and copied all stuff from sdb1 and sdb2 respectively. Then I changed the initrd.buffalo to boot from /dev/md1 and the /etc/fstab to contain md0 instead of sdb1 and md1 instead of sdb2. Obviously that was not such a good idea.

Now I ended up with a non-booting linkstation. All I get is a never ending blinking blue power LED. That's not quite what I wanted.

I am now looking for a way to prepare the hard drives with my Linux desktop PC to be able to boot again. I even did not manage to get back to my previous configuration booting from sdb2. The linkstation does not even boot with only one drive in place. Does somebody know what the linkstation mini needs for a successful boot?

Could someone give me good hint?

At the moment I am thinking about enabling the serial console to debug the situation a bit better.


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Mon Dec 01, 2008 12:18 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
1) Partition one of your hard drives, partition types should be "RAID autodetect"
2) Make correspond arrays with one of disks missing as in the howto.
3) Mount them and untar to them you debian/gentoo tarball, add a kernel and a suitable initrd.
4) Boot!

I used such a config with one of drives missing to develop a kernel.

Also, if you already dissected you mini, you can try to make updated kernel with support for CIFS: they got it fixed in one of recent .28-rc.


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Mon Dec 01, 2008 9:38 pm 
Offline
Newbie

Joined: Thu Nov 20, 2008 8:27 pm
Posts: 6
Thanks a lot LaitrKeiows!

The partition type "RAID autodetect" did part of the trick. I could boot with one drive.
But the funny thing was that I could not boot with two drives until I swaped them.
Now the system is working perfectly anyhow!

Now I would like fiddle around with the switch and the button to let them do what I want.
But this is not so important by now.


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Tue Dec 02, 2008 12:07 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
mrpeggit wrote:
Now I would like fiddle around with the switch and the button to let them do what I want.

They are regular keyboard events:
viewtopic.php?p=91361#p91361


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Mon Jun 01, 2009 7:01 pm 
Offline
Total Newbie

Joined: Mon Jun 01, 2009 6:12 pm
Posts: 1
Hello,

I've been struggling to install Debian on my Linkstation Mini.
The thing is:
- I have no original Firmware anymore, so I don't have access to a working Linux on the Mini
- I soldered a Serial interface, so I see the boot messages
- When I install a First stage on the Hard drives through my laptop, it won't boot on the linkstation; probably due to the lack of stage2 installation.

Of course, trying to do the stage2 on my laptop results in a "bad exec format", since my laptop isn't an ARM.

Any advice on how to go through stage2 installation with deboostrap?

Thanks!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Jul 08, 2009 8:33 pm 
Offline
Newbie

Joined: Wed Jul 08, 2009 8:18 pm
Posts: 25
Hi everyone

I followed these steps http://forum.buffalo.nas-central.org/viewtopic.php?p=94231#p94231 and http://buffalo.nas-central.org/wiki/LS_Mini:_Install_Gentoo except I installed Debian instead of Gentoo.

For the installation of Debian I used the instructions from http://buffalo.nas-central.org/index.php/LS_Pro_Debootstrap_Howto

After the reboot my mini just keeps booting and booting and I can't ping or telnet to it.

What did I do wrong?
What can I do to get it working?

Thanks


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Fri Jul 24, 2009 3:14 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
Seems I need to write a Debian-based HOWTO... Will do that soon!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Sun Jul 26, 2009 4:33 pm 
Offline
Newbie

Joined: Tue Jan 27, 2009 8:51 pm
Posts: 6
Hi LaitrKeiows,

i have genlink on my ls mini and i want to go back to the standard firmware or debian. How can i make it? Disassemble the ls mini... and then??


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Wed Aug 12, 2009 9:03 pm 
Offline
Total Newbie
User avatar

Joined: Wed Aug 12, 2009 8:43 pm
Posts: 2
LaitrKeiows wrote:
Seems I need to write a Debian-based HOWTO... Will do that soon!

I'm very excited about this. Please do, please do!


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Tue Oct 20, 2009 2:38 am 
Offline
Newbie

Joined: Wed Oct 07, 2009 12:00 am
Posts: 48
I just posted a guide to installing Ubuntu (and Debian) on the LinkStation Mini...
http://buffalo.nas-central.org/wiki/LS_ ... all_Ubuntu

The process involves bootstrapping Ubuntu (or Debian) from an existing installation of Gentoo (per http://buffalo.nas-central.org/wiki/LS_ ... all_Gentoo).

It took me many attempts to get it right... hope it helps.

-=Bob


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Tue Oct 20, 2009 2:55 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
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

Well done! Thanks a lot ! :up:


Top
   
 Post subject: Re: Debian on Mini
PostPosted: Tue Oct 20, 2009 4:28 am 
Offline
Newbie

Joined: Wed Oct 07, 2009 12:00 am
Posts: 48
My pleasure. I also made an archive of the stage 2 Ubuntu bootstrap files which I'd like to contribute to the site, but I'm not sure what it takes to get that done. It's about 108mb and it would make the installation process considerably faster (the Gentoo, kernel, and initrd downloads would not be necessary). Any suggestions?

-=Bob


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 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:
cron
Powered by phpBB® Forum Software © phpBB Limited