Skip to main content

Questions tagged [mkfs]

mkfs is a Linux program used to build filesystems.

12 votes
1 answer
873 views

Why does mkfs.ntfs count one Byte less?

Apparently, ntfs.mkfs counts one byte less when checking if the block device is large enough; or I have made some kind of mistake. After creating a partition of 2048 512-byte sectors (exactly 1MiB ...
Fivos Theophylactou's user avatar
4 votes
3 answers
590 views

Can’t see partition device after creating GPT partition on 6TB disk

I have a 6TB disk in Debian Linux 12, let's say the disk is /dev/sdd. It's just for data; no parts of the OS are on it. Now I’m trying to use it as a normal disk with the full space in a single ...
chris01's user avatar
  • 1,009
4 votes
2 answers
936 views

mkfs.ext4 to loop: 128-byte inodes cannot handle dates beyond 2038 and are deprecated

When I use mkfs.ext4 to /dev/loop18 I get this warning: 128-byte inodes cannot handle dates beyond 2038 and are deprecated Code: echo y | mkfs.ext4 /dev/loop18 Result: mke2fs 1.47.1 (20-May-2024) ...
ArtEze's user avatar
  • 137
4 votes
2 answers
560 views

How can I format a partition in a mapper device?

I created a mapper device with dmsetup and created a partition table with parted: $ fdisk -l /dev/mapper/vdisk Disk /dev/mapper/vdisk: 511.57 GiB, 549295737344 bytes, 1072843237 sectors Units: sectors ...
chienyan's user avatar
1 vote
1 answer
197 views

ext2 How to choose bytes/inode ratio

How approximately calc bytes-per-inode for ext2? I have 7.3GB storage (15320519 sectors 512B each). I have made ext2 filesystem with block size 4096 mke2fs /dev/sda2 -i 524288 -m 0 -L "SSD" -...
Андрей Тернити's user avatar
0 votes
0 answers
94 views

mkfs.vfat -- No such file or directory [duplicate]

I'm on Debian Bookworm. I am trying to format my USB drive to FAT32 filesystem. ~$ lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS sdb ...
vrgovinda's user avatar
  • 349
0 votes
0 answers
229 views

How create isolated ext4 filesystem on file

There is a 25G /dev/sda6 ext4 partition mounted on /data. I'm trying to make a fixed size filesystem on a file using fallocate, mkfs.ext4, mount: fallocate -l 5G /data/new_storage mkfs.ext4 -E ...
TheAct1on's user avatar
11 votes
3 answers
8k views

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 ...
Martin Vegter's user avatar
0 votes
0 answers
182 views

I altered the partition table (resized the root and created a new partition and formatted it) but can't log into my arch system anymore

Yesterday, I had an idea of having two root partitions for my arch system, one which would contain packages and system files and another one to store my personal files (music, videos, etc). With that ...
Asmit Das Choudhury's user avatar
0 votes
1 answer
773 views

How do I put the XFS journal on another drive?

Trying to put the journal of a big hard drive on a smaller, but faster SSD. $ sudo mkfs.xfs -N -l logdev=/mnt/data-journal/journal /dev/sdc unable to get size of the log subvolume. $ sudo mkfs.xfs -N ...
martixy's user avatar
  • 123
14 votes
3 answers
3k views

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?
muggi's user avatar
  • 769
3 votes
1 answer
284 views

mkfs ext2 ignore number-of-inodes

I want to make ext2 file system. I want to set "number-of-inodes" option to some number. I tried several values: if -N 99000 then Inode count: 99552 if -N 3500 then Inode count: 3904 if -N ...
Андрей Тернити's user avatar
0 votes
1 answer
1k views

grub does not recognise specially-formatted ext4 partition

As the title states, grub is unable to recognise my ext4 partition: GNU GRUB version 2.06-3~deb11u5 Minimal BASH-like line editing is supported. For the first word, TAB ...
ManSamVampire's user avatar
1 vote
1 answer
463 views

Unix ext2 superblock - file system creation date

I am trying to find the creation date on an ext2 file system. I seem to get a current date using dumpe2fs. The problem is that the original ext2 superblock specification does not contain such ...
Panagiotis Stefanis's user avatar
0 votes
1 answer
1k views

how do I make a new filesystem image?

I know I used to be able to do it, and its frustrating I cant recall. I want to write an ext4 filesystem to a disk image in a folder. I don't want to re-partition my drive, I just need the filesystem ...
j0h's user avatar
  • 3,979

15 30 50 per page
1
2 3 4 5
10