Transferring install to HDD

This forum is for all other ARMv5 devices

Transferring install to HDD

Postby pratt » Mon Feb 20, 2012 6:33 am

I installed archlinux to a pogo pro with an attached USB thumb drive. Now that I realize how awesome this is, I want to attach a sata drive and remove the usb thumb drive from the equation. I am looking for suggested steps.

To reinstall archlinux onto the sata drive and remove the USB it is on, I was thinking I need to :
1. Power down the running pogo pro+usb
2. plug in the sata
3. boot the pogo pro+usb+sata
4. do a normal install to the sata per the instructions
5. at step 12 in those instructions, remove the usb during reboot
6. update with pacman
7. add packages
pratt
 
Posts: 1
Joined: Mon Feb 20, 2012 6:13 am

Re: Transferring install to HDD

Postby WarheadsSE » Mon Feb 20, 2012 1:29 pm

Actually, no.

If you plug in the SATA & boot, you'll end up with the system thinking SATA is /dev/sda1, and that it shold have the rootfs.

What you are best off to do is to transfer the rootfs you have from the USB to the SATA drive via another linux computer/livecd/etc. That way it's just as you left it, but on SATA.

In the event you are unable to do that (for whatever reason, it shouldn't be hard), I would suggest:
- boot up with usb attached
- power on the SATA hard drive (after booting completed)
- `echo "0 0 0" > /sys/class/scsi_host/host0/scan`
- partition & format the SATA drive
- mount the new partition(s)
- extract a fresh rootfs tarball
- chroot & update
- reboot, removing the USB immediately after the led begins to flash.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 46 guests