I
I
Ivan2020-12-16 09:49:04
linux
Ivan, 2020-12-16 09:49:04

Practical tasks for working with hard drives in Linux?

Actually, in the manuals and guides it is written how to partition a disk into sections, how to install a file system, how to mount disks, etc. Are there actually more practical tasks? Why do this if Linux itself does all this when installing?
What are the typical tasks?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
V
Vladimir Kuts, 2020-12-16
@ivan_minin

There are enough practical tasks:
- clone partitions from one hard drive to another
- change the partition size
- restore the bootloader
- change the file system
- extract data from bad sectors
and much more

X
xmoonlight, 2020-12-16
@xmoonlight

1. Here is a description of the purpose of sections and other things.
2. Here is also a description of the partitions and everything about disk layout.
Well, the answer is simple: if you have specific tasks and "wants", it is much easier to maintain the system in parts.
And as an example of a task, let's say that some of the work files should be encrypted, and some should not. To do this, we need another partition, which we will then mount as a separate folder for working files and save archive copies there through some kind of microservice thread.

A
Anton Shamanov, 2020-12-16
@SilenceOfWinter

try barmin's patch :) about tasks and examples - for basic scripts everything is written in the manuals

A
Alexey Dmitriev, 2020-12-16
@SignFinder

Practically, this is working with LVM - adding, removing, etc.

S
SOTVM, 2020-12-16
@sotvm

+ (to the above written
if you have a server and no graphical mode (only terminal)
generation of the USE ??? )))

V
Vitaly Karasik, 2020-12-16
@vitaly_il1

+1 to the answer Vladimir Kuts .
Additionally - look at the tags, on the toaster almost every day they ask questions related to discs.

S
Saboteur, 2020-12-16
@saboteur_kiev

Why do this if Linux itself does all this when installing?

What do you store on disk?
If only OS, then you have no needs.
If you have a database that requires high iops, or a huge volume, and for example it is a live system, the disk volume needs to be increased, but you cannot stop it.
Or you need to make a backup, and the size is a couple of terabytes, and again you can’t stop - you need to make a backup somewhere and do it quickly, and be able to quickly restore it.
So you start to study what file systems with useful features are, raids, LVM, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question