Posted By

mitnworb on 02/22/11


Tagged


Versions (?)

Foramting hard drive ubuntu


 / Published in: Bash
 

  1. fdisk /dev/sda
  2.  
  3.  
  4. Command (m for help): n
  5. Command action
  6. e extended
  7. p primary partition (1-4)
  8. p
  9. Partition number (1-4): 1
  10. First cylinder (197-621, default 197):
  11. Using default value 197
  12. Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +128M
  13. w
  14.  
  15.  
  16. mkfs.ext4 /dev/sda1
  17.  
  18. sudo mkdir /media/sda1
  19. sudo mount /dev/sda1 /media/sda1

Report this snippet  

You need to login to post a comment.