1

I created a new partition(sda7) using cfdisk in Ubuntu 14.04. But, problem is that I don't able to set ext4 filesystem to the partition. When I go to type menu of the partition there is no ext4 partition option. Is there another name that is equivalent of ext4?

And when I tried to mount the sda7 sudo mount /dev/sda7 /mnt it shows--

mount: you must specify the filesystem type

But the output of fdisk -l shows all ext4 and Linux partitions as Linux and their ID is 83.

enter image description here

sda7->type

Entering sda7 type Now, how can I set this?

1 Answer 1

4

The file system used in a partition is “set” by creating the file system, not as the partition type in the partition table. Set the type to 83 (Linux), then create the file system:

mkfs.ext4 /dev/sda7 

Then you’ll be able to mount it:

mount -t ext4 /dev/sda7 /mnt 
3
  • I have done it. But, problem is that in /mnt directory threre is only one folder named lost+found and there is no increased space to put something. Commented Jun 7, 2017 at 5:34
  • The file system is empty, it’s up to you to create any directories you want. If you run df you should see available space on /mnt. Commented Jun 7, 2017 at 5:49
  • This works perfectly. Commented Jun 7, 2017 at 6:06

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.