PogoPlug v2 pink Convert rootfs to ext3?

Original Pogoplug, v2 Pink/Gray E02, Series 4, DockStar, and GoFlex installation and device help here.

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 v2 Pink | Seagate GoFlex Home | Raspberry Pi B 512
----------------------------------------------------------------------------------------------------------------------
[armv5] How to update U-Boot for kernel v3.2 and newer | [armv5] How to reinstall ALARM from scratch | [armv5] How to install my.pogoplug.com service
moonman
Developer
 
Posts: 1403
Joined: Sat Jan 15, 2011 3:36 am
Location: Canada

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: 875
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinux-arm

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 v2 Pink | Seagate GoFlex Home | Raspberry Pi B 512
----------------------------------------------------------------------------------------------------------------------
[armv5] How to update U-Boot for kernel v3.2 and newer | [armv5] How to reinstall ALARM from scratch | [armv5] How to install my.pogoplug.com service
moonman
Developer
 
Posts: 1403
Joined: Sat Jan 15, 2011 3:36 am
Location: Canada

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
Socaltom
 
Posts: 279
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 v2 Pink | Seagate GoFlex Home | Raspberry Pi B 512
----------------------------------------------------------------------------------------------------------------------
[armv5] How to update U-Boot for kernel v3.2 and newer | [armv5] How to reinstall ALARM from scratch | [armv5] How to install my.pogoplug.com service
moonman
Developer
 
Posts: 1403
Joined: Sat Jan 15, 2011 3:36 am
Location: Canada

Re: PogoPlug v2 pink Convert rootfs to ext3?

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

moonman wrote: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
Socaltom
 
Posts: 279
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
Socaltom
 
Posts: 279
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
Socaltom
 
Posts: 279
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to Pogoplug v1/v2/v4, DockStar, GoFlex

Who is online

Users browsing this forum: Google [Bot] and 2 guests