You are not logged in.
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 ![]()
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
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
Have you got ",ro" on the end of your /'s fstab line options?
e.g.
/dev/sda1 / ext4 defaults,ro 0 1If 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
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
@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
Try adding a slash preceding the director names to be mounted.
#UUID=blablabla
/dev/sda9 /home ext4 rw,relatime 0 2Offline
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.imgFor GRUB you don't need it; it's added automatically when you generate a grub.cfg.
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
...
/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
@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
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
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
@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
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
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
Try kernel parameter
rootflags=defaults,rw,relatimeOffline
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
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 ![]()
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
i also fixed my 2nd problem that i think is related to the first ![]()
Last edited by Lilith (2012-09-28 13:15:43)
#551378
Sky is the limit.
Offline
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
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
Reinstalling an entire system to fix mistakes in a single file seems a little extreme to me.. ![]()
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
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
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
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. ![]()
Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!
Offline
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
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