unixwz0r

How to create a 2nd HDD UFS partition on FreeBSD

Jun 10th, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. -- Create Partition --
  2.  
  3. # gpart create -s gpt da0
  4. da0 created
  5.  
  6. # gpart show da0
  7. => 63 312579603 da0 GPT (149G)
  8. 63 312579603 - free - (149G)
  9.  
  10. # gpart add -t freebsd da0
  11. da0p1 added
  12.  
  13. (take note of the output "da0s1")
  14.  
  15. # newfs /dev/da0s1
  16.  
  17. -- /etc/fstab --
  18.  
  19. # nano /etc/fstab
  20. (mkdir newdir)
  21. /dev/da0p1 /newdir ufs rw 2 2
  22.  
  23. -- Delete / Destroy Partition --
  24.  
  25. # gpart delete -i 1 da0p1
  26.  
  27. Destroy "slices" (repeat as needed),
  28.  
  29. # gpart destroy da0p1
  30.  
  31. Delete the GEOM label,
  32.  
  33. # gpart delete -i 1 da0
  34.  
  35. Destroy the GEOM label,
  36.  
  37. # gpart destroy da0
  38.  
  39. On every step, verify the partition table :
  40.  
  41. # gpart show da0
  42.  
  43. and
  44.  
  45. # gpart list
Add Comment
Please, Sign In to add comment