From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search

Stonie's rough dev notes

Fresh Debian on Kuropro

put a blank disk in the unit. add a serial port.

apt-get install tftp-hpa apt-get install minicom

download foonas

Upgrading Dave's PPC Lenny Build to Squeeze

Lenny tarball: [1]

Tips on the squeeze upgrade [2]

Changes I have made

modified /etc/network/interfaces to suit DHCP _then_ fall back to

built a new 2.6.37 kernel. [3]

  • added support for
    • ext4
    • jfs
    • xfs
    • usb bulk storage
    • Apple Talk
    • NTFS

Added a little bit of bling to .bashrc

Installed vsftp

installed samba

installed mlocate

updated MOTD to update from bootlog (not bootmisc)

created a user for annon FTP "annonftpuser" enabled non writable annon ftp root at /home/annonftpuser/

creates a user for samba "nasuser" enabled public samba share at /home/nasuser

installed htop

installed pciutils

installed ntfs-3g

Install hackery

Uboot 1.2 is needed.

ifconfig eth0:EM

nc -u -p 6666 -v -v 6666 press 's' for stop

hdfile may need to be set to uImage

=> printenv hdfile=boot/vmlinux.UBoot

=> setenv hdfile boot/uImage => saveenv

Boot into Foonas EM [4]

fdisk -l fdisk /dev/sda

remove all exiting partitions using the 'd' option

then just create a swap and a root partition

 foonas-em$ fdisk /dev/sda
 The number of cylinders for this disk is set to 60801.
 There is nothing wrong with that, but this is larger than 1024,
 and could in certain setups cause problems with:
 1) software that runs at boot time (e.g., old versions of LILO)
 2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)
 Command (m for help): n
 Command action
  e   extended
  p   primary partition (1-4)
 Partition number (1-4): 2
 First cylinder (1-60801, default 1): Using default value 1
 Last cylinder or +size or +sizeM or +sizeK (1-60801, default 60801): +512MB
 Command (m for help): n
 Command action
  e   extended
  p   primary partition (1-4)
 Partition number (1-4): 1
 First cylinder (64-60801, default 64): Using default value 64
 Last cylinder or +size or +sizeM or +sizeK (64-60801, default 60801): Using default value 60801
 Command (m for help): p
 Disk /dev/sda: 500.1 GB, 500107862016 bytes
 255 heads, 63 sectors/track, 60801 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot      Start         End      Blocks  Id System
 /dev/sda1              64       60801   487877985  83 Linux
 /dev/sda2               1          63      506016  83 Linux
 Partition table entries are not in disk order
 Command (m for help): w
 The partition table has been altered!
 Calling ioctl() to re-read partition table
 mkfs.ext3 /dev/sda1
 mkswap /dev/sda2

mount your new partitions

 foonas-em$ mkdir -p /mnt/rootfs
 foonas-em$ mount /dev/sda1 /mnt/rootfs
 cd /mnt/rootfs

drop the rootfs tarball into /mnt/rootfs and untar it

 foonas-em$ tar -xvzf test.tgz

Wait ages for the first boot to come up...

login with


Full write up

Debian Squeeze Image - Kuro HG