Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Jun 23, 2018 2:45 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 41 posts ]  Go to page Previous 1 2 3 Next
Author Message
PostPosted: Sun Jan 15, 2012 6:40 am 
Offline
Newbie

Joined: Thu Nov 03, 2011 2:55 pm
Posts: 32
Location: Chicago
I know what I did wrong!

my first fstab defined the root partition incorrectly. I used: " /dev/md22 /mnt/disk " the whole time. that's why it couldn't find the root partition. Everything works now. thank you every one.


Top
   
PostPosted: Sun Jan 15, 2012 12:34 pm 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
It's a good feeling having it working, isn't it?

I ended up taking it a step further... I took copies of the Debian filesystem created on the LS using debootstrap, a specially created initrd (set to boot off /dev/sda3) and the uImage.buffalo from ls-series-154-mod1 and set them aside. I then formatted both LS drives GPT by hooking them up to my Ubuntu desktop. Partitions as follows:

1GB ext3 /dev/sda1
1GB swap /dev/sda2
15GB ext3 /dev/sda3
remaining ext3 /dev/sda4

whole_drive ext3 /dev/sdb1

I copied initrd.buffalo and uImage.buffalo into /dev/sda1 and extracted the filesystem into /dev/sda3. I rebooted and had Debian running with no RAID in sight and it just works. I installed webmin and got Samba working easily. I've also got minidlna working, but that needed to be built from source and the config still needs some tweaking.

The key thing that I got out of all this is that once you have an armel Debian filesystem and the right uImage.buffalo, you've got everything you need to get the LS up and running. No reason to use TFTP or LSUpdater. No need for a Windows machine. If anyone is interested in this method, let me know and I could give more detail.

Thanks to everyone who helped along the way.

:wq


Top
   
PostPosted: Sun Jan 15, 2012 12:46 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2731
http://buffalo.nas-central.org/wiki/Deb ... to_.2Fboot

This howto says "You do not need LSUpdater.exe"
use "Installmethod 1: Copy file to /boot"


Top
   
PostPosted: Sun Jan 15, 2012 12:56 pm 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
I know that guide well. That's the guide I followed originally, which resulted in me bricking my LS.

What that guide doesn't explain is how to reformat the drives the way you want (i.e. no RAID), create an initrd to boot for an arbitrary partition and how to get Debian running on the LS pretty much from scratch. That is what I originally had in mind. And that's what I now have. Stoked!


Last edited by commandertrout on Tue Jan 24, 2012 8:17 am, edited 1 time in total.

Top
   
PostPosted: Sun Jan 15, 2012 5:18 pm 
Offline
Newbie

Joined: Thu Nov 03, 2011 2:55 pm
Posts: 32
Location: Chicago
Does this mean, you don't need to use the mdadm any more? we can eliminate dev/md## and just use dev/sdx#?


Top
   
PostPosted: Sun Jan 15, 2012 9:29 pm 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
That is exactly what it means! No more RAID, no more mdadm.


Top
   
PostPosted: Sun Jan 15, 2012 9:41 pm 
Offline
Newbie

Joined: Thu Nov 03, 2011 2:55 pm
Posts: 32
Location: Chicago
that's what I want to do to. I want to get rid of RAID completely. right now, with mdadm, i don't know how to mount the drive under linux.

when you prepare the hddrootfs, is there any steps I should be aware of?

if you don't mind, would you share that hddrootfs and the initrc.buffalo files?


Top
   
PostPosted: Mon Jan 16, 2012 4:20 am 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
There isn't anything particularly special to watch out for when preparing the hddrootfs, other than the obvious:

  • Setup /etc/network/interfaces properly for your network
  • Setup /etc/fstab
  • Install sshd and setup sshd_config so that root can login

I followed this guide http://buffalo.nas-central.org/wiki/Debian_Squeeze_on_LS-WXL very closely when creating the hddrootfs, with a few small deviations like using debootstrap_1.0.38_all.deb.

I'd be happy to share what I have. Can you recommend a way to share it?


Top
   
PostPosted: Mon Jan 16, 2012 5:57 am 
Offline
Newbie

Joined: Thu Nov 03, 2011 2:55 pm
Posts: 32
Location: Chicago
we can use rapidshare. if not, I don't mind to host it on my FTP.

here is the address: ftp://wenlez.servebeer.com:21

you can login as anonymous.

I tried your method to create a hddrootfs, it didn't work. I guess after I make the partitions under my ubuntu desktop, and I used the LSupdater to " reinitialize the parition " it also installed the firmware and back to RAID. So my unit went back to the endless reboot.


Top
   
PostPosted: Mon Jan 16, 2012 6:18 am 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
Forgive me if I'm repeating myself or telling you something that you already know here... The whole process that I followed to get from bricking (endless reboot) to Debian without RAID happened in two high-level steps:

1. Used ls-series-154-mod1 to get the LS from endless reboot back to stock, i.e. with RAID and web ui, etc. No Debian involved. See my post in this forum titled "Recover From Bricking".

2. Then I created a Debian hddrootfs (on the LS itself so that chroot works) and initrd following a guide for "Installing Debian LS-WXL". See my post titled "Debian Squeeze Installation" and lsuser1985's post "Installing Debian Squeeze on LS-WVL: Installer doesn't start".

Hopefully you'll be able to circumvent going through that whole process just by formatting your drives correctly (I'll give you those details later) and installing the initrd.bufflao, uImage.buffalo and hddrootfs that I upload to your FTP server.

If that doesn't work then maybe it is a problem with the firmware that was flashed and you'll need to start from scratch and go through the two step process above. Hopefully it won't come to that. I'll upload those files once I'm back from work (a few hours yet).

:wq


Top
   
PostPosted: Mon Jan 16, 2012 10:06 am 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
Here are some details from the hddrootfs that I have running now:

/etc/fstab
Code:
# /etc/fstab: static file system information.
#
# file system   mount point     type    options                 dump pass
/dev/sda1       /boot           ext3    ro,nosuid,nodev         0    2
/dev/sda2       none            swap    sw                      0    0
/dev/sda3       /               ext3    defaults,noatime        0    1
/dev/sda4       /home           ext3    defaults,noatime        0    2
/dev/sda5       /mnt/data       ext3    defaults,noatime        0    2
/dev/sdb1       /backup         ext3    defaults,noatime        0    2
/dev/sdb2       /mnt/data2      ext3    defaults,noatime        0    0
proc            /proc           proc    defaults                0    0


HDD in slot 1 (/dev/sda)
Code:
root@nas:~# parted /dev/sda
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           
Model: Seagate ST31000524AS (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name  Flags
 1      17.4kB  1000MB  1000MB  ext3
 2      1000MB  2000MB  1000MB  linux-swap(v1)
 3      2000MB  12.0GB  10.0GB  ext3
 4      12.0GB  212GB   200GB   ext3
 5      212GB   1000GB  788GB   ext3

#1 is /boot
#2 is swap
#3 is / (root)

HDD in slot 2 (/dev/sdb)
Code:
root@nas:~# parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           
Model: Seagate ST31000524AS (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size   File system  Name  Flags
 1      17.4kB  500GB   500GB  ext3
 2      500GB   1000GB  500GB  ext3


I'm just about to start uploading the two relevant files for the boot partition and the filesystem I have on my LS at the moment. Untar boot.tgz to /dev/sda1 and untar squeeze-armel-rootfs.tgz to /dev/sda3.


Top
   
PostPosted: Mon Jan 16, 2012 5:42 pm 
Offline
Newbie

Joined: Thu Nov 03, 2011 2:55 pm
Posts: 32
Location: Chicago
i will have to plan this out carefully as I only have one hard drive.

Also, there are 9 parts of rar on the FTP. but i'm not able to extract the files because it's missing part10? can you confirm if the upload is indeed finished?


Top
   
PostPosted: Mon Jan 16, 2012 9:22 pm 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
I sent you a private message saying that I was struggling to upload the balance of the rar volumes. There are 33 in total.


Top
   
PostPosted: Mon Jan 23, 2012 11:58 pm 
Offline
Newbie

Joined: Thu Nov 03, 2011 2:55 pm
Posts: 32
Location: Chicago
any one of you tried to compile a kernel? currently, with the kernel from buffalo, the IPtables is not supported. Even Shorewall is not working. The wiki Guide is using kernel 2.6.26, and the one in my LS-WVL is 2.6.31.8. I haven't try to get the latest version from debian yet, but i would like to ask if anyone had lucks with this.


Top
   
PostPosted: Tue Jan 24, 2012 12:56 am 
Offline
Newbie

Joined: Sat Nov 26, 2011 2:30 am
Posts: 31
I have not tried and I'm not planning to as the current (stock) Buffalo kernel does everything that I need. Well, for now anyway.

I was under the impression that there was some LS functionality that would not be available with a non-stock kernel - maybe it's access to fan and LEDs via /proc/buffalo/*.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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