A
A
Avtandil Kalashnikov2019-07-30 10:34:57
linux
Avtandil Kalashnikov, 2019-07-30 10:34:57

How to increase FS Ext4 inside a file from 2 to 50 MB?

there is a file containing the Ext4 file system
, it is 2 MB in size,
it must be expanded to 50 MB, so that later you can upload files there

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
jcmvbkbc, 2019-07-30
@avtandil

unmount file
resize2fs file 50M

S
Saboteur, 2019-07-30
@saboteur_kiev

If there is nothing on this file system, then just re-create a new file

отмонтировать файл
fallocate -l 50mb myfile
resize2fs myfile
примонтировать файл

R
Radjah, 2019-07-30
@Radjah

truncate to enlarge the file.
resize2fs to increase the size of the fs so that the entire file is used.
> you need to sell computers, so that you have something to live on
https://chtoby-pravilno.ru/chtoby/ Otherwise it hurts your eyes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question