Questions tagged [mkfs]

mkfs is a Linux program used to build filesystems.

Filter by
Sorted by
Tagged with
0
votes
0answers
40 views

NEW-2020: mount: wrong fs type, bad option, bad superblock

At my wits end over here... I have a USB drive which is failing to mount or respond to any commands really. I can't mount, can't erase, can't delete the existing partition, nothing seems to work. NOTE ...
0
votes
1answer
40 views

how to format a partition of a diskimage?

I made an empty binary image file with fallocate -l 500M sd.img command and then partitioned it using gdisk and now I can see my partitions using gdisk: Command (? for help): i Partition number (1-2): ...
0
votes
0answers
29 views

Undo a disk format while disk is still attached

I've been struggling with a disk that's a logical volume. Disk would not work with me and I decided to partion and format the disk.. Then realized that I have de-attached and attached the disk without ...
0
votes
2answers
88 views

massive resource consumption during mkfs.ntfs on a zvol, why (and how can I limit this)?

On my machine mkfs.ntfs is slow and results in massive use of resources, preventing me from using the machine for anything else. According to top it (or rather directly related zvol processes) is ...
0
votes
1answer
47 views

Format microSDCard which has an OS written on it

I've got a 32G micro SDCard which I created a bootable ubuntu installation on it for use on a home server some while ago. I want to format it to FAT32 but have been unable to do so with either gParted/...
0
votes
0answers
44 views

Change File Permissions inside an Image File in Linux

I have an application (running in an IDE under my user account) that does the following: It creates an empty file with ~1GiB size. It calls mkfs on this file (btrfs currently, but may change in ...
1
vote
1answer
241 views

Accidentally ran mkfs command on already available disk

I had a volume of 350Gb attached to my Linode server. It was running out of space so I resized it to 400GB from the dashboard and restarted my server. Then I used the df -h command to check if the ...
1
vote
1answer
141 views

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 ...
3
votes
2answers
2k views

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 ...
1
vote
3answers
117 views

Anything special to consider when cloning an HD to an SSD?

I would like to move from an HD to an SSD. Is there anything special to consider here? For example: Different recommended fstab settings mkfs or partition tools behaving differently when operating on ...
0
votes
1answer
520 views

mkfs.vfat can't find the first partition on my disk

I wanted to install Arch Linux on my Raspberry Pi 3 and I found this tab[Installation] article that describes the process step-by step: Now, I've run into a problem when I tried to create the vfat fs ...
1
vote
0answers
135 views

Fast way to create virtual disks?

I want to create virtual 500GB ext4 disks on external usb disks and samba/nfs shares. For test purposes, I first tried with a 1GB file using the following commands. sudo dd if=/dev/zero of=/mnt/...
0
votes
0answers
210 views

Linux mkfs.f2fs Error: Device size is not sufficient for F2FS volume

I am trying to mount an F2FS file system on an Ubuntu 16.04 LTS machine running Linux version 4.4.178+. When I try to run: sudo mkfs.f2fs /dev/sda2 the system returns: F2Fs-tools: mkfs.f2fs Ver: 1....
4
votes
4answers
348 views

Making bit identical ext2 filesystems

I'm preparing an image file for a linux system. I need to be able to run my script that creates the image and have the output be bit-for-bit identical each time. I do the normal procedure, by making ...
8
votes
1answer
7k views

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 ...
4
votes
1answer
7k views

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 ...
0
votes
1answer
479 views

mkfs.ext4 write all over the whole disk?

I it said that mkfs.ext4 overwrites data when run over a disk with existing data. My question is, does it really write from beginning till the very end ? I know that it writes itmaps, inode list, ...
-3
votes
1answer
73 views

Data loss in disk in linux

How to get back lost data in /dev/sde? I unmounted a mount point on which /dev/sde was mounted and ran mkfs.ext4 as it was not getting remounted and that lead to data loss. Now I can't find /dev/sde ...
3
votes
1answer
1k views

Partitioning and formatting a 4k-emulated (512e) HDD

I just plugged into USB A 3.0 / C 3.1 my new external HDD to Debian Buster system. The disk was sold as LaCie 2.5" Porsche Design P'9227 2TB USB-C. Here is the output of fdisk -l /dev/sdc: Disk /...
0
votes
1answer
788 views

can't format usb storage mounted on /dev/sdb

I have an 8Gb usb storage and lsblk shows it its mounted in /dev/sdb. When trying to: sudo mkfs.ntfs -L "label" /dev/sdb I got: /dev/sdb is entire device, not just one partition. Refusing to make a ...
1
vote
0answers
46 views

mkdosfs hangs forever, even when using timeout

I'm testing massive amounts of USB flash drives using a custom bash script that's based on f3. Before I perform f3write and f3read I format the drives, as my experience is some of the drives come ...
0
votes
0answers
154 views

I have unmounted a partition, yet mkfs.ext4 says it won't run on a partition in use, why is that? [duplicate]

/dev/sda11 is a partition that I'd like install NixOS 18.03 on following this guide. The problem is that /dev/sda11 is unmounted, yet mkfs.ext4 is acting like it is still is mounted. I had it mounted ...
2
votes
2answers
2k views

How to erase gpt partition table and how to make old partition forget mount information

We have Beaglbone black based custom board with 256MB RAM and 4GB eMMC. We have script to flash software on the board. Script erases gpt partition table using following commands #Delete primary gpt (...
3
votes
2answers
1k views

Why is 67108864 the maximum bytes-per-inode ratio? Why is there a max?

Formatting a disk for purely large video files, I calculated what I thought was an appropriate bytes-per-inode value, in order to maximise usable disk space. I was greeted, however, with: mkfs.ext4: ...
0
votes
1answer
936 views

is it possible to capture the UUID number before creating file system on disk

is it possible to capture the UUID number before creating file system on disk? if yes how - by which command ? blkid ( before run mkfs.ext4 on sdb disk ) <no output> blkid ( after run mkfs....
2
votes
1answer
582 views

blkid + print only the disks that are with filesystem

regarding blkid command please help me to approve this assumption can we say that blkid will print all disk devices only if these disks are with filesystem ( by mkfs ) blkid /dev/sda1: UUID="...
0
votes
1answer
155 views

How to migrate partitions and file systems to another device

I have an existing system with partitions but want to move them to a new device. The new device may be smaller and be connected to the system differently then the existing device. How do I move the ...
6
votes
4answers
1k views

How to capture all disks that don’t have a file system

I want to capture all disks that do not have a filesystem ( all disks that mkfs not runs on them ) I tried the below, but still gives the OS ( sda ). What is the best approach with lsblk or other ...
0
votes
2answers
563 views

Wipe a USB flash drive and recreate a filesystem

I'm using this to wipe a USB flash drive and recreate a FAT filesystem: dd if=/dev/zero of=/dev/sdb bs=1M #I don't need more advanced wiping fdisk /dev/sdb (a few keystrokes to select partition ...
5
votes
1answer
2k views

File system block size differs between different ext4 partitions

we have BBB based custom board with 256MB RAM and 4GB eMMC, I have partitioned it using below code, parted --script -a optimal /dev/mmcblk0 \ mklabel gpt \ mkpart primary 128KiB 255KiB \ ...
3
votes
1answer
19k views

How to clear ext4 filesystem of partition in arch

I'm installing Arch Linux by guide and misinterpreted some stuff about installing the bootloader. Therefore I went back and cleared my /dev/sdb partitions. Before that I made sdb1 as linux filesystem (...
1
vote
1answer
551 views

linux gdisk (on 4TB USB drive) followed my mkfs — but mkfs doesn't see new partitions

I just bought two new 4TB external USB disks for backups http://www.bestbuy.com/site/wd-my-passport-4tb-external-usb-3-0-portable-hard-drive-black/5605533.p that came performatted with a single ...
0
votes
2answers
248 views

/sbin/mkfs.fs acts like a binary file even though it's a symbolic link file

Considering the output from the ls command: $ ls -l /sbin/mkfs.ext4 lrwxrwxrwx 1 root root 6 Aug 4 00:10 /sbin/mkfs.ext4 -> mke2fs $ type mkfs.ext4 mkfs.ext4 is hashed (/sbin/mkfs.ext4) mkfs....
-1
votes
2answers
5k views

mkfs.ext4 -F - how to avoid data loss in the future?

Before we run this mkfs command to create a filesystem on a device, for example /dev/sde: how to know if some data already exist on this device?: mkfs.ext4 -j -m 0 /dev/sde -F I performed the mkfs....
0
votes
2answers
855 views

Newly formatted USB storage device, doesn't mount

I'm having issues with a cheap USB drive I just bought. This is what I've done so far. First, after checking its device id, I wiped it: $ sudo dd status=progress if=/dev/zero of=/dev/sdi 4027441664 ...
2
votes
1answer
2k views

Create a file that's treated like a btrfs file system [duplicate]

I want to do a few experiments on the btrfs file system, but I don't want to make any changes to my existing partitions, and I want full control over things like device size. Is it possible to create ...
1
vote
0answers
247 views

Why mkfs can write the SSD at a speed of 10GB/s

I have an intel SSD 480GB. It's peak write speed is about 300MB/s under various benchmark programs (including dd and programs written by myself). However, when I execute mkfs.ext4 with the option -E ...
3
votes
1answer
15k views

mkfs taking too long

I'm doing data recovery right now from a disk I've extracted from an old NAS. It looks like mkfs.ext3 froze on Writing superblocks and filesystem accounting information: since it's more that one hour ...
1
vote
0answers
588 views

How do I get ext3/ext4 filesystem features to apply in mke2fs?

As many of you know, ext3/ext4 have filesystem features that make up the special functionalities that they have already, some of these features you can get them from "dumpe2fs", for example this ...
1
vote
0answers
36 views

How do I create an img image just big enough to hold one specific file?

I need to create an img disk image (using mkfs.fat) that will contain only one file. I know I need to do this: dd if=/dev/zero of=disk.img bs=1 count=SIZE mkfs.fat disk.img sudo mkdir /tmp/bla sudo ...
1
vote
1answer
485 views

How to format a 16GB pendrive to store only 2GB

I need to produce a custom live Lubuntu version on a 2GB pendrive. But don't have the pen right now, so I need to test it with the 16GB that I have at hand. The system won't start the live version if ...
5
votes
1answer
2k views

How to increase number of inodes at partitioning during installation of Debian?

My system needs a very high number of inodes on the partition because it is going to store many, many small files. (It's going to be an OSM, OpenStreetMap TileServer running mapnik and tirex). As ...
12
votes
2answers
14k views

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 ...
5
votes
2answers
13k views

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 ...
0
votes
1answer
1k views

New SSD USB drive: fdisk doesn't change partitions and mkfs doesn't change format

I have this portable SSD drive that I am trying to format for use with my Raspberry Pi 3: https://www.amazon.com/gp/product/B00N0V4JG2 In the past I have used this exact product, but the 128GB ...
2
votes
2answers
2k views

Excluding bad sectors from list when formatting

I am preparing a old HDD for use with my Pi. But it has >36 bad sectors (avoce threshold). So I ran badblocks to investigate which sectors are affected and saved them to a file. The file now contains ...
0
votes
1answer
1k views

Reformat SD card

I need to reformat an SD card back to factory status. SD card filesystem used for media has become corrupted. Accessing a certain directory causes the filesystem to be remounted readonly, and it ...
5
votes
2answers
1k views

Resizing a virtual hard drive

I found a very nice tutorial on how to create virtual hard disks, and I am considering using these for my work in order to store reliably and portably large datasets with associated processing results....
1
vote
1answer
306 views

What happens if I format a mounted USB drive with --force flag?

It occurred that I typed -F (--force) instead of -f (--fast) while running mkfs.ntfs command. The USB drive was mounted. What are possible consequences to the drive? There's also a message "Hope /etc/...
0
votes
1answer
99 views

Create a new volume on free diskspace from inside Dom0

I have a server with two HDDs (/dev/sda and sdb) with 1.8TB each. On both disks, there is a 500MB Swap and an 800GB partition, that are in a raid md0 and md1: pvs PV VG Fmt Attr PSize ...