(Deleted) How to mount SSD/HD storage to vm + Ubuntu 14.0 LTS

13 days ago by
How to

  1. sudo fdisk -l (show disks)
  2. sudo fdisk /dev/sdb (Create partition)
  3. n add a new partition
  4. p primary (0 primary, 0 extended, 4 free) p
  5. Partition number (1-4, default 1): 1
  6. First sector (2048-167772159, default 2048): Enter
  7. Last sector, +sectors or +size{K,M,G} (2048-167772159, default 167772159):Enter
  8. w write table to disk and exit
  9. Result: The partition table has been altered! Calling ioctl() to re-read partition table.Syncing disks.
  10. sudo fdisk -l (Show new partion)
  11. sudo mkfs -t ext4 /dev/sdb1 (Format partition)
  12. sudo mkdir -p /mnt/varssd (On OS disk to mount drive)
  13. sudo mount /dev/sdb1 /mnt/varssd (Mount temporary volume to directory)
  14. sudo df -h (Test result) (/dev/sdb1 197G 60M 187G 1% /mnt/var)
  15. sudo vi /etc/fstab (new line: /dev/sdb1 /mnt/varssd ext4 defaults 0 2)
  16. sudo reboot (Test permanent moun

Ubuntu commands

$> sudo df -h . (show used volume space)

$> sudo du -sh ./* (show used volume space per folder)

$> sudo lsblk -l (Show mounted volumes)

$> sudo fdisk -l (Show available volumes)

$> sudo mount /var/sdc1 /var (Mount temp volume to compute engine)

$> sudo vi /etc/fstab (entry mount) (Be carefully if wrong done, compute engine will not boot)

let scheduler: scheduler_service = new scheduler_service(default_mdb_info,

Community: Test me

Similar posts:
Search »
  • Nothing matches yet.