create account

Move Linux partition to Another Hard disk by agile

View this thread on: hive.blogpeakd.comecency.com
· @agile ·
Move Linux partition to Another Hard disk
My laptop has 128GB SSD, and has both linux and window running short of capacity.
I bought new 275GB SSD, and want to move partition without installing OS's.
As for window, it is easy to move for I installed VHD boot.
However on linux side, I need some tool like Ghost (backing up the whole file system).

I found FSArchiver which is on the System rescue cd.
http://www.system-rescue-cd.org/

Here is my 128GB SSD partition table, linux ext4 and window ntfs.
![part_128GB.png](https://steemitimages.com/DQmd6VombRez9dbwCJMfzxP3ppwgnsupFdyTtm5JZjPAUDs/part_128GB.png)


1. download iso file and burn on CD or make USB stick bootable. (I prefer USB)
2. prepare a USB external hard disk which is formatted NTFS or EXT4.
3. put USB and external USB HDD, and boot to USB stick. (You can do pressing BIOS boot select key, for example F10 or F12)
![20170406_141327.jpg](https://steemitimages.com/DQmeB2BZFf9neZqqBBNHsaUkVDWW8fs5T1MsyMmca36WXRm/20170406_141327.jpg)
4. Continue with default boot
![20170406_141401.jpg](https://steemitimages.com/DQmXgjdQur3UvCPAk3uKwd2N5cPx4cb7JetR3WrqM7iYP3k/20170406_141401.jpg)
5. You can do job on text console, but GUI would be better.
  % startx
 open terminal, My laptop has high-density LCD so I change font size bigger.
![20170406_141806.jpg](https://steemitimages.com/DQmb72EkC86iUsXXGAPJnvi5tdQRrxV57ccNbp6xa8Vi6Eo/20170406_141806.jpg)
6. For my case, sda is internal SSD, sdb is external USB HDD, sdc is USB stick
  Mount /dev/sdb1 to /mnt/backup.
  External USB HDD has a NTFS partition and /dev/sda1 (linux native) will be stored.
![20170406_142922.jpg](https://steemitimages.com/DQmYSCFt4Qh4EvTX2joSHV5Ry5YbXfHhPvWRqAmxLJ49LAM/20170406_142922.jpg)
7.  Now save partition to file : /dev/sda1 to linux_0406.fsa
  % fsarchiver savefs -o /mnt/backup/image/linux_0406.fsa /dev/sda1 -j2
![20170406_145918.jpg](https://steemitimages.com/DQmRmeWa9er4MPZKSs58rByEQi61K1wgFhsfKAX8mod4CUj/20170406_145918.jpg)
8. Replace internal SSD and boot systemrescue USB.
   run gparted to make partitions
![20170406_153200.jpg](https://steemitimages.com/DQmdCKn5GGSnuHnT1g3fPwjUmoPWmTeZGrmqM1vNU48RwFc/20170406_153200.jpg)
9. restore /dev/sda1
  % fsarchiver restfs /mnt/backup/image/linux_0406.fsa id=0,dest=/dev/sda1
  id=0 means first parttion in fsa file (fsa file can contains multiple partitions)
10. If you failed to boot linux, set /dev/sda1 boot flag in gparted.
  You can find "Manage flags" right click on the partion in gparted, set boot flag.
  comment out swap partition in /etc/fstab
11. After boot install grub2.
12. Continue work on NTFS, copying vhd file and run bcdboot.exe.

That's all
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authoragile
permlinkmove-linux-partition-to-another-hard-disk
categorylinux
json_metadata{"tags":["linux","partition","fsarchiver","systemrescuecd"],"image":["https://steemitimages.com/DQmd6VombRez9dbwCJMfzxP3ppwgnsupFdyTtm5JZjPAUDs/part_128GB.png","https://steemitimages.com/DQmeB2BZFf9neZqqBBNHsaUkVDWW8fs5T1MsyMmca36WXRm/20170406_141327.jpg","https://steemitimages.com/DQmXgjdQur3UvCPAk3uKwd2N5cPx4cb7JetR3WrqM7iYP3k/20170406_141401.jpg","https://steemitimages.com/DQmb72EkC86iUsXXGAPJnvi5tdQRrxV57ccNbp6xa8Vi6Eo/20170406_141806.jpg","https://steemitimages.com/DQmYSCFt4Qh4EvTX2joSHV5Ry5YbXfHhPvWRqAmxLJ49LAM/20170406_142922.jpg","https://steemitimages.com/DQmRmeWa9er4MPZKSs58rByEQi61K1wgFhsfKAX8mod4CUj/20170406_145918.jpg","https://steemitimages.com/DQmdCKn5GGSnuHnT1g3fPwjUmoPWmTeZGrmqM1vNU48RwFc/20170406_153200.jpg"],"links":["http://www.system-rescue-cd.org/"],"app":"steemit/0.1","format":"markdown"}
created2017-04-07 06:25:42
last_update2017-04-07 06:25:42
depth0
children2
last_payout2017-04-14 06:25:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,624
author_reputation879,680,857,135
root_title"Move Linux partition to Another Hard disk"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id2,960,586
net_rshares343,794,589,805
author_curate_reward""
vote details (39)
@makishart ·
cool info! Thanks!
properties (22)
authormakishart
permlinkre-agile-move-linux-partition-to-another-hard-disk-20170407t065016033z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2017-04-07 06:50:15
last_update2017-04-07 06:50:15
depth1
children1
last_payout2017-04-14 06:50:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length18
author_reputation15,485,262,827,756
root_title"Move Linux partition to Another Hard disk"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,960,679
net_rshares0
@agile ·
Thanks~~ I hope it helps...
properties (22)
authoragile
permlinkre-makishart-re-agile-move-linux-partition-to-another-hard-disk-20170407t065837638z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2017-04-07 06:58:39
last_update2017-04-07 06:58:39
depth2
children0
last_payout2017-04-14 06:58:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length27
author_reputation879,680,857,135
root_title"Move Linux partition to Another Hard disk"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,960,711
net_rshares0