Nxl67170: Difference between revisions
Jump to navigation
Jump to search
(→Log) |
(→Log) |
||
Line 15: | Line 15: | ||
* Copy HDD to SSD: |
* Copy HDD to SSD: |
||
<source lang=bash> |
<source lang=bash> |
||
# Booting on Live Ubuntu |
|||
⚫ | |||
⚫ | |||
# Clone sda3, sda5 and sda7. Use rsync. |
|||
⚫ | |||
for D in sda3 sda5 sda7; do |
|||
sudo mkdir -p /mnt/any |
|||
⚫ | |||
⚫ | |||
⚫ | |||
sudo umount /mnt/any |
|||
ssh ubuntu@remote umount /mnt/any |
|||
done |
|||
# For sda1, sda2 (ntfs), use ntfsclone. |
|||
# sda1: we shrink it first using gparted |
|||
gparted # on original |
|||
ssh user@server sudo ntfsclone --save-image --force -o - /dev/sda1 | sudo ntfsclone --restore-image --overwrite /dev/sda1 - |
|||
ssh user@server sudo ntfsclone --save-image --force -o - /dev/sda2 | sudo ntfsclone --restore-image --overwrite /dev/sda2 - |
|||
sudo ntfsresize /dev/sda1 |
|||
</source> |
</source> |
||
Revision as of 01:07, 4 April 2013
Installed Operating System
Current OS Log
System
Hardware
- Laptop DELL Latitude E5430
Log
To be completed
- Copy HDD to SSD:
# Booting on Live Ubuntu
# Clone sda3, sda5 and sda7. Use rsync.
for D in sda3 sda5 sda7; do
sudo mkdir -p /mnt/any
sudo mount /dev/$D /mnt/any
ssh ubuntu@remote sudo mount /dev/$D /mnt/any
sudo rsync -aHAXS --delete --rsync-path "sudo rsync" --numeric-ids -h -v --exclude='lost+found' ubuntu@remote:/remote/path /local/path
sudo umount /mnt/any
ssh ubuntu@remote umount /mnt/any
done
# For sda1, sda2 (ntfs), use ntfsclone.
# sda1: we shrink it first using gparted
gparted # on original
ssh user@server sudo ntfsclone --save-image --force -o - /dev/sda1 | sudo ntfsclone --restore-image --overwrite /dev/sda1 -
ssh user@server sudo ntfsclone --save-image --force -o - /dev/sda2 | sudo ntfsclone --restore-image --overwrite /dev/sda2 -
sudo ntfsresize /dev/sda1
Partition
Device | Label | Size | Type | Mount | uid | gid | permissions |
---|---|---|---|---|---|---|---|
/dev/sda1/ | OS | xx.xxGiB | ntfs | /windows/c | ? | ? | drwxrwx--- |
/dev/sda2/ | SWAP | xx.xxGiB | linux-swap | swap | ? | ? | |
/dev/sda3/ | UBUNTU | xx.xxGiB | reiserfs | / | ? | ? | drwxr.xr.x |
1st Install
To be completed