Tuesday, September 2, 2014

Format hard disk to ext3

hades@nbhqf6it081104:~$ sudo fdisk -l
[sudo] password for hades:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x82398239

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   204797951   102397952   83  Linux
/dev/sda2       204797952   208795647     1998848   82  Linux swap / Solaris
/dev/sda3   *   208795648   286920703    39062528   83  Linux
/dev/sda4       286920704   976771071   344925184   83  Linux

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x97be5b6a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63  2930277167  1465138552+  83  Linux
hades@nbhqf6it081104:~$ sudo mkfs -t ext3 /dev/sdb1

#umount /dev/sdb1

No comments: