Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mkfs]

The tag has no usage guidance.

1
vote
0answers
41 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. ...
4
votes
0answers
180 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 ...
2
votes
1answer
55 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 ...
-1
votes
2answers
882 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 ...
0
votes
1answer
92 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 ]] &...
2
votes
1answer
351 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! ...
1
vote
0answers
266 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 ...
0
votes
1answer
249 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 ...
0
votes
1answer
118 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 ...
1
vote
1answer
104 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 ...
3
votes
0answers
540 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 ...
2
votes
1answer
249 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 ...
0
votes
0answers
37 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....
3
votes
2answers
1k 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'...
0
votes
2answers
924 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 ...
2
votes
2answers
525 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 ...
1
vote
2answers
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 ...
4
votes
1answer
1k 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 ...
1
vote
1answer
1k 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 ...
2
votes
1answer
669 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 ...
6
votes
5answers
70k 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, ...
4
votes
2answers
10k 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-...
3
votes
2answers
5k 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....
2
votes
1answer
539 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 ...
4
votes
1answer
8k 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 ...
3
votes
4answers
901 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 ...
2
votes
3answers
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 ...
7
votes
4answers
6k 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 ...