Migrating to new boot drive

This forum is for all other ARMv5 devices

Migrating to new boot drive

Postby Socaltom » Wed Jun 01, 2011 4:40 am

Installed the Arm-plugapps on the Pro today, It all went fine,but I used 2 gig USB drive, a new 1T esata arrives tommorow. I want to ensure I have the process right before I start. Please correct me if this is wrong
1- boot system on Usb with Arch Linux ARM
2-cd /tmp
3-wget revert script
4 chmod +x revert script
5 run revert script
6 remove usb
7 install esata
8 format esata and install per wiki

Does that about get it?
Should I keep the usb stick as a backup?
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: Migrating to new boot drive

Postby WarheadsSE » Wed Jun 01, 2011 12:57 pm

edit:
Im throwing this here so people read it right.
IF YOU HAVE NO DESIRE TO ACTUALLY REVERT, DON'T USE THE REVERT SCRIPT. .. It's just wearing out your NAND.

/edit
Technically, since you are looking to expand, I would just format a small parition for the new rootfs, extract the rootfs.tar.gz to that new partition, and then copy over /usr/local/cloudengines/ and /usr/local/mac_addr (or whichever I named the file)

You can always give that a simple shot, then if it doesn't work go and do it over.

Technically, the only thing actually *needed* out of all that is blparam (for reverting) and xce.ko (for turning off the blinker). Both are open source, so I've debated on putting them directly into the 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 to new boot drive

Postby Socaltom » Wed Jun 01, 2011 5:22 pm

I decided to practice on another USB drive before my new drive arrives. I tried to migrate to a 4g USB drive ( that had been very reliable on my Pink pogo), but it would not boot on the pogopro. Dug out an old 6 gig laptop drive and stuck in in a USB case. Your method worked just fine. It took a little bit longer. I probably had to wait another minute after I got the solid green light before it would let me SSH in, but its eventually let me in.
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: Migrating to new boot drive

Postby oiooioio » Tue Dec 20, 2011 3:07 am

If I am not worried about backing up my current config but just moving to a larger drive can I just attach another drive follow the initial install steps of downloading and installing and then just take the old drive out when it reboots?
oiooioio
 
Posts: 3
Joined: Tue Dec 20, 2011 3:05 am

Re: Migrating to new boot drive

Postby WarheadsSE » Tue Dec 20, 2011 3:12 am

No.

Not exactly.

Follow the steps at the bottom of the install page, and DO NOT re-run the install script.
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 to new boot drive

Postby oiooioio » Tue Dec 20, 2011 1:37 pm

I guess I am unable to perform those steps via SSH on the new box as rootfs will have locked files....

Am i assuming correctly with wanting to follow from "Place your boot drive in another Linux computer..." until "Place your boot drive in another Linux computer"?
oiooioio
 
Posts: 3
Joined: Tue Dec 20, 2011 3:05 am

Re: Migrating to new boot drive

Postby WarheadsSE » Tue Dec 20, 2011 1:50 pm

Simplest way:
- stick the old & the new into another linux computer
- partition and format new drive
- mount new drives "rootfs" partition (should be first partition, for most people)
- as root, or sudo su, cp -ar /olddrive/* /newdrive/*
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 to new boot drive

Postby oiooioio » Tue Dec 20, 2011 5:03 pm

thanks for the help, here is what I ended up doing.

copied oxnas-rootfs.tar.gz & mac_addr to the desktop from the old USB

opened terminal gained root
-sudo bash

used gparted to format and label my new USB drive
-gparted
-formatted to ext3
-labeled USB64

moved the oxnas-rootfs.tar.gz to USB64
-mv /home/username/Desktop/oxnas-rootfs.tar.gz /media/USB64

extracted the tar
-cd /media/USB64
-tar -xvzf oxnas-rootfs.tar.gz

moved the mac_addr to /usr/local
-mv /home/username/Desktop/mac_addr /media/USB64/usr/local

ejected USB64, plugged into where the old USB was plugged in (1st USB port above NIC)
turned on - SSH access came up with in 1 minute
logged in
-root/root
changed root password
-passwd
oiooioio
 
Posts: 3
Joined: Tue Dec 20, 2011 3:05 am

Re: Migrating to new boot drive

Postby dinjo » Tue Dec 20, 2011 5:37 pm

Can anyone exactly tell me what changes wouldnbe required in /etc/fstab if you have 2 partitions? Or should I just add the mount command in rc.local?

Also is there anyways I can disable creation of log files? Its a private server for me I would not like writes 24x7 and would also keep away from headache of housekeeping
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Migrating to new boot drive

Postby WarheadsSE » Tue Dec 20, 2011 5:39 pm

logrotate, and and move the logs to a tmpfs.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Community Supported

Who is online

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