You are not logged in.

#1 2012-09-27 16:03:46

Lilith
Member
From: Sardinia, Italy
Registered: 2012-04-16
Posts: 117

[SOLVED] Several problems after fresh installation

Hi guys,

i just did a fresh installation of arch and every times i must do something i get this error:

cannot remove, read, edit and etc : read-only file system

So i searched for a workaround.. but i must do this after every boot hmm
This is it:

mount -oremount,rw /

There's a way to fix this forever?



Often when i need to edit some files, like /etc/pacman.conf or xorg config file, arch tell me: You do not have write permission to modify... that file

Searched another workaround.. and also this i must do every time after each boot:

sudo chown -R black /directory of file that i'm trying to edit/



I hope to fix this annoying problems, with your help.
Thanks guys,
Gabriele.

Last edited by Lilith (2012-09-28 13:18:46)


#551378
Sky is the limit.

Offline

#2 2012-09-27 16:10:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Several problems after fresh installation

Lilith wrote:

Often when i need to edit some files, like /etc/pacman.conf or xorg config file, arch tell me: You do not have write permission to modify... that file

That's normal, you need to use sudo or edit them as root.
https://wiki.archlinux.org/index.php/Sudo

Offline

#3 2012-09-27 16:22:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Several problems after fresh installation

Have you got ",ro" on the end of your /'s fstab line options?

e.g.

/dev/sda1     /     ext4     defaults,ro          0     1

If so, remove it, or replace it with ",rw".

If you're not sure, post your fstab here.

Last edited by WorMzy (2012-09-27 16:22:39)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2012-09-27 16:22:18

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: [SOLVED] Several problems after fresh installation

Can you post your /etc/fstab? I had this same issue and it turned out my fstab file had not generated. I had to write it and then re-create my user because /home/<username> did not exist.

Bah, Wormzy was 4 seconds faster :-)

Last edited by Rumor (2012-09-27 16:23:48)


Smarter than a speeding bullet
My Goodreads profile

Offline

#5 2012-09-28 09:38:08

Lilith
Member
From: Sardinia, Italy
Registered: 2012-04-16
Posts: 117

Re: [SOLVED] Several problems after fresh installation

@karol yes i know, but this happen also with sudo permissions (ALL by sudoers for my user) and also happen to root account. On my other distribution arch (installed with old method, i haven't never had a problem of permissions.

my fstab:

#
# /etc/fstab: static file system information
#
# <file system> <dir>     <type>     <options>                <dump>    <pass>

tmpfs                    /tmp        tmps        nodev,nosuid             0                0
#UUID=blablablabla
/dev/sda6                  /mnt             ext4                  rw,relatime           0   1

#UUID=blablabla
/dev/sda9                  home            ext4                 rw,relatime            0   2

#UUID=blablabla
/dev/sda5                  boot              ext2                 rw,relatime             0   2

#UUID=blablabla
/dev/sda7                  var                 reiserfs            rw,relatime             0   2

#UUID=blablabla
/dev/sda8                  none              swap                defaults                  0   0


#551378
Sky is the limit.

Offline

#6 2012-09-28 10:07:56

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] Several problems after fresh installation

Try adding a slash preceding the director names to be mounted.

#UUID=blablabla
/dev/sda9    /home    ext4    rw,relatime    0   2

Offline

#7 2012-09-28 10:07:58

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Several problems after fresh installation

Which bootloader do you use? Syslinux? Then you better make sure that you have "ro" in there.

For example:

LABEL arch
        MENU LABEL Arch Linux
        LINUX ../vmlinuz-linux
        APPEND root=UUID=978e3e81-8048-4ae1-8a06-aa727458e8ff ro vga=current loglevel=3 init=/bin/systemd
        INITRD ../initramfs-linux.img

For GRUB you don't need it; it's added automatically when you generate a grub.cfg.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-09-28 10:51:45

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Several problems after fresh installation

Lilith wrote:

...
/dev/sda6                  /mnt             ext4                  rw,relatime           0   1
...

I suspect this is the root of your problem. Is this entry supposed to be for /, or do you really want it mounting in /mnt?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2012-09-28 11:17:31

Lilith
Member
From: Sardinia, Italy
Registered: 2012-04-16
Posts: 117

Re: [SOLVED] Several problems after fresh installation

@thisoldman: i must add a / on every partition (home, root, swap, var and boot)?

No i use GRUB2 guys.

I really don't know, i just followed the beginners guide on wiki and the root is mounted on /mnt.


#551378
Sky is the limit.

Offline

#10 2012-09-28 11:23:02

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

Re: [SOLVED] Several problems after fresh installation

This came up in another recent thread.  /mnt is the problem.  There is no /mnt folder on which to mount to root directory, so that mount fails and the partition remains mounted ro from the bootloader.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2012-09-28 11:37:17

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Several problems after fresh installation

permamounting a partition to /mnt is a really bad idea btw, it sort of breaks the whole point of /mnt


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#12 2012-09-28 11:38:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Several problems after fresh installation

Lilith wrote:

@thisoldman: i must add a / on every partition (home, root, swap, var and boot)?

No i use GRUB2 guys.

I really don't know, i just followed the beginners guide on wiki and the root is mounted on /mnt.

I suspect there is/was a problem with genfstab, which is/was causing this problem.

Change the entry for /mnt to /, and add a preceding / to the home, boot and var entries. (the preceding / not be necessary, but I advise you add it anyway)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#13 2012-09-28 12:00:27

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: [SOLVED] Several problems after fresh installation

Lilith wrote:

I really don't know, i just followed the beginners guide on wiki and the root is mounted on /mnt.



I think the confusion comes from the arch-chroot part of the wiki - for those not familiar (or unwilling to read up on) the whole concept of chroot it can look like 'nix voodoo :-O

Offline

#14 2012-09-28 12:03:18

rasertux
Member
From: Florianópolis, Brazil
Registered: 2012-03-03
Posts: 51

Re: [SOLVED] Several problems after fresh installation

This happened to me a time ago when i tested Windows 8 and when a install arch again i not partitioned my disk, i used mkfs.ext4 in /dev/sda and when the install finished the system are mounted in read only... Please post your "fdisk -l"

Sorry for my english...

Last edited by rasertux (2012-09-28 12:03:56)

Offline

#15 2012-09-28 12:12:59

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [SOLVED] Several problems after fresh installation

Try kernel parameter

rootflags=defaults,rw,relatime

Offline

#16 2012-09-28 12:30:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Several problems after fresh installation

the.ridikulus.rat wrote:

Try kernel parameter

rootflags=defaults,rw,relatime

This is not an ideal solution, as it will prevent routine fscking. Bootloaders mount the root partition as ro so that the initial ramdisk can run fsck, and then remount the partition rw.

Correcting fstab is the way to go.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#17 2012-09-28 13:14:53

Lilith
Member
From: Sardinia, Italy
Registered: 2012-04-16
Posts: 117

Re: [SOLVED] Several problems after fresh installation

Ok guys,

think solved by change my /sda6/ (root) by /mnt to / and adding a slash / before home, boot, var.
Rebooted and try to edit the same file /etc/fstab and no warnings smile

Now is like this:

#
# /etc/fstab: static file system information
#
# <file system> <dir>     <type>     <options>                <dump>    <pass>
tmpfs                    /tmp        tmps        nodev,nosuid             0                0
#UUID=blablablabla
/dev/sda6                  /             ext4                  rw,relatime           0   1
#UUID=blablabla
/dev/sda9                  /home            ext4                 rw,relatime            0   2
#UUID=blablabla
/dev/sda5                  /boot              ext2                 rw,relatime             0   2
#UUID=blablabla
/dev/sda7                  /var                 reiserfs            rw,relatime             0   2
#UUID=blablabla
/dev/sda8                  none              swap                defaults                  0   0


Thanks to everyone smile i also fixed my 2nd problem that i think is related to the first big_smile

Last edited by Lilith (2012-09-28 13:15:43)


#551378
Sky is the limit.

Offline

#18 2012-09-28 13:18:26

Lilith
Member
From: Sardinia, Italy
Registered: 2012-04-16
Posts: 117

Re: [SOLVED] Several problems after fresh installation

To help:

fdisk -l

Disk /dev/sda: 150.0 GB

Device                boot      Start        End             Blocks i        Id                  System
/dev/sda1              *           xx            xxx            xxxxxx           x                 HPFS/NTFS/exFAT
/dev/sda2                           xx           xxx              xxxxx           x                  Extended
/dev/sda5                           xx           xxx              xxxxx           x                  Linux
/dev/sda6                           xx           xxx              xxxxx           x                  Linux
/dev/sda7                           xx           xxx              xxxxx           x                  Linux
/dev/sda8                           xx           xxx              xxxxx           x                  Linux
/dev/sda9                           xx           xxx              xxxxx           x                  Linux

Last edited by Lilith (2012-09-28 13:19:07)


#551378
Sky is the limit.

Offline

#19 2012-09-28 13:27:46

luvfree
Member
Registered: 2012-08-29
Posts: 81

Re: [SOLVED] Several problems after fresh installation

Since this is a "fresh" install I would just start over for a couple of reasons.
One, you've probably already spent more time messing with this than a reinstall would have taken.
Two, something went wrong during the install and who knows what else might have gone wrong.
Did you check your ISO with MD5sum?
Was it the latest install ISO?
If not get a fresh download and try again.


Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!

Offline

#20 2012-09-28 13:32:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Several problems after fresh installation

Reinstalling an entire system to fix mistakes in a single file seems a little extreme to me.. wink


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#21 2012-09-28 13:44:37

luvfree
Member
Registered: 2012-08-29
Posts: 81

Re: [SOLVED] Several problems after fresh installation

Perhaps, but there may be more problems than a single file caused by an IO error just waiting to rear their ugly heads.


Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!

Offline

#22 2012-09-28 13:48:20

Lilith
Member
From: Sardinia, Italy
Registered: 2012-04-16
Posts: 117

Re: [SOLVED] Several problems after fresh installation

I never check the isos but is the latest build available. Downloaded 3 days ago on the morning. Dual iso (x86_64).

Anyway this is the fourth installation of arch, insted with the previously install method (long but more simply in my opinion), i did 2 install of arch. But it was my first time.


#551378
Sky is the limit.

Offline

#23 2012-09-28 13:52:44

luvfree
Member
Registered: 2012-08-29
Posts: 81

Re: [SOLVED] Several problems after fresh installation

hopefully all is well then.
but if you begin to find other problems I would suggest reinstalling with a fresh download.
now is the time before you spend much time setting thing up.
good luck and welcome to arch. big_smile


Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!

Offline

#24 2012-09-28 13:55:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Several problems after fresh installation

luvfree wrote:

Perhaps, but there may be more problems than a single file caused by an IO error just waiting to rear their ugly heads.

Have you seen any evidence that would suggest OP has used a faulty iso?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#25 2012-09-28 14:02:09

luvfree
Member
Registered: 2012-08-29
Posts: 81

Re: [SOLVED] Several problems after fresh installation

yes the fact that this shouldn't have happened.


Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!

Offline

Board footer

Powered by FluxBB