[SOLVED]EXT2 --> EXT 3 on Pogoplug. Won't boot

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

[SOLVED]EXT2 --> EXT 3 on Pogoplug. Won't boot

Postby huntrm » Sat Sep 29, 2012 4:58 pm

I decided to tackle this one again. Had a stable working EXT2, but opinion seems to be that EXT3 is way to go for greater disk stability with possibility of power outage, etc.

So, I followed this process to convert: ttps://wiki.archlinux.org/index.php/Con ... t2_to_ext3

1. Using a Pogoplug V2, with a single USB stick, single partition /dev/root
2. Put the stick into my Ubuntu system
3. In Ubuntu, the partition was identified as /dev/sdb1
4. In console, entered this command: $this->bbcode_second_pass_code('', 'sudo tune2fs -j /dev/sdb1')
5. Journaling completed
6. After this, I put the stick back in the pogoplug, and everything booted up, but the /dev/root still said ext2 with the mount command.
7. Per the instruction, edited the fstab file so that it includes /dev/root / ext3 defaults 0 1
8. Added the MODULES="ext3" to /etc/mkinitcpio.conf
9. Here's where it didn't complete:
Attempted following command, and got errors $this->bbcode_second_pass_code('', 'mkinitcpio -p linux')
Something about a linux profile not available

Now, pogoplug won't boot - got the orange light.

Any ideas on how to get the system back to boot? I reverted the fstab and the mkinitcpio.conf changes, and nothing. THere was a single partition, and looks like I borked the startup - any way to recover?

Thanks.
Last edited by huntrm on Sun Sep 30, 2012 2:40 pm, edited 1 time in total.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: EXT2 --> EXT 3 on Pogoplug. Won't boot

Postby pepedog » Sat Sep 29, 2012 5:08 pm

Did you update uboot or have a uboot that can do ext3?
viewtopic.php?f=18&t=3355
And there's this step-
/usr/sbin/fw_setenv usb_rootfstype ext3
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: EXT2 --> EXT 3 on Pogoplug. Won't boot

Postby huntrm » Sat Sep 29, 2012 5:13 pm

$this->bbcode_second_pass_quote('pepedog', 'D')id you update uboot or have a uboot that can do ext3?
viewtopic.php?f=18&t=3355
And there's this step-
/usr/sbin/fw_setenv usb_rootfstype ext3


No I did not. Now, I can access the USB stick from my Ubuntu machine. Can I run this from there, and if so, how? Will that fix the issue?
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: EXT2 --> EXT 3 on Pogoplug. Won't boot

Postby moonman » Sat Sep 29, 2012 11:40 pm

You need to boot into pogoplug os and run that command in ssh. This change is to the device's bootloader config and to the installation of archlinuxarm.
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: EXT2 --> EXT 3 on Pogoplug. Won't boot

Postby huntrm » Sun Sep 30, 2012 12:21 am

Thanks, I did the following:
- Removed USB stick
- Booted pogoplug - got the green light
- SSH'd in, and did following:
$this->bbcode_second_pass_code('', 'cd /tmp
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh')
- Issued the command
$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv usb_rootfstype ext3')
- Took usb stick and added to /etc/fstab in my ubuntu machine
$this->bbcode_second_pass_code('', '/dev/root / ext3 defaults 0 1')
- And added to /etc/mkinitcpio.conf
$this->bbcode_second_pass_code('', 'MODULES="ext3"')

Inserted the USB into pogoplug, and issued reboot command. Still can't access the box.

Ideas?
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: EXT2 --> EXT 3 on Pogoplug. Won't boot

Postby moonman » Sun Sep 30, 2012 4:40 am

You messed with ubuntu installation and not the archlinuxarm installation. Are you sure when you executed sudo "tune2fs -j /dev/sdb1" sdb was the right drive and that it was not mounted and the command completed?

You don't need to add any modules or mess with fstab.

bootup pogoplug os and do "/usr/sbin/fw_printenv" and post here.

attach your archlinuxarm rootfs drive to ubuntu machine and there execute $this->bbcode_second_pass_code('', 'sudo fdisk -l') and post here and then make sure the drive is mounted$this->bbcode_second_pass_code('', 'sudo df -T | awk '{print $1,$2,$NF}' | grep "^/dev"') and again post here
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: EXT2 --> EXT 3 on Pogoplug. Won't boot

Postby huntrm » Sun Sep 30, 2012 2:40 pm

Figure instead of going back and forth, I'd do a fresh install and start with ext3 as part of the install. Lucky for me, I had very little installed and all my configs are backed up, so I can replace those easily. Just need to get the packages.

Here's what I did, maybe this can be used in one form or another for those who wish to start off with ext3 (let me know if I missed anything or am misleading anyone with this as I'm still very new at this):

The steps here were taken if you want to go to ext3, and don't mind losing your install (or if you're doing a fresh install):
- Removed USB stick
- Booted pogoplug - got the green light
- SSH'd in, and did following: NOTE: THIS IS FOR POGOPLUG V2 ONLY
- REFER TO THIS LINK FOR MORE INFO: viewtopic.php?f=18&t=3355
$this->bbcode_second_pass_code('', 'cd /tmp
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh')
- Issued the command
$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv usb_rootfstype ext3')
- rebooted

Per install instructions for Pogoplug E02, did following:
- Plugged in USB stick
- Logged in to pogo plug then issued
$this->bbcode_second_pass_code('', 'killall hbwd
cd /tmp')
- Start fdisk for usb:
$this->bbcode_second_pass_code('', '/sbin/fdisk /dev/sda')
- At the fdisk prompt, delete old partitions and create a new one:
- Type o. This will clear out any partitions on the drive.
- Type p to list partitions. There should be no partitions left.
- Now type n, then p for primary, 1 for the first partition on the drive, and then press ENTER, accepting default values.
Exit by typing w.
- Now create the ext3 filesystem:
$this->bbcode_second_pass_code('', 'wget http://archlinuxarm.org/os/pogoplug/mke2fs
chmod 755 mke2fs
./mke2fs -j /dev/sda1
mkdir usb
mount /dev/sda1 usb')
- Download and install Arch Linux ARM:
$this->bbcode_second_pass_code('', 'cd usb
wget http://archlinuxarm.org/os/ArchLinuxARM-armv5te-latest.tar.gz
tar -xzvf ArchLinuxARM-armv5te-*.tar.gz # This will take a long time
rm ArchLinuxARM-armv5te-*.tar.gz
sync # Takes a while when using a flash drive')
- Clean up and reboot. Cross your fingers and hope for the best.
$this->bbcode_second_pass_code('', 'cd ..
umount usb
/sbin/reboot')
- The SSH key of your device will be different, so you need to tell Mac OS X or Linux to remove it from ~/.ssh/known_hosts before using SSH again:
$this->bbcode_second_pass_code('', 'ssh-keygen -R 192.168.1.123 # Use your device's IP')

Log back in after your Pogoplug reboots using username root and password root
- Type $this->bbcode_second_pass_code('', 'mount') to see if you now have an ext3

In my case, I have a 64GB USB stick connected to the pogoplug, just a single partition.

I rebooted to see if everything went great, and so far everything is looking good running ext3 with uboot and with archlinux.

Concerns/issues with how I did this?
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 244 guests