install ubuntu 14.04.5 desktop with raid 1 support

前端之家收集整理的这篇文章主要介绍了install ubuntu 14.04.5 desktop with raid 1 support前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Pre-@H_404_4@
  1. Make a bootable usb key with Ubuntu 14.04.5 desktop installed.
  2. Two hard disks:
  1. /dev/sda 100GB
  2. /dev/sdb 50GB

Configuration@H_404_4@
  1. /home 50GB RAID1
  2. / 40GB
  3. /boot 1GB
  4. swap 9GB

Installing@H_404_4@

step 1: boot to your usb driver. (use BISO)

step 2: try ubuntu

step 3: open a terminal. Clean your drivers.

  1. sudo sgdisk -Z /dev/sda
  2. sudo sgdisk -Z /dev/sdb

step 4: connect to internet.

step 5: install the RAID manager with default configuration

  1. sudo apt-get install mdadm

step 6: partition the drivers: /dev/sda and /dev/sdb

  1. $ sudo fdisk /dev/sda
  2. n
  3. p
  4. 1 # <- sda1
  5. 2048
  6. +50G # <- sda1 with 50GB for /home on RAID1
  7. n
  8. p
  9. 2 # <- sda2
  10. [enter] # <- press enter on your keyboard
  11. +1G # <- sda2 with 1GB for /boot
  12. n
  13. p
  14. 3 # <- sda3
  15. [enter] # <- press enter on your keyboard
  16. +40G # <- sda3 with 40GB for /
  17. n
  18. p
  19. 4 # <- sda4
  20. [enter] # <- press enter on your keyboard
  21. [enter] # <- press enter on your keyboard,for Swap
  22. w
  23.  
  24. $ sudo fdisk /dev/sdb
  25. n
  26. p
  27. 1 # <- sdb1
  28. 2048
  29. +50G # <- sdb1 with 50GB for /home on RAID1

step 7: create RAID 1

  1. sudo mdadm --create /dev/md0 --l 1 -n 2 /dev/sda1 /dev/sdb1

* step 8*: create partitions on /dev/md0

  1. $ sudo fdisk /dev/md0
  2. n
  3. p
  4. 1
  5. [enter]
  6. [enter] # <- md0p1 is ready

step 9: start to install ubuntu on your hard drivers.
use manual partitioning. configure each driver:
Just select corresponding driver,choose use as ext4 or swap,check the format Box.

step 10 : once you finish the installation,do not reboot. The following steps is very important!

  1. sudo -s
  2. mount /dev/sda3 /mnt
  3. mount -o bind /dev /mnt/dev
  4. mount -o bind /dev/pts /mnt/dev/pts
  5. mount -o bind /sys /mnt/sys
  6. mount -o bind /proc /mnt/proc
  7. cat /etc/resolv.conf >> /mnt/etc/resolv.conf
  8. chroot /mnt
  9. apt-get install mdadm vim
  10. vim /etc/grub.d/10_linux # change quick_boot to 0
  11. grub-install /dev/sda
  12. grub-install /dev/sdb
  13. update-grub
  14. sudo shutdown -r now

Enjoy it !

猜你在找的Ubuntu相关文章