<small>Some of this information courtesy of http://www.geishuettner.de/docs/Linkstation/ </small>

<small>Some of this information courtesy of http://www.geishuettner.de/docs/Linkstation/ </small>

+

+

=Old Generation - [[LS1]],[[LS2]],[[HG]],[[HS]]=

<big>'''Methods''' - There are two ways to go about this:</big><br>

<big>'''Methods''' - There are two ways to go about this:</big><br>

Line 8:

Line 10:

:'''You will have to backup the data, if you want to save it in <tt>/mnt</tt> on your own with either method.'''

:'''You will have to backup the data, if you want to save it in <tt>/mnt</tt> on your own with either method.'''

:[[Disassemble the LinkStation]] and disconnect the [[w:hard drive|hard drive]].

:[[Disassemble the LinkStation]] and disconnect the [[w:hard drive|hard drive]].

−

#<big>'''[[#Use the Firmware updater to create partitions and flash the firmware|Use the Firmware updater to create partitions and flash the firmware]]'''</big> <br>If you run the firmware updater it will automatically create the necessary partitions. When you boot the LS up for the first time, the disk full LED will flash, this is the LS creating the partitions, wait until the flashing stops, then run the firmware update (you may need to run it twice as the first may fail).

+

#<big>'''[[#Use the Firmware updater to create partitions and flash the firmware|Use the Firmware updater to create partitions and flash the firmware]]'''</big> <br>This is generally accepted as the easier method to upgrade your Linkstation's hard drive, if you run the firmware updater it will automatically create the necessary partitions. When you boot the LS up for the first time, the disk full LED will flash, this is the LS creating the partitions, wait until the flashing stops, then run the firmware updater (you may need to run it twice as the first may fail).

#<big>'''[[#Backup your entire hard drive, partition a blank drive on a Knoppix workstation|Backup your entire hard drive, partition a blank drive on a Knoppix workstation]]'''</big><br>These instructions are intended for people who wish to preserve their existing <tt>/hda1</tt>. First you will need to [[Create a perfect backup of the LinkStation filesystem]] then partition a new hard drive on a [[w:Knoppix|Knoppix]] workstation. Finally you will have to restore the backup you created and create a swap partition.

#<big>'''[[#Backup your entire hard drive, partition a blank drive on a Knoppix workstation|Backup your entire hard drive, partition a blank drive on a Knoppix workstation]]'''</big><br>These instructions are intended for people who wish to preserve their existing <tt>/hda1</tt>. First you will need to [[Create a perfect backup of the LinkStation filesystem]] then partition a new hard drive on a [[w:Knoppix|Knoppix]] workstation. Finally you will have to restore the backup you created and create a swap partition.

----

----

Line 20:

Line 22:

===Backup Data===

===Backup Data===

Backup the data in <tt>/mnt</tt> that you want to save either by copying it off of your LinkStation using [[Samba]], [[w:FTP|FTP]] or a [[w:USB|USB]] drive. You could create a [[w:Tarball|Tarball]] of this data if you wanted to.

Backup the data in <tt>/mnt</tt> that you want to save either by copying it off of your LinkStation using [[Samba]], [[w:FTP|FTP]] or a [[w:USB|USB]] drive. You could create a [[w:Tarball|Tarball]] of this data if you wanted to.

+

+

Then take the old drive out of the LinkStation and put the new drive in.

+

Make sure, it the jumper is set to "Master".

{{Reconnect disk to LS and flash firmware}}

{{Reconnect disk to LS and flash firmware}}

+

===Restore your Data===

===Restore your Data===

Restore your data by the reverse of what you did to back it up: Transfer the data back using [[Samba]], [[w:FTP|FTP]] or a [[w:USB|USB]] drive. And untar the [[w:Tarball|Tarball]] of this data if you created one.

Restore your data by the reverse of what you did to back it up: Transfer the data back using [[Samba]], [[w:FTP|FTP]] or a [[w:USB|USB]] drive. And untar the [[w:Tarball|Tarball]] of this data if you created one.

Line 32:

Line 38:

Download a [[w:Knoppix|Knoppix]] bootable Linux CD (see [http://www.knoppix.org Knoppix] or possibly [http://www.damnsmalllinux.org/ Damn Small Linux](not tried)), place the new hard drive in a workstation, and boot using the Knoppix CD.

Download a [[w:Knoppix|Knoppix]] bootable Linux CD (see [http://www.knoppix.org Knoppix] or possibly [http://www.damnsmalllinux.org/ Damn Small Linux](not tried)), place the new hard drive in a workstation, and boot using the Knoppix CD.

===Partition Hard Drive===

===Partition Hard Drive===

−

Now you need to partition the hard drive according to your needs (replacing '''<font color=red>x</font>''' with whatever letter you have installed the hard drive as):

+

Now you need to partition the new hard drive according to your needs (replacing '''<font color=red>x</font>''' with whatever letter you have installed the hard drive as):

fdisk /dev/hd<font color=red>'''x'''</font>

fdisk /dev/hd<font color=red>'''x'''</font>

The standard LinkStation setup uses 3 partitions:

The standard LinkStation setup uses 3 partitions:

Line 42:

Line 48:

Restore your backup first

Restore your backup first

dd if=/mnt/whatever/hda1.bin of=/dev/hda1

dd if=/mnt/whatever/hda1.bin of=/dev/hda1

−

You must run fix_ext2_magic, check for errors, and resize the backup image if you created a larger main partition:

+

You must run [[fix_ext2_magic]], check for errors, and resize the backup image if you created a larger main partition:

./fix_ext2_magic --fix /dev/hdx1

./fix_ext2_magic --fix /dev/hdx1

e2fsck /dev/hdx1

e2fsck /dev/hdx1

resize2fs /dev/hdx1

resize2fs /dev/hdx1

−

You may have to use the force option (-f) if resize2fs complains about not running e2fsck.

+

You may have to use the force option (-f) if resize2fs complains about not running e2fsck.

+

===Create the ext2 filesystem and swap partition===

===Create the ext2 filesystem and swap partition===

You can turn off drive checking since we are using ext2 with journaling:

You can turn off drive checking since we are using ext2 with journaling:

mke2fs -j /dev/hdx3

mke2fs -j /dev/hdx3

−

tune2fs -c0 -i0 /dev/hdx2

+

tune2fs -c0 -i0 /dev/hdx3

mkswap /dev/hdx2

mkswap /dev/hdx2

+

===Reboot===

===Reboot===

−

Place the hard drive in the LinkStation and reboot. Be patient as the first boot may take longer than normal.<br>

+

Place the new hard drive in the LinkStation and reboot. Be patient as the first boot may take longer than normal.<br>

===Restore your Data===

===Restore your Data===

Restore your data by the reverse of what you did to back it up: Transfer the data back using [[Samba]], [[w:FTP|FTP]] or a [[w:USB|USB]] drive. And untar the [[w:Tarball|Tarball]] of this data if you created one.

Restore your data by the reverse of what you did to back it up: Transfer the data back using [[Samba]], [[w:FTP|FTP]] or a [[w:USB|USB]] drive. And untar the [[w:Tarball|Tarball]] of this data if you created one.

There are several ways, but it is not that easy as with the older boxes. Just putting in a blank drive and updating the firmware does not work as the Firmware updater does not find the box. Why? Because in contrast to the older boxes everything but the bootloader(UBoot) is on the hdd. so even EM Mode got implemented via an initrd in /boot (=/dev/sda1).

+

+

== Cloning the first partition and flashing ==

+

This way works because you need the first partition (/boot = /dev/sda1) so you can boot to EM Mode

+

# Follow [[Disassemble_the_LS_Pro]] until you have the hdd in your hand

+

# Connect the HDD to a pc, also connect the new HDD to it.

+

# clone /dev/sda1 from the old to the new HDD

+

# Assemble the LSPro/LSLive again with the new HDD

+

# Flash the Firmware of your choice or [[Custom_Partitions_on_the_LS_Pro|Build custom partitions on the box]]

+

# Note - if you are flashing firmware, you may need to go into Debug mode and select the option to rebuild the partition table (click on the 2 yellow circles on the top left of the LSUpdater screen and select Debug from the menu).

Use the Firmware updater to create partitions and flash the firmwareThis is generally accepted as the easier method to upgrade your Linkstation's hard drive, if you run the firmware updater it will automatically create the necessary partitions. When you boot the LS up for the first time, the disk full LED will flash, this is the LS creating the partitions, wait until the flashing stops, then run the firmware updater (you may need to run it twice as the first may fail).

Connect disk to LS and flash firmware

Open the archive and carefully read the included README file for any specific instructions.

Disable any firewall(s), including any built-in Windows firewall

If you are running some virus checker or worm detection software, disable this also

Make sure the LinkStation and your PC are on the same sub-network. This likely requires that you change the IP address (and probably the subnet-mask) of your PC and router to a different IP address in EM Mode it will have a static IP address of 192.168.11.150 or to connect your PC and LinkStation directly with a crossover cable.

After finding your LinkStation, press the "Renew Firmware" button, and wait. Have patience, and keep your calm. If you think the Firmware updater is acting strange, do not try to disconnect the LinkStation or abort the update in another way.

start update, following messages appear:

Settings are being saved
Firmware is being transmitted
LinkStation Firmware has been renewed
Settings are being restored

if You get the following message You are done.

The firmware has been renewed

But because the reformatting and partitioning takes too long, the Diskfull LED may blink or you can hear the disk being active (withoug LED indication).

Then you will get:

Attempt to renew firmware has failed

if so, wait until Diskfull LED goes off or the disk activity stops after some minutes.

press "search" again.

start update again.

after all the other messages You should get this time:

The firmware has been renewed

After flashing connect your LinkStation up to the network with subnet 192.168.1.XXX the LS is now reachable via telnet and the "old" IP. so switch back IP settings and reenable the windows firewall.

Login to the LinkStation

Find your LinkStation on the network and Telnet to it with PuTTYtel You will be at the root shell prompt:

telnet linkstation

set root password:

passwd

change bash to login:

vi /etc/init.d/telnet

add a new guest user

useradd -m -d /home/guest guest

Reboot

Be patient as the first boot may take longer than normal.

Restore your Data

Restore your data by the reverse of what you did to back it up: Transfer the data back using Samba, FTP or a USB drive. And untar the Tarball of this data if you created one.

There are several ways, but it is not that easy as with the older boxes. Just putting in a blank drive and updating the firmware does not work as the Firmware updater does not find the box. Why? Because in contrast to the older boxes everything but the bootloader(UBoot) is on the hdd. so even EM Mode got implemented via an initrd in /boot (=/dev/sda1).

Cloning the first partition and flashing

This way works because you need the first partition (/boot = /dev/sda1) so you can boot to EM Mode

Note - if you are flashing firmware, you may need to go into Debug mode and select the option to rebuild the partition table (click on the 2 yellow circles on the top left of the LSUpdater screen and select Debug from the menu).