reynhout / chrx

Chromebook Unix
419 stars 56 forks source link

chrx, dd and USB #46

Closed darren3 closed 7 years ago

darren3 commented 7 years ago

Hello, I have Gallium OS installed on a USB drive. If I used chrx to partition my chromebook could I make a copy of my USB install using dd and install it on my chromebooks drive?

reynhout commented 7 years ago

@darren3 No, dd would not be the right tool.

If you just want to copy user data and possibly some system config, I'd go ahead and do the full install with chrx, then use rsync to copy the bits from USB that you need, e.g.:

mkdir /tmp/a
mount /dev/sdb1 /tmp/a
rsync -av /tmp/a/home/USERNAME /home
rsync -av /tmp/a/etc/CONFIGDIR /etc

It will greatly simplify things if your username is the same on both installations (some user config files have full paths in them). And obviously be careful not to trash any system-specific config if copying any files to /etc.

darren3 commented 7 years ago

Thanks for your help, rsync worked well.

reynhout commented 7 years ago

Sure thing. :)