You are not logged in.

#1 2021-04-24 05:50:39

kiliman
Member
Registered: 2021-04-24
Posts: 2

[SOLVED] Mounting partitions after installation.

Hi,
I have recently installed Arch Linux in my laptop.
Before installing, I had installed Manjaro in disk sda1, and I had stored important files in sda2 and sda3. While installing Arch, I installed EFI system in sda1, root in sda3 and home in sda5, but forget to mount sda2 and sda3.
This is the layout of my disk partition.

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0   700M  0 part /boot/EFI
├─sda2   8:2    0    64G  0 part 
├─sda3   8:3    0 276.8G  0 part 
├─sda4   8:4    0    30G  0 part /
└─sda5   8:5    0  94.3G  0 part /home
sr0     11:0    1  1024M  0 rom  

Now, every time I boot my computer, I have to mount sda2 and sda3 manually in home/file1 and home/file2 mountpoints respectively as follows:

sudo mount /dev/sda2 ~/file1
sudo mount /dev/sda3 ~/file2

How can I permanently mount those partitions in specified mountpoints?

Last edited by kiliman (2021-04-24 07:36:50)

Offline

#2 2021-04-24 06:00:41

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] Mounting partitions after installation.

You do this with the file "/etc/fstab". There's an ArchWiki article "fstab" about it.

Offline

#3 2021-04-24 06:01:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Mounting partitions after installation.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2021-04-24 07:34:32

kiliman
Member
Registered: 2021-04-24
Posts: 2

Re: [SOLVED] Mounting partitions after installation.

Thanks Ropid and jasonwryan. It was pretty easy.

Offline

Board footer

Powered by FluxBB