mkfs is a Linux program used to build filesystems.
Questions tagged [mkfs]
136 questions
22
votes
4 answers
What is the difference between "inode size" and "Bytes per inode"
Below information is taken from man page,I would like to know the difference between bytes-per-inode and Inode-size?
-i bytes-per-inode
Specify the bytes/inode ratio. mke2fs creates an inode for every bytes-per-inode bytes of space on the disk.…
Akheel Asadi
- 383
- 2
- 4
- 10
19
votes
2 answers
Is it ok to mkfs without partition number?
I have a pen drive and one partition:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /
sdb 8:16 1 7.5G 0 disk
└─sdb1 8:17 1 7.5G 0 part
and I have formatted with…
Alaneuler
- 391
- 1
- 3
- 11
15
votes
1 answer
How can I format a partition into a filesystem quickly?
In gparted, repartitioning a disk into one single partition and formatting the partition to a filesystem is very fast. It seems not write zeros to the partition.
How can I achieve the same when using commands? Here is what I got:
$ sudo mkfs -t…
Tim
- 98,580
- 191
- 570
- 977
13
votes
4 answers
mkfs.ext4 command not found in Debian (Jessie)
I have just installed Debian 8.4 (Jessie, MATE desktop). For some reason the following command is not recognized:
mkfs.ext4 -L hdd_misha /dev/sdb1
The error I get:
bash: mkfs.ext4: command not found
I have googled and I actually can't seen to find…
misha256
- 547
- 1
- 5
- 14
11
votes
4 answers
Difference between mkfs -t ext4 and mkfs.ext4
Is there a difference between sudo mkfs -t ext4 /dev/sdb and sudo mkfs.ext4 /dev/sdb?
Or is the latter just an alias of the former?
Nepumuk
- 659
- 7
- 29
10
votes
1 answer
How to calculate partition Start End Sector?
I am wondering what Start and End value to choose when partitioning my ext. SSD using fdisk.
fdisk suggests 2048-250069679, default 2048 but 250069679 cannot be divided by 512 nor by 2048. Wouldn't it be better to set the Start and End value to a…
AlexOnLinux
- 635
- 1
- 8
- 17
10
votes
4 answers
How to run mkfs on file image partitions without mounting?
I am creating an empty file...
dd if=/dev/zero of=${SDCARD} bs=1 count=0 seek=$(expr 1024 \* ${SDCARD_SIZE})
...then turning it into an drive image...
parted -s ${SDCARD} mklabel msdos
...and creating partitions on it
parted -s ${SDCARD} unit KiB…
Paul Knopf
- 1,151
- 2
- 13
- 25
9
votes
2 answers
Why does parted need a filesystem type when creating a partition, and how does its action differ from a utility like mkfs.ext4?
I am partitioning a disk with the intent to have an ext4 filesystem on the partition. I am following a tutorial, which indicates that there are two separate steps where the ext4 filesystem needs to be specified. The first is by parted when…
David M
- 233
- 3
- 6
9
votes
2 answers
Format external hard drive to linux compatible file system
How do I format my external hard drive to a very Linux compatible file system?
john-jones
- 1,698
- 4
- 24
- 38
9
votes
3 answers
Will formatting my drive TRIM my SSD?
Will a standard fresh linux (Ubuntu 11.10 to be exact) install and drive re-format (full) successfully TRIM my SSD, or do I need to do something extra?
I know that ext4 will TRIM blocks on erase when I specify the discard option, but I want to…
Stephen
- 925
- 3
- 10
- 16
8
votes
3 answers
Minimalistic ext4 filesystem without journal and other advanced features
I have a small "rescue" system (16 MB) that I boot into RAM as ramdisk. The initrd disk that I am preparing needs to be formatted. I think ext4 will do fine, but obviously, it doesn't make any sense to use journal or other advanced ext4…
400 the Cat
- 819
- 4
- 37
- 85
8
votes
4 answers
mkfs is extremely slow
Formatting xfs volumes on ubuntu 16.04 is extremely slow in our Virtualbox hypervisor, but not vms running inside Nutanix.
Virtualbox
100 GB => seconds
2TB => seconds
Nutanix (HyperConverged)
100 GB => 4 minutes
2TB => 30+ minutes
parted -l -s…
spuder
- 17,643
- 36
- 91
- 119
7
votes
2 answers
Quick USB pendrive formatting under KDE
Is there some way to quickly format a USB pendrive in KDE (with a GUI interface), without having to open the main "KDE Partition Manager"?
In particular I'm most interested in something like a Dolphin plugin or a Plasmoid.
If it matters, I'm on…
Sekhemty
- 824
- 1
- 12
- 27
7
votes
1 answer
How to Format an LVM partition
I need to format a partition.
But I have one LVM on my machine (VirtualBox) that is composed of two different two partitions of two Virtual HDD's (sdb5 and sdc5)
fdisk output
df output
OmiPenguin
- 4,168
- 34
- 79
- 111
7
votes
1 answer
Formatting an sdcard with mkfs hangs indefinitely
I am trying to format an sdcard following this guide. I am able to successfully create the partition table, but attempting to format the Linux partition with mkfs yields the following output:
mke2fs 1.42.9 (4-Feb-2014)
Discarding device blocks: …
sherrellbc
- 2,461
- 7
- 28
- 41