PogoPlug v2 pink Convert rootfs to ext3?

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

PogoPlug v2 pink Convert rootfs to ext3?

Postby moonman » Fri Mar 09, 2012 10:20 pm

Is there a way I can convert rootfs to ext3? I am so sick of disk errors and random glitches in apps because of that.
I read somewhere that I can make a /boot partition (ext2) with copy contents of /boot folder to it. Is there anything else I would have to do to make it work? I suppose I would have to rebuild the kernel image so that it knows /boot is separate partition now?

Any suggestions are appreciated.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: PogoPlug v2 pink Convert rootfs to ext3?

Postby kmihelich » Sat Mar 10, 2012 12:49 am

You can convert an ext2 filesystem to ext3 easily.. all you're doing is adding a journal. For the v2 and Dockstar, you don't have to go all complex on it. There's a U-Boot variable called 'rootfs' or 'rootfs_type' that you can just change from the default 'ext2' over to 'ext3' and you're basically done. That's all I did for a Dockstar.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: PogoPlug v2 pink Convert rootfs to ext3?

Postby moonman » Sat Mar 10, 2012 8:45 am

Well, that was easy. Thanks kmihelich.

You guys should add it to the installation guide so that users won't have to struggle with ext2.
So users would have to issue /usr/sbin/fw_setenv usb_rootfstype ext3 after running Jeff's U-Boot script and format the hdd/flash drive as ext3. :)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: PogoPlug v2 pink Convert rootfs to ext3?

Postby Socaltom » Fri Apr 06, 2012 7:02 pm

How do you convert once you've already done the install.
I've done the tunefs -j

Can I do the /usr/sbin/fw_setenv usb_rootfstype ext3 ?

Will that automatically update mtab?
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: PogoPlug v2 pink Convert rootfs to ext3?

Postby moonman » Fri Apr 06, 2012 9:31 pm

I used my computer to do tune2fs. While the hdd was disconnected I booted up the pogo os and /usr/sbin/fw_setenv usb_rootfstype ext3. mtab won't be updated automatically. It will probably error out because it won't find the journal.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: PogoPlug v2 pink Convert rootfs to ext3?

Postby Socaltom » Sat Apr 07, 2012 12:30 pm

$this->bbcode_second_pass_quote('moonman', 'I') used my computer to do tune2fs. While the hdd was disconnected I booted up the pogo os and /usr/sbin/fw_setenv usb_rootfstype ext3. mtab won't be updated automatically. It will probably error out because it won't find the journal.


Your method worked, and mtab was updated. Next question, I want to change the journal options to have better recovery of data. The default is writeback, for this plug I would like to set it to ordered. I can't edit mtab, so what can I do?
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: PogoPlug v2 pink Convert rootfs to ext3?

Postby Socaltom » Sat Apr 07, 2012 1:51 pm

Found the answer in the archwiki for ext3
tune2fs -O has_journal -o journal_data /dev/hdXY

https://wiki.archlinux.org/index.php/Ext3
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: PogoPlug v2 pink Convert rootfs to ext3?

Postby Socaltom » Sat Apr 07, 2012 2:59 pm

running efsck on the drive also seems to help it be integrated into the ext3 configuration.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests