1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Make the hard drive available in Ubuntu

Last updated at Posted at 2019-09-06

Check drives

Command: "sudo fdisk -l"
Output:Disk /dev/sdb: 107.4 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylinders, total 209715200 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/sdb doesn't contain a valid partition table

Create partition

Command: "sudo fdisk /dev/sdb"

type 'n' to create partition
Next select partition type p=Primary, e=Extended

Specify number of partitions
I had to create two partitions. For me next two options were to specify first sector and last sector where I selected default.

'w' to write the changes

'q' to quite fdisk

Update kernel with changes
Command: "sudo partprobe /dev/sdb"

Format hard drive
Command: "sudo mkfs /dev/sdb2 -t ext4"

Create a directory for mount point. Following convention to create under /mnt
Command: "sudo mkdir /mnt/sdb2"

Make the folder writable
Command: "sudo chmod 777 /mnt/sdb2"

Mount drive to folder

Command: "sudo mount /dev/sdb2 /mnt/sdb2 -t ext4"

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?