Questions tagged [mkfs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
388 views

Mounted .img file does not clear up disk space when files are deleted

I have a requirement to use more inodes than normally available on most file systems. Therefore, I create and mount a ext4 filesystem with a custom inode setting: dd if=/dev/zero of=loop0.img bs=1MB ...
ParoX's user avatar
  • 302
0 votes
0 answers
800 views

mkfs + any solution for “could not read block” or disk replacing

we doing mkfs on the disk sda as the following mkfs.ext4 -j -m 0 /dev/sda -F mke2fs 1.42.9 (28-Dec-2013) Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short ...
King David's user avatar
4 votes
1 answer
2k views

mkfs.ext4 error with option -O ^64bit

When I run /sbin/mkfs.ext4 -O ^64bit /dev/app/mysqldata command in a script it gives me below error: nd(): null: With return code "1", Output from: "/sbin/mkfs.ext4 -O ^64bit /dev/app/...
dbNovice's user avatar
  • 153
2 votes
1 answer
726 views

How can I create disk for smaller files with good read/write speeds?

I'm trying to find the best way to store lots of small files on a volume, without hitting the inode limits. I created a new drive with: sudo mkfs.ext4 -N 100000000 /dev/device and this correctly ...
Andrew Newby's user avatar
  • 1,124
0 votes
1 answer
791 views

mkfs + xfs + what is the right mkfs cli in order to create xfs file-system on huge disk

We need to create xfs file-system on kafka disk The special thing about kafka disk is the disk size kafka disk have 20TB size in our case I not sure about the following mkfs , but I need advice to ...
shalom's user avatar
  • 461
1 vote
0 answers
233 views

Using Mkfs.xfs and setting the version information

When I use mkfs.xfs it is not enabling NLINK. I have another drive in the machine that is set up the exact what I need this drive setup and the only difference is NLINK on one and not on the other. ...
Case's user avatar
  • 311
4 votes
0 answers
866 views

Format new parition of drive with xfs version 4 in Linux

I am working on an arcade machine and it cannot be updated unfortunately. A drive has corrupted data on it and in order to delete it I need to re-partition that drive. (I know it's the data and not ...
Case's user avatar
  • 311
2 votes
1 answer
847 views

DRBD Over LVM MKFS and accessing device

I admit I am in the experimental stage at this point, but as I read the documentation, this shouldn't be a problem. I am configuring DRBD over LVM. As I understand the drbd00.res file, I should be ...
OracleDBA's user avatar
-1 votes
2 answers
9k views

getting "/dev/sdb is apparently in use by the system" after adding an independent disk to the machine

In my centos7 when I add and partition a new disk to the machine and try to make files system on top of it , I get this annoying error message /dev/sdb is apparently in use by the system; will not ...
Houdini's user avatar
  • 11
0 votes
1 answer
231 views

mkfs with condition VIA ssh

I want to create filesystem on remote machines VIA ssh in my bash script disk=sdg the following line is from my bash script ssh $IP " [[ ` lsblk -f | grep $disk | awk '{print NF}' ` -eq 1 ]] &...
shalom's user avatar
  • 461
2 votes
1 answer
4k views

How to know if some data already exists on a device disk?

The simple way to check if disk include filesystem is to do: mount /grid/sdb /mnt and if sdb or other /dev/sdx have file-system then mount will be succeeded, if not. Probably file system exists! ...
shalom's user avatar
  • 461
1 vote
0 answers
466 views

lvcreate mount previously removed Logical Volume, cento 7

So this is what i want to achieve, Unmount home partition at /home Remove home logical volume /dev/cl/home create new home logical volume from the same volume group cl and name home make xfs ...
ahmedjaad's user avatar
  • 137
0 votes
1 answer
520 views

After creating RAID6 unit mkfs.xfs takes forever

We have a computing cluster with a relatively large storage system with RAID-6. The are 22 disks in this unit and each disk is 3TB (almost 20*3=60 TB). Recently many of the drives failed and rebuild ...
Lawless's user avatar
0 votes
1 answer
501 views

View extended options that were passed into mkfs.ext4

I am working with two block devices in a situation where one works with a certain configuration and the other does not. I assume this must be related to subtle differences in the extended options that ...
Drux's user avatar
  • 666
1 vote
1 answer
157 views

Create xfs system with mfks

I'am following a guide to install Zenoss which asks me to create a xfs system. To do this I need to run the following command: mkfs -t xfs Partition The guide says as follows: 'Replace Partition ...
ltv's user avatar
  • 11
4 votes
0 answers
1k views

Can't stop and reformat /dev/md0

I want to reformat /dev/md0, which is a RAID0 array consisting of 4 disks (sd[bcde]). However, when I tried to run the command mke2fs, I received the following error message: /dev/md0 is apparently ...
roymaztang's user avatar
1 vote
1 answer
305 views

Why use dir_index, filetype, and sparse_super with LUKS volumes?

I have been reviewing various HOWTOs and blog posts about encrypted LUKS volumes formatted with ext3. Every single document specifies mkfs with: -O dir_index,filetype,sparse_super and not one of them ...
Mark's user avatar
  • 111
0 votes
0 answers
40 views

Order of execution: First file system, then array vs. first array, then file system

Suppose I have two HDDs, same manufacturer, same model, same attributes (volume, speed, cache, ...). Both are equally partitioned. I want to have a level one array of two disks with one ext4 partition....
user2964971's user avatar
3 votes
2 answers
2k views

mkfs on raw software raid device or partition

I am making a huge RAID10 device (8 TB) for storage on CentOS. I have created the 4 partitions on my 4 physical hard disks and have created the raid device /dev/md2 out of those 4 partitions. Now it'...
Pavel Tankov's user avatar
0 votes
2 answers
1k views

running mke2fs with limited memory

I'm working on a computer with very little memory (128MB) - for my application I need to format large drives (4TB) I'm able to format greater than 2TB disks, up to about 2.5TB, but beyond that I'm ...
stuck's user avatar
  • 697
2 votes
2 answers
728 views

RAID issues - running mkfs on /dev/md0

I had some issues mounting my RAID array in that an error was thrown saying that an ext3 filesystem could not be found on /dev/md0. So, maybe stupidly, i ran mkfs -t ext3 /dev/md0 - has this ...
spooky's user avatar
  • 123
1 vote
2 answers
2k views

CentOS: Set number of inodes in ext4 on Install

During installation of CentOS 6 I would like to set the number of inodes created on the ext4 partitions. Is there a way to do this? I have been unable to locate a solution. Example use case: I know ...
Chris Schuld's user avatar
5 votes
1 answer
2k views

How to create btrfs RAID-1 filesystem (assertion error in mkfs.btrfs)?

I tried to make a btrfs RAID-1 filesystem in "degraded mode" by following the btrfs UseCases instructions but hit a fatal assertion error. Why is this failing, and is there any workaround? The ...
amcnabb's user avatar
  • 647
1 vote
1 answer
2k views

Formatting drive as XFS on Centos 5.5

We've got a Centos 5.5 server with 2 array's. One is standard ext3 mounted as /, the other is an SSD array that we are attempting to format as XFS before moving our MySQL database to it. I've ...
user103677's user avatar
2 votes
1 answer
1k views

get mkfs.xfs options from existing xfs filesystem

I set up a new server last week, did some testing with different mkfs.xfs options on mdadm raid5, i finally found some statisfying mkfs options. Now i am about to set up a new server having exactly ...
Niko S P's user avatar
  • 1,182
15 votes
7 answers
185k views

mkfs fails complaining that: "/dev/sdb is apparently in use by the system; will not make a filesystem here"

This is Ubuntu server 11.10. /dev/sdb is not mounted (see outputs below) and is not used by any process that I can see. Its not used for swap as well. This is a 2nd IDE drive in the server, ...
Harel's user avatar
  • 630
5 votes
2 answers
12k views

mkfs refuses to format device in the claim it's mounted when actually it is not

This is the problem: root@ip-10-126-247-82:~# mkfs.ext4 /dev/xvda3 mke2fs 1.41.14 (22-Dec-2010) /dev/xvda3 is mounted; will not make a filesystem here! And this is the debugging: root@ip-10-126-247-...
Maxim Veksler's user avatar
3 votes
2 answers
7k views

mkfs.ext3: Wrong medium type while trying to determine filesystem size

When I try to format the /dev/drbd0 with mkfs.ext3 I get the error message: mkfs.ext3: Wrong medium type while trying to determine filesystem size. I found a solution here: http://eng....
Saban Gül's user avatar
2 votes
1 answer
611 views

Do you have to partition before running mkfs on a single partition disk?

I see that some people don't use fdisk to create a partition on /dev/sdb... what is the difference between making and not making a partition for a single partition disk? I just added a partition on a ...
ujjain's user avatar
  • 3,983
4 votes
1 answer
11k views

mkfs.ext4 is taking hours to complete on 4 TB RAID 5

I am running mkfs.ext4 on top of LVM on a RAID 5, and it is taking hours to complete. It's a 3 TB, four disks setup, and I'm just doing: mkfs.ext4 /dev/md0 My stripe size and width seem OK. How ...
Ricardo's user avatar
  • 170
3 votes
4 answers
1k views

Speeding up creation of large ext3 filesystem on CentOS 5

We are creating a large backup ext3 partition on 16TB RAID array and the mke2fs took 2.5 hours to complete. Are there any known tricks we can use to shorten this time? The aim is to lower the time ...
Capt. Crunch's user avatar
2 votes
3 answers
2k views

Always reserve blocks for super user when formatting a file system in Linux? Even for data only partitions?

When formatting a large partition (10TB) that will hold only application data, does it make sense to have 'reserved for the super user' space? 122065906 blocks (5.00%) reserved for the super user ...
Stu Thompson's user avatar
  • 3,349
14 votes
5 answers
13k views

Which "features" of ext4 existing ext4 partition uses?

When I create ext4 filesystem, there are many "features", which I can enable and disable - like has_journal, extent, huge_file and so on. Is there any way to know, which options were used while ...
Alexey Chernikov's user avatar