Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Tue Jul 17, 2018 6:32 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Debian 6 auf QVL
PostPosted: Fri Apr 18, 2014 4:23 pm 
Offline
Total Newbie

Joined: Sat Mar 01, 2014 9:10 pm
Posts: 2
Hallo,

die LS hat shonks 1.65mod1b als firmware und es ist nur eine Festplatte in der LS und ich habe auch kein Raid im WebUI configuriert.

Ich habe folgende Anleitungen genutzt:

http://buffalo.nas-central.org/wiki/Deb ... _others%29

http://buffalo.nas-central.org/wiki/Ini ... _Raid-Boot

Da sich im LS boot ordner der shonk firmware nur diese Dateien befanden:

Code:
root@Nas:~# cd /boot
root@Nas:/boot# ls
conf_save.md5sum  conf_save.tgz     log.tgz
root@Nas:/boot#


(Siehe hier: viewtopic.php?f=77&t=26817)

habe ich die initrd.buffalo aus shonks lsupdater 1.65mod1b Paket gemountet um die kernel module zu kopieren.

Code:
cd /tmp
  dd if=initrd.buffalo of=initrd.gz ibs=64 skip=1
  gunzip initrd.gz
  mkdir INITRD
  mount -t ext2 -o loop initrd INITRD
  cp -R INITRD/lib/modules/2.6.[3-9]?* /lib/modules/
  umount INITRD
  rmdir INITRD
  rm initrd*



Das eigentliche Problem ist aber das ich von Raid keine Ahnung habe.
Bei folgender Stelle blicke ich nicht mehr durch.

If apt-get complains that pts isn't accessible: ignore it or mount devpts (mount -t devpts devpts /dev/pts).
If you are going to set up a raid, install mdadm:

Code:
mount -t proc proc /proc
apt-get install --no-install-recommends mdadm
umount /proc


Editing /etc/fstab (with vi or nano):

Code:
# /etc/fstab: static file system information.
#
# file system    mount point   type    options                  dump pass
/dev/sda2        /             xfs     defaults,noatime         0    1
/dev/sda1        /boot         ext3    ro,nosuid,nodev          0    2
/dev/sda5        none          swap    sw                       0    0
/dev/sda6        /mnt/disk1    xfs     defaults,noatime         0    0
proc             /proc         proc    defaults                 0    0
devpts           /dev/pts      devpts  gid=4,mode=620       0    0
tmpfs            /tmp          tmpfs   defaults                 0    0
sysfs            /sys          sysfs   defaults                 0    0


If you are going to set up a raid, install mdadm:

Code:
mount -t proc proc /proc
apt-get install --no-install-recommends mdadm
umount /proc


Create disk1 in mnt:

Code:
mkdir /mnt/disk1


If you are going to set up a raid, create array1 in mnt instead:

Code:
mkdir /mnt/array1


Ich habe mich an diese und die weiteren Befehle gehalten, und die hddrootfs.buffalo.updated erstellt.

Dann habe ich die Datei linuxrc.txt erstellt:

Wieder Raid Probleme ?

Code:
#!/bin/busybox sh
# linuxrc - to be put into the initrd

# Mount the /proc and /sys filesystems.
mount -t proc none /proc
mount -t sysfs none /sys

echo 'DEVICE /dev/sd??*' > /etc/mdadm/mdadm.conf
mdadm -Eb /dev/sd??* >> /etc/mdadm/mdadm.conf
mdadm -As --force

# use /dev/md1 as root
echo "0x901" > /proc/sys/kernel/real-root-dev
# use /dev/md2 as root
#echo "0x902" > /proc/sys/kernel/real-root-dev
#use /dev/sda6 as root
echo "0x806" > /proc/sys/kernel/real-root-dev
# use /dev/sdb6 as root
# echo "0x822" > /proc/sys/kernel/real-root-dev

# Clean up.
umount /proc
umount /sys


Und dann mit diesem Script angewendet:

Code:
#!/bin/bash
# Licensed under GPL v3 or later
# make-initrd.txt -- This script will be executed on the LS

# edit this line as needed
DEBOOTSTRAP=/root/debian-squeeze

if [ "$1" != chrooted ] ; then
  if [ ! -d $DEBOOTSTRAP ] ; then
    echo "debootstrap directory not found, please edit DEBOOTSTRAP in $0"
    exit 1
  fi
                 
  DIR=$( cd $(dirname $0) ; pwd)
                       
  cp "$0" "$DIR/linuxrc.txt" $DEBOOTSTRAP
  scriptname=$( basename "$0" )
  # rerun script in chrooted environment
  chroot $DEBOOTSTRAP bash -x "$scriptname" chrooted
  exit $?
fi
                                   
# install some required stuff
apt-get install --no-install-recommends busybox uboot-mkimage makedev dos2unix

cd /tmp
[ -f initrd.gz ] && rm initrd.gz

dd if=/dev/zero of=initrd bs=1k count=0 seek=3K
mke2fs -F -m 0 -b 1024 initrd
tune2fs -c0 -i0 initrd
mkdir INITRD
mount -o loop initrd INITRD

mkdir -p INITRD/{bin,lib,dev,etc/mdadm,proc,sbin}
cp -a /dev/{null,console,tty,sd{a,b,c,d}?,md*} INITRD/dev/
# ensure sd? and md exits, even if chrooted installation does not have them
cd INITRD/dev/
MAKEDEV sda sdb sdc sdd md
cd -

cp -aL /bin/busybox INITRD/bin/
cp -aL /sbin/mdadm /sbin/pivot_root INITRD/sbin

# find required libs and install into INITRD/lib
libs2install=$( ldd INITRD/*bin/* | grep -v "^INITRD/" | sed -e 's/.*=> *//'  -e 's/ *(.*//' | sort -u )
cp -aL $libs2install INITRD/lib

ln -s INITRD/bin/busybox INITRD/bin/sh

cp ../linuxrc.txt INITRD/linuxrc
dos2unix INITRD/linuxrc
chmod +x INITRD/linuxrc

umount INITRD
gzip initrd
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x0 -e 0x0 -n initrd -d initrd.gz ../initrd.buffalo


Dann die erstellten dateien in LS boot kopiert

Code:
root@Nas:/boot# ls
conf_save.md5sum  conf_save.tgz     log.tgz
initrd.buffalo hddrootfs.buffalo.updated


und dann die LS neu gestartet.

Leider wird aber die Buffallo Firmware gebootet und nicht Debian 6

Bitte um Hilfe ?

Gruß
Lsuser77


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: oxygen8 and 10 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