You are not logged in.

#1 2020-12-21 12:02:13

Bestinbest
Member
Registered: 2020-11-28
Posts: 35

[Solved]Precisions on formating

Hello,

I have problems formatting my disks...

1. I thought the command

 mkfs.ext4 /dev/sda3 

was deleting the data on sda3, but after that I mount /home on sda3 ans it creates no problem, just as if the file was existing. Maybe I didn't really understood what that command is so I would like maybe an explanation if I am wrong.

2. The real problem is that on a post posted a while ago, I asked how to format my sda1 to properly be an EFI system partition, and the answer was to run :

mkfs.fat32 -F32 /dev/sda1

But it doesn't seems to work because when I enter

fdisk -l

the type of /dev/sda1 is still Linux filesystem.

Best regards

Last edited by Bestinbest (2020-12-21 23:47:20)

Offline

#2 2020-12-21 14:08:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved]Precisions on formating

Bestinbest wrote:

... after that I mount /home on sda3 ans it creates no problem, just as if the file was existing.

What does this mean?  You cannot mount a path on a device.  You mount a device on a path.  Assuming you meant you mounted sda3 on /home, that can be done.  But what problem did you expect it to create?  What file did you infer was existing?  How did you make this inference?  What commands did you actually run and what was their output?

Bestinbest wrote:

I asked how to format my sda1 to properly be an EFI system partition, and the answer was to run :

mkfs.fat32 -F32 /dev/sda1

But it doesn't seems to work because when I enter

fdisk -l

the type of /dev/sda1 is still Linux filesystem.

To create an efi partition you need to 1) format it, and 2) assign the proper partition type in the partition table.  Generally these are done in the opposite order, partitioning then formating, but assuming you don't need to change the partition size or placement, it should be fine to change the partition type after the fact.  But again, that's an entirely different process from formatting a partition.  Use fdisk to set the partition type.  This is all clearly covered in the installation guide (and pages linked from it).

As a side note, please edit your first post to give this thread a real title representing your problem / question.

Last edited by Trilby (2020-12-21 14:12:03)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-12-21 14:44:27

Bestinbest
Member
Registered: 2020-11-28
Posts: 35

Re: [Solved]Precisions on formating

Trilby wrote:

This is all clearly covered in the installation guide

Sorry, I misreaded the note on the page, I know it is my fault but I feel more like the installation guide is a memo for people knowing how to do... Anyway I know the forum is here to help so thank you for your time.

Trilby wrote:

What file did you infer was existing?  How did you make this inference?  What commands did you actually run and what was their output?

I had the files of archlinux downloaded from a previous attempt to install it.
I had the problem with the EFI i talked about, and as I wasn't sure of what I had done, I wanted to start from the beginning. So I expected the mount point (/home) to be missing because I hadn't created it yet. But when I entered

 mount /dev/sda3 /home 

nothing came out and with the command lsblk the device is mounted so I suppose it is good and he found the file, and that's the weird point because I supposed the formatting part would erase files.

Last edited by Bestinbest (2020-12-21 14:45:45)

Offline

#4 2020-12-21 14:56:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved]Precisions on formating

Bestinbest wrote:

But when I entered

 mount /dev/sda3 /home 

nothing came out and with the command lsblk the device is mounted so I suppose it is good and he found the file, and that's the weird point because I supposed the formatting part would erase files.

Formatting erased everything on /dev/sda3.  The /home/ directory was on the running filesystem, whether this was this the iso, or an installed system.  Once mounted with that command , there should be no content under /home/ because sda3 was newly formatted.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2020-12-21 15:01:35

Bestinbest
Member
Registered: 2020-11-28
Posts: 35

Re: [Solved]Precisions on formating

Oh I see that explains a lot of things I didn't understood before. Thank you for your helpfull responses

Offline

#6 2020-12-21 19:38:18

GSMiller
Member
Registered: 2020-11-23
Posts: 75

Re: [Solved]Precisions on formating

Bestinbest, it seems you erased everything on your /dev/sda3 partition!


A dog is a man's best friend.

Offline

#7 2020-12-21 19:44:02

Bestinbest
Member
Registered: 2020-11-28
Posts: 35

Re: [Solved]Precisions on formating

Yes I think it is what I wanted to do lol

Offline

#8 2020-12-21 23:42:09

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [Solved]Precisions on formating

Please do not mark a thread [closed] -- that is used by staff when a thread is not open for further replies. If you consider your problem solved, mark it [SOLVED]. If you would like a thread closed or deleted, please use the Report link.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB