Nxl67170

From miki
Jump to navigation Jump to search

Installed Operating System

Current OS Log

System

Hardware

  • Laptop DELL Latitude E5430

Log

To be completed

  • Original size: C: (AWS_System) was 36.4GB (39,104,897,024 bytes).
  • 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

# Need to update grub
sudo mount /dev/sda3 /boot         # We must update grub config on /dev/sda3
sudo grub-install /dev/sda
sudo update-grub2                  # grub.cfg contains old UUID that must be udpated
  • Configure all device harddrive as 'solid-state drive in VirtualBox.

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