Migrating root fs

This forum is for all other ARMv5 devices

Migrating root fs

Postby doknek » Mon Jan 23, 2012 3:53 pm

I copied my current rootfs installation to newer usb drive on another lilnux machine as root:

cp -ar /srcroot/* /destroot/*

I am moving archlinuxarm install from 4gb usb to 120gb ext usb drive. I copied files successfully, but on reboot with the new drive - green LED keeps blinking and pogo does not boot correctly. Do I have to change anything else, as this ext. hdd may not be getting mounted as hd-sda1 as the current rootfs. With the current rootfs on sda1, the ext hdd mounts as sdc1. What am I missing?
doknek
 
Posts: 32
Joined: Wed Dec 14, 2011 8:04 pm

Re: Migrating root fs

Postby WarheadsSE » Mon Jan 23, 2012 3:57 pm

Are both being plugged in at the same time when trying to boot the new rootfs?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Migrating root fs

Postby xenoxaos » Mon Jan 23, 2012 5:06 pm

Is the ext hdd formatted as ext3?
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Migrating root fs

Postby doknek » Mon Jan 23, 2012 6:06 pm

There is no other usb plugged in when I try the new usb hdd. New usb hdd is formatted as ext3.

Could there be a problem with mouting the new usb hdd? It usually gets mouted as sdc when used as non-root drive.
Last edited by doknek on Mon Jan 23, 2012 6:07 pm, edited 1 time in total.
doknek
 
Posts: 32
Joined: Wed Dec 14, 2011 8:04 pm

Re: Migrating root fs

Postby WarheadsSE » Mon Jan 23, 2012 6:07 pm

No, there is probably the time it takes to mount.

Boot off the usb stick, and use blparam to tell me what is returned for the `bootargs` variable please.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Migrating root fs

Postby doknek » Mon Jan 23, 2012 6:30 pm

blparam bootargs below:

$this->bbcode_second_pass_code('', '
bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00.. mem=128M poweroutage=yes rootwait
')

The new drive is currently mouted as:
$this->bbcode_second_pass_code('', '/dev/sdc1 on /media/hd-sdc1 type ext3 (rw,noatime,errors=continue,data=writeback)')
doknek
 
Posts: 32
Joined: Wed Dec 14, 2011 8:04 pm

Re: Migrating root fs

Postby WarheadsSE » Mon Jan 23, 2012 6:50 pm

Hrm, rootwait is set. I wonder if there is something about the filesystem it doesn't like.. nature of copies and all.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Migrating root fs

Postby Geoff » Mon Jan 23, 2012 7:26 pm

I am in the habit of using rsync rather than cp. As a check on the results of using cp, you might try (as root):
$this->bbcode_second_pass_code('', 'rsync -aAHSXxi --super --numeric-ids --delete --dry-run /source/dir/ /destination/dir/')(Note: the trailing "/" on the source directory is required.) If rsync reports that it would do something that you like, in order to fix any inconsistencies, then you could repeat without "--dry-run".
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 4 guests