Questions tagged [mkfs]
33 questions
2
votes
1 answer
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 virtual disk, ran mkfs.ext4 and mounted it, but I…

ujjain
- 3,983
- 16
- 53
- 91
2
votes
3 answers
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
My gut says 'no', but a professional system…

Stu Thompson
- 3,349
- 7
- 31
- 47
2
votes
1 answer
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 shows:
/dev/device 100040704 13929894 86110810 14%…

Andrew Newby
- 1,102
- 2
- 25
- 58
1
vote
0 answers
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. Is there anyway to use Mkfs.xfs with an option to…

Case
- 311
- 1
- 4
- 14
1
vote
0 answers
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 filesystem
mount the new logical volume at /home.
for…

ahmedjaad
- 137
- 2
- 11
1
vote
1 answer
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 with the path of the target primary partition'
What…

ltv
- 11
- 2
1
vote
1 answer
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 explains why.
I have a rough idea what dir_index…

Mark
- 111
- 1
1
vote
2 answers
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 I am going to have a 120GB disk and I am going to…

Chris Schuld
- 11
- 3
1
vote
1 answer
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 partitioned the SSD array as /dev/sdb1, but when…

user103677
- 11
- 3
0
votes
1 answer
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 understand if the following cli , is good enough to…

shalom
- 461
- 13
- 29
0
votes
1 answer
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 ]] &&
mkfs.ext4 -j -m 0 /dev/$disk -F "
bash: -c:…

shalom
- 461
- 13
- 29
0
votes
1 answer
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 was impossible. I Deleted the unit and recreated…

Lawless
- 1
0
votes
1 answer
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 were passed into respective calls of…

Drux
- 656
- 1
- 9
- 24
0
votes
0 answers
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. Tool of choice: mdadm.
Which one is better?
a)…

user2964971
- 137
- 2
- 3
- 10
0
votes
2 answers
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 given the below
mke2fs 1.42-WIP…

stuck
- 687
- 2
- 10
- 23