Let say, you have linux's installation at home PC. A time, you want to do update, unhappily you have no internet connection (as I). With borrows laptop friend, you will go to warnet, bootong linux at PC already being carried over by USB hardisk's external by force of laptop. You do update, go home, and moves it returns to partision originally at your PC.

Elaborate? Distress? Slow on the update? Really, a lot easier you take in you CPU go to warnet, fuses, connect!
But, we are cannikin want to study. So, this tutorial:

1. Moving PC System goes to USB

With LiveCD that has rsync terinstall, please boot. Ensure also hardisk's external you at flashy. After you come in to go to live's session, utilize terminal, changed to root (herein I utilize sudo, so if system you not back up, changed as root user!).

mkdir is origin
mkdir is aim

You Mounting system that at PC (sda1) to origin. Mount also partisi USB you (sdb1) to the point.

sudo mount / dev / sda1 is origin
sudo mount / dev / sdb1 is aim

Ensure, outgrow partision at USB you are even greater from outgrow it data and system file type its also with.

E.g., my linux mint utilizes ext3 with outgrows 5 Gb, but one is used just 2.7 Gb. So, I make partision with outgrows 4 Gb at USB hardisk's external I. Why is 4Gb? Since upon does update, will necessary spatial temporary that enough to keep and extracts packages before install.

Afterwards, utilize rsync for copy all system's content at mount point origin goes to partision hardisk's external at mount point to the effect. Herein, we will utilize option a. which will look after permission for all something it makes a abode what mark sense.

sudo rsync avr is origin /. to the effect

Do fitting divers that everything good walking.
- boot loader's installation at USB
- Adjusting fstab

To fitting will be worked through at alone part in the late tutorial.
After is finished, please to go to warnet, utilize Bootable Rescue CD / DVD to booting system you at USB.

2. Moving System at USB goes to PC
This process is reversible process. Previously, you ensures mem back up configuration is of important as / etc / fstab and / boot / grub / menu.lst because we will erase all partisi sda1's content (partisi system is your PC)

Well, input again to live's system you, mounting again as usually and does rsync turn back.

sudo mount / dev / sda1 is aim
sudo mount / dev / sdb1 is origin

sudo rm fr is aim / *

sudo rsync avr is origin /. to the effect

Afterwards, do fitting divers. Can also by undertaking overwrite from backup's file you.

3. Configuration fitting
After you , maybe there is umpteen configuration again unsuitably, one that often becomes problem be path partisi at fstab.

Its example on mine. Partisi sda1 at mount goes to root(/), partision sda5 goes to / home and idem idem as swap.

# /dev / sda1
/dev / sda1 / ext3 defaults,errors=remount ro 0 1

# /dev / sda5
/dev / sda5 / home ext3 defaults 0 2

# /dev / idem idem
/dev / idem idem none sw's swap 0 0

After been adjusted by environmentally new one have no partision idem idem and sda5, one that I do only meng just so becomes like it.

# /dev / sda1 at revamps to go to sdb1
/dev / sdb1 / ext3 defaults,errors=remount ro 0 1

# /dev / sda5 at comment
## /dev / sda5 / home ext3 defaults 0 2

# /dev / idem idem at comment
## /dev / idem idem none sw's swap 0 0

But, if e.g. laptop friend you have partision swap, why doesn't be utilized even. You just need to revamp it to path that right.

Besides, most importantly is, if you system configuration as mine upon, with partision home is diqoined. You need also do rsync partision / home's content you, otherwise, you won't can log in as user ordinary. But you just want to do update in text mode as root.

Rsync just partision home you by undertaking exemption on king-size directories (better, to temporary, all file and directory who will be counted out gathered deep one directory).

sudo rsync avr –exclude=name user / directory excepts mount point home /. to the effect / home

my other fitting perceive you can drawn out its own. If you are undoubtless, ever be do backup since early.

Related Posts by Categories



0 comment

Post a Comment

Join Paypal Get $1.000,00

Sign up for PayPal and start accepting credit card payments instantly.

Join Feed

You can subscribe article that I write at blog this via email, to subscribe your email address entry at form following:

Delivered by FeedBurner