I failed to update without removing the HDD: I bricked my linkstation live with torrent.
By disassembling the HDD and mirroring a second Linkstation live, I could recover the linkstation.
Finally, here is the way how I backed-up and got Lenny to run.
The way is a quick hack and the description is kept short. However, I thought better a short description than no description
Do not forget to do a static IP assignment using your DHCP server.Backup the linkstation
acp_commander works also for the LS-CHL.
open the LinkStation with acp_commander and telnet to it
Assume "LS" the linkstation and "PC" your linux PC:
PC: netcat -l -p 9876 -w 10 | bzip2 -9 -c > ~/Buffalo/rescue/start.img.bz2
LS: dd if=/dev/disk bs=245670 count=26267 | nc <IP-adress of PC> 9876
Goto / at the Linkstation
PC: netcat -l -p 9876 -w 10 | bzip2 -9 -c > ~/Buffalo/rescue/disk1.tar.bz2
LS: tar c --one-file-system . | nc <IP-adress of PC> 9876
bs=245670 is approx 100k-Blocksize (to gain reading speed)
count=26267 copies the first 6,1 GB (maybe you can use less)Restoring the backup
These steps are needed in case you bricked your Linkstation somehow. E.g. trying different kernel, different roots, ...
Or you just want to go back to the original distribution
I only tried it with a disassembled HDD connected to a Linux-PC:
bzcat start.img.bz2 | dd of=/dev/sdb bs=245670Upgrade to Lenny
mount /dev/sdb6 sdb6
tar xjf ~/Buffalo/rescue/disk1.tar.bz2
1. Disassemble the harddrive
If you do not want to do that, then wait for others to find out the better solution
Hints for disassembling:
- Remove the fan
- At the bottom side: cut through the labels along the line
- Each label covers a screw
- The first screw is right of the crossed trash symbol
- The second screw is below the number of the Amperes (right of 12VDC)
2. Attach the HDD at your LINUX-PC
(e.g. by a SATA-external (icy-)box)
(assume the drive is now sdb)
3. Repartion your harddisk.
- Do NOT delete/alter sdb1
- enlarge sdb2 to 10 GB
4. Format the new partitions
- mkswap /dev/sdb5
- mkfs.ext3 /dev/sdb2
- mkfs.ext3 /dev/sdb6
- tune2fs -i 171 -c 0 -r 100 /dev/sdb2
- check-interval: 171 days, root has far less reserved blocks than the default
- tune2fs -i 169 -c 0 -r 100 /dev/sdb6
5. Mount parititions to be modified
- cd /tmp
- mkdir sdb1
- mkdir sdb2
- mount /dev/sdb1 sdb1
- mount /dev/sdb2 sdb2
6. Goto http://buffalo.nas-central.org/download ... l%20Lenny/
and read README.1st
7. Install new initrd.buffalo
8. Install new rootfs
9. Tweak new system
- cd etc
- vi hostname and adjust the name
- vi fstab and adjust "jfs" for /dev/sda6 to "ext3"
10. unmount partitions
- cd ..
- umount sdb2
- umount sdb6
11. Put the hdd back to the Buffalo case
12. You're done (in principle).
Don't know the root password, but admin/admin works.Tweaking lenny-installation
1. Adjust rights of home-directory
- In admin's home-directory: sudo chown -R admin.users .
--> /home/admin belongs to root, which seems to be wrong
2. Adjust sources.list
- /etc/apt/sources.list: add "contrib non-free" to first line
- disable third line.
3. Fixing ftp.gtlib.gatech.edu -> not necessary
, since it got disabled at the second step
- Import missing PGP-key
- gpg --keyserver pgp.mit.edu --recv-key 0792182443229C06
- gpg -armor --export 0792182443229C06 | sudo apt-key add -
4. Install missing packages
- add "export LC_CTYPE=en_US" to ~/.bashrc
- apt-get install locales
- dpkg-reconfigure locales
- select en_US* and other locales you need
- select en_US as default locale
- apt-get install less ssmtp anacron powermgmt-base
- ssmtp is needed for anacron
- anacron is a replacement for cron. It runs all jobs even if the machine was not online at job start time
- apt-get remove tasksel
- use aptitude to upgrade perl, samba, ...
(to be continued - any hints and links welcome)
5. Enable micro-evtd
micro-evtd seems to be needed for a proper shutdown of the Linkstation.
- apt-get install micro-evtd
- patch /etc/init.d/micro-evtd as described [url ref="http://forum.buffalo.nas-central.org/viewtopic.php?f=39&t=15921"]in this post[/url]
The patch simply adds "Feroceon" to the list of supported platforms
USB-disks doen't seem to work under Lenny (2.6.22, 2.6.26)