TonidoPlug2 with SSD drive and multiple partitions

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

TonidoPlug2 with SSD drive and multiple partitions

Postby landzend » Fri May 11, 2012 1:51 am

Hi,

I am looking at putting a SSD SATA drive into a TonidoPlug2 and have been reading this forum and others (on the Tonido web site), and have a few questions about things.

The first thing is I have read that the TinidoPlug2 can't boot from an ext4 partition on a SATA drive. So I would have to format it ext2 or ext3.

An SSD drive has the limitation of how many writes it can have in its lifetime. To reduce this issue, an ext4 partition is recommended which can then use TRIM to distribute the writes over the whole partition. This reduces particular sectors from being over utilised and wearing out; distributing writes across the whole partition.

This leads to my question. I was thinking then of creating two partitions on the SSD drive:
$this->bbcode_second_pass_code('', '
Partition mount type size
--------- ----- ---- -------------
/dev/sda1 /boot ext3 100Meg
/dev/sda2 / ext4 <rest of drive>
')
From what I have read, it appears that the TonidoPlug2 boot sequence will boot from /dev/sda1, where the kernel will be, but how will the kernel then "know" to go to /dev/sda2 to find the root partition? Is this something that would be set in u-boot with the "envtools" tool?

Also, has anyone done this? Or am I the first to try?

(I think I should get one of the USB to serial/TTL cables first in case/when I brick it.)

Thanks in advance,

Brian
landzend
 
Posts: 5
Joined: Fri May 11, 2012 1:18 am

Re: TonidoPlug2 with SSD drive and multiple partitions

Postby WarheadsSE » Fri May 11, 2012 11:23 am

You will just need to address the uboot's listing of /dev/sda1 as root=/dev/sda1 and change it to too=/dev/sda2
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: TonidoPlug2 with SSD drive and multiple partitions

Postby landzend » Thu May 17, 2012 10:42 am

Thanks for the response.

It was what I was suspecting.

But since I asked, I got impatient and just bought a normal SATA (spinning) drive and have that set to spin down when not in use.

Maybe an SSD for a future mod when I get brave...

Brian
landzend
 
Posts: 5
Joined: Fri May 11, 2012 1:18 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests