Monday, 2 March 2015

New external HDD formatted to ext4

me@me-Precision-WorkStation-T5500:~$ sudo fdisk /dev/sde
Note: sector size is 4096 (not 512)

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the DOS compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): d
Selected partition 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

me@me-Precision-WorkStation-T5500:~$ ls /dev/sd*
/dev/sda   /dev/sda2  /dev/sdc   /dev/sdd   /dev/sde
/dev/sda1  /dev/sda5  /dev/sdc1  /dev/sdd1

me@me-Precision-WorkStation-T5500:~$ sudo mkfs -t ext4 /dev/sde1
mke2fs 1.42.9 (4-Feb-2014)
Could not stat /dev/sde1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

me@me-Precision-WorkStation-T5500:~$ sudo mkfs -t ext4 /dev/sde
mke2fs 1.42.9 (4-Feb-2014)
/dev/sde is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
244195328 inodes, 976754645 blocks
48837732 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
29809 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done                          
Writing inode tables: done                          
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done    

me@me-Precision-WorkStation-T5500:~

No comments:

Post a Comment