You are not logged in.

#1 2015-12-23 14:24:49

Hossein Heydari
Member
From: Iran
Registered: 2015-12-16
Posts: 33

Problem in mounting partions in /mnt

Hi

I wanna install Arch Linux and I used following commands for mounting :

mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda2 /mnt/home

and then :

genfstab -U -p /mnt >> /mnt/etc/fstab

but it sais there is no such file (/mnt/etc/fstab) and after I checked /mnt by (ls) command there are no etc,boot,var and etc there is just lost and found folder there I mounted partions without getting error but they didn't mounted correctly.


what should I do ?

Offline

#2 2015-12-23 14:26:32

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Problem in mounting partions in /mnt

Which guide are you following?

You need to use `pacstrap` to install the filesystem package so that an fstab is present for `genfstab` to modify.

Offline

#3 2015-12-23 15:04:36

Hossein Heydari
Member
From: Iran
Registered: 2015-12-16
Posts: 33

Re: Problem in mounting partions in /mnt

I use Arch wiki.

Offline

#4 2015-12-23 15:06:03

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Problem in mounting partions in /mnt

Hossein Heydari wrote:

I use Arch wiki.

Read it more carefully then wink

https://wiki.archlinux.org/index.php/Beginners'_guide

Offline

#5 2015-12-23 15:30:24

Simone98RC
Member
From: Reggio Calabria, Italy
Registered: 2015-07-22
Posts: 22

Re: Problem in mounting partions in /mnt

Surely you are newbie in Arch installations... welcome!

1) Have you formatted the partitions? If not, before mount anything, you have to do

mkfs.ext4 /dev/sda1 && mkfs.ext4 /dev/sda2

. I guess you would like Ext4 as filesystem, personally I use Btrfs on a single partition with subvolumes (but's more complex than Ext4).

2) You've forgotten to do the command

pacstrap /mnt base

. It installs a basic system inside the selected partition. Obviously you have to do that after the mount process.

3) After installation is completed you can do without any trouble

genfstab -U -p /mnt >> /mnt/etc/fstab

.


Summarize:

mkfs.ext4 /dev/sda1 && mkfs.ext4 /dev/sda2

mount /dev/sda1 /mnt && mkdir /mnt/home && mount /dev/sda2 /mnt/home

pacstrap /mnt base

And you've not finished yet to configure your system, here you find the following steps: https://wiki.archlinux.org/index.php/Be … hange_root

Offline

Board footer

Powered by FluxBB