Hi!
Please read first and understand the commands
Prepare diskCode:
parted -s -a optimal /dev/sda mklabel gpt
parted -s -a optimal /dev/sda mkpart boot ext2 2048s 75M
parted -s -a optimal /dev/sda mkpart swap linux-swap 75M 2G
parted -s -a optimal /dev/sda mkpart root ext4 2G 100%
mkfs.ext2 -F -L "boot" /dev/sda1
mkswap /dev/sda2
mkfs.ext4 -F -L "root" /dev/sda3
swapon /dev/sda2
Prepare new root folderCode:
mkdir -p /new_root/
mount -t ext4 /dev/sda3 /new_root
mkdir -p /new_root/boot
mount -t ext4 /dev/sda1 /new_root/boot
Install base debianCode:
debootstrap --arch=armel --include=nano,mc,tzdata,locales,openssh-server jessie /new_root
Chroot into fresh debianCode:
mount --bind /dev /new_root/dev
mount --bind /sys /new_root/sys
mount --bind /proc /new_root/proc
SHELL=/bin/bash HOME=/root chroot /new_root
Tasks to do in chrootCode:
passwd root
systemctl enable systemd-networkd
systemctl enable ssh
Files to prepare/etc/apt/sources.listCode:
deb http://ftp.us.debian.org/debian jessie main contrib non-free
deb http://http.debian.net/debian jessie-backports main contrib non-free
/etc/systemd/network/60-eth0.networkCode:
[Match]
Name=eth0
[Network]
DHCP=yes
/etc/fstabCode:
/dev/sda1 /boot ext2 defaults 0 0
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 defaults,noatime,nodiratime 0 1
/etc/ssh/sshd_configCode:
PermitRootLogin yes
/etc/flash-kernel/machineCode:
Buffalo Linkstation LS-QVL
You can change it to your needs, look in the
flash-kernel database!
Then do still inside chrootCode:
apt-get update
apt-get upgrade -y
apt-get -t jessie-backports install flash-kernel linux-image-4.9.0-0.bpo.2-marvell
- there should no error during installation
- check if /boot is populated correctly
You can also enable netconsole if there are problems with booting:
/etc/initramfs-tools/modulesCode:
mv643xx_eth
netconsole netconsole=@192.168.11.151/,6666@192.168.11.1/
mvmdio
Code:
update-initramfs -u
You can read the netconsole log on any other pc, just do this
Code:
ip a add 192.168.11.1/24 dev eth0
nc -l -u -p 6666 | tee ~/netconsole.log
Exit chroot, unmount all mounts and sync. then ready to restart!
After the first restartCode:
dpkg-reconfigure tzdata
dpkg-reconfigure locales
I dont use raid or stuff like that! I`am using binded disk pools.
-> disk1-data-partition mounted at /hddpool/pool01
-> disk2-data-partition mounted at /hddpool/pool02
-> disk3-data-partition mounted at /hddpool/pool03
-> disk4-data-partition mounted at /hddpool/pool04
Inside this i have folders like:
-> /hddpool/pool01/suttf1
-> /hddpool/pool02/stuff2
-> /hddpool/pool03/stuff3
-> /hddpool/pool03/stuff4
-> /hddpool/pool03/stuff5
-> /hddpool/pool04/stuff6
All of those folders can be binded to one single shared folder.
Code:
mount --bind /hddpool/pool01/stuff1 /shared/stuff1
mount --bind /hddpool/pool02/stuff2 /shared/stuff2
mount --bind /hddpool/pool03/stuff3 /shared/stuff3
mount --bind /hddpool/pool03/stuff4 /shared/stuff4
mount --bind /hddpool/pool03/stuff5 /shared/stuff5
mount --bind /hddpool/pool04/stuff6 /shared/stuff6
That means you have one shared folder with all other pools bind inside.
Let me know if your base system is up and running, then i can provide some useful systemd scripts for fancontrol etc...