[SOLVED] Trouble moving to EXT3 for PogoPlug V2

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

[SOLVED] Trouble moving to EXT3 for PogoPlug V2

Postby huntrm » Wed Aug 29, 2012 3:00 pm

Am new to Linux, but muddling my way through the OS. Have it successfully installed on my PPlug, have Apache running, have automatic time/date settings working, few other tweaks so I'm beginning to get this stuff! :D

I'm wishing to move from EXT2 to EXT3.

Am using this guide: https://wiki.archlinux.org/index.php/Co ... t2_to_ext3
Also read this posting: viewtopic.php?f=18&t=2580

Here's my file system:

$this->bbcode_second_pass_code('', '
[root@webserver ~]# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
rootfs rootfs 988212 661008 277004 71% /
/dev/root ext2 988212 661008 277004 71% /
devtmpfs devtmpfs 126160 0 126160 0% /dev
run tmpfs 126244 228 126016 1% /run
shm tmpfs 126244 0 126244 0% /dev/shm
tmpfs tmpfs 126244 0 126244 0% /tmp
')

I enter the following command to set up a journal:
$this->bbcode_second_pass_code('', '
[root@webserver ~]# tune2fs -j /dev/root
tune2fs 1.42.5 (29-Jul-2012)
tune2fs: No such file or directory while trying to open /dev/root
Couldn't find valid filesystem superblock.
')

I must be a missing a step, or misunderstanding something to start the process of moving this partition to EXT3? Any ideas?

Finally and a much different question but figured I'd ask it here, I'm using a 1GB USB stick, and would like to use a larger stick (e.g., 10GB). How do I copy from one stick to another?
Last edited by huntrm on Tue Sep 18, 2012 8:14 pm, edited 1 time in total.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Trouble moving to EXT3 for PogoPlug V2

Postby moonman » Wed Aug 29, 2012 3:19 pm

1. Your filesystem has to unmounted to make a modification like this. Actually you are lucky it doesn't work this way because you need to change a u-boot parameter usb_rootfstype to ext3 before you can boot from ext3. So use your pc and linux live cd/linux installation and add a journal there but before do "fw_setenv usb_rootfstype ext3". Also... it wouldn't be /dev/root, but would be /dev/sdX1 where x is any letter from a to z

2. viewtopic.php?f=18&t=3371
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: Trouble moving to EXT3 for PogoPlug V2

Postby huntrm » Thu Aug 30, 2012 9:54 pm

Thanks for the help. I got the new usb card formatted on a linux box as root, and ext3 - used gparted under ubuntu to make this happen.

I now have two USBs mounted to this linux PC:
- The pogo USB card (EXT2) is mounted at /dev/sdb1
- The new USB card (EXT3) is mounted at /dev/sdc1

When I try following:
- sudo su
- then cp -ar /dev/sdb1 /dev/sdc1

Nothing happens, it's almost as if the command isn't taking. I appear to be at root, and both USBs are mounted. If I unmount them, then I'm not sure how I can see them.

This is in Ubuntu, where I'm using the console.

EDIT: Just tried FileManager in Ubuntu with copy/paste of the files, and looks like there's a permissions issue with the pogo usb card.

Thanks.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Trouble moving to EXT3 for PogoPlug V2

Postby moonman » Thu Aug 30, 2012 10:59 pm

You can't directly access the drives like that. You only unmount them and directly access devices when whey have to be (like formating). Get them mounted and then do the cp.

cp -ar /media/mountpoint1 /meida/mountpoint2
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: Trouble moving to EXT3 for PogoPlug V2

Postby huntrm » Fri Aug 31, 2012 1:33 am

Thanks for the help, really appreciate it. Am struggling as you know. Here's what's under the media directory:

$this->bbcode_second_pass_code('', '
root@desktop:/media# dir
4046bdca-3095-4547-a9dd-fe4a6f134055 4cfa5462-0b0a-4c28-b3a8-4b76915c729f usbdrive
root@desktop:/media#
')

And when I check mount, here's what's listed. You can see the ext2 and the ext3 usb drives at sdb1 and sdc1:

$this->bbcode_second_pass_code('', '
root@desktop:/media# mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdb1 on /media/4046bdca-3095-4547-a9dd-fe4a6f134055 type ext2 (rw,nosuid,nodev,uhelper=udisks)
none on /tmp/guest-Jc6pXv type tmpfs (rw,mode=700)
gvfs-fuse-daemon on /home/<username>/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=mcphail)
/dev/sdc1 on /media/4cfa5462-0b0a-4c28-b3a8-4b76915c729f type ext3 (rw,nosuid,nodev,uhelper=udisks)
')

Am I to mount them differently, or umount them, and then locate them, then do the CP? Again, appreciate your help, just having hard time following your last note.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Trouble moving to EXT3 for PogoPlug V2

Postby moonman » Fri Aug 31, 2012 3:09 am

You didn't label them when you formatted them (flash drives).

$this->bbcode_second_pass_code('', 'cp -ar /media/4046bdca-3095-4547-a9dd-fe4a6f134055 /media/4cfa5462-0b0a-4c28-b3a8-4b76915c729f')

Proper command to list folder contents is "ls". I don't know when they started including "dir". Sounds like DOS to me :)

You could just unmount the ext2 drive with "sudo umount /dev/sdb" and then add journal with "sudo tune2fs -j /dev/sdb1" command
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: Trouble moving to EXT3 for PogoPlug V2

Postby huntrm » Fri Sep 14, 2012 8:56 pm

Sorry for late response. Yeah, I think that "dir" command was me hitting a wall out of frustration... Just typed in whatever I felt like. :lol:

I'm happy to say I got this working. It wasn't pretty. I did following:
- Installed Ubuntu on a PC
- Was able to get Ubuntu to journal/update the USB stick to EXT3 - I believe I used Nautilus to do this


Am now on a 32GB USB stick with the pogoplug V2, and I'm happy...

Now, I'm having hell of a time getting Samba with SWAT working so that the directories will properly work in Windows. I'll post that issue somewhere else!
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Trouble moving to EXT3 for PogoPlug V2

Postby sambul13 » Sat Sep 15, 2012 3:39 pm

You forget to explain what was the need to move from EXT2 to EXT3 for ArchLinux on a USB Stick? Did you experience any issues? Do you think, adding journaling will extend the stick's service life or speed? :roll:
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Trouble moving to EXT3 for PogoPlug V2

Postby moonman » Sat Sep 15, 2012 11:25 pm

I suppose he's looking for reliability more than anything else.

Just use the guide to setup samba instead of swat. You will save yourself some time
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: Trouble moving to EXT3 for PogoPlug V2

Postby huntrm » Tue Sep 18, 2012 7:55 pm

$this->bbcode_second_pass_quote('sambul13', 'Y')ou forget to explain what was the need to move from EXT2 to EXT3 for ArchLinux on a USB Stick? Did you experience any issues? Do you think, adding journaling will extend the stick's service life or speed? :roll:


So I had read that ext3 was more stable, and could handle power interruption better than ext2. However, where I live, the power never goes out and if it does, it's usually once/year with a big thunderstorm.

Soooooooooooo, I somehow managed to hose my ext3 install with pacman, and did a complete reinstall to the pogoplug and just said, screw it I'm gonna stick with ext2. So now I'm using ext2, and system is fine (going on few days).

I have since got Samba working perfectly, FTP, and the webserver. I'm looking great. I even found a backup script to back the system up remotely, create a tar, and I then move it to another computer in case the pogoplug gives me any trouble.

Next steps:
- E-Mail server? I may try to tackle this, just need some basic email serving with the wife's business
- Move web serving over to the pogoplug away from her business ISP (will wait to determine the stability of the pogoplug)
- Remove unnecessary processes? Is there a list out there? (eg., hwclock was disabled in DAEMON)

Thanks guys!
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 399 guests