You are not logged in.

#1 2012-09-16 15:03:14

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

[SOLVED] Read-only file-system, root.

Hi. I just installed the latest official archlinux 86_64 iso on my second sata.
I reboot and I saw that I dont have internet access so tried to dhcpcd and didnt work.
So I tried to edit some files, as root, like /etc/rc.conf but I get error when I try to save the changes that I make. Read-only file..
Help the noob please!

Last edited by manolos (2012-09-17 12:42:11)

Offline

#2 2012-09-16 15:27:19

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

Re: [SOLVED] Read-only file-system, root.

have you installed sudo?
if not install it and then go to tty1 by pressing ctl+alt+F1 at the same time.
log in as root there and type visudo and hit enter.
this will open/create the sudoers file and edit it as needed.
check the sudo wiki for options.
when prompted save the file and reboot.


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

Offline

#3 2012-09-16 15:35:40

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

luvfree wrote:

have you installed sudo?
if not install it and then go to tty1 by pressing ctl+alt+F1 at the same time.
log in as root there and type visudo and hit enter.
this will open/create the sudoers file and edit it as needed.
check the sudo wiki for options.
when prompted save the file and reboot.

that will be dificult to me cause its not installed. i dont know much about mount a usb (if i download and put a package of sudo in it) and install a package without pacman on internet connection. can you please direct me to links or something?

Offline

#4 2012-09-16 15:37:36

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,911
Website

Re: [SOLVED] Read-only file-system, root.

If you're already logged in as root, sudo is irrelevant.

What is the output of "mount"?


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

#5 2012-09-16 15:50:10

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

damn.. maybe i did something wrong with grub couse the hole filesystem is read-only.. anything to solve this mistake?

EDIT    i see "ro" in /boot/grub/grub.cfg
EDIT2  # mount -n -o remount,rw / did the thing but how can make it permanent?

Last edited by manolos (2012-09-16 16:01:57)

Offline

#6 2012-09-16 16:05:27

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

Re: [SOLVED] Read-only file-system, root.

Hi. I just installed the latest official archlinux 86_64 iso on my second sata.

And which ISO is that? Because the latest official release is dual architecture, not just x86_64.


What, exactly, are you trying to do? Follow the Beginners' Guide and you should be fine.

https://wiki.archlinux.org/index.php/Be … uide#Wired
https://wiki.archlinux.org/index.php/Be … e#Wireless
https://wiki.archlinux.org/index.php/Be … em_or_ISDN

Do you even know what type of internet connection you have?

Dynamic IP? Do you use a username and a password? That would be PPPoE.


"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

#7 2012-09-16 16:05:59

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,911
Website

Re: [SOLVED] Read-only file-system, root.

Check your fstab entry for your root partition. Ignore the ro in grub; that's there so the partition can be safely fscked (if needed).


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

#8 2012-09-16 16:20:46

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

i use wired and i cant configure my eth0.. on the installation i had internet connection without configuring something. i chose from the dual archs the 64bit version. ill check fstab

Last edited by manolos (2012-09-17 02:53:43)

Offline

#9 2012-09-16 17:17:54

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

WorMzy wrote:

Check your fstab entry for your root partition. Ignore the ro in grub; that's there so the partition can be safely fscked (if needed).

fstab looks fine but i see that there is a slash only on /mnt and /tmp. also on startup i get error that the mnt is busy so it mounts /

Offline

#10 2012-09-16 17:20:50

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

damn it im so angry. on virtualbox everything was fine. on my desktop i get so much errors.. if you cant help me ill reinstall and ill close my noob topic. i miss old easy installer

Offline

#11 2012-09-16 17:28:25

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,911
Website

Re: [SOLVED] Read-only file-system, root.

Are you sure you followed the installation procedure correctly? Could you have forgotten to specify /mnt as the root filesystem when running genfstab? Or is /mnt something that you want to be mounded there?


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

#12 2012-09-16 17:39:55

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

Re: [SOLVED] Read-only file-system, root.

Post your fstab.


"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

#13 2012-09-16 21:28:47

ximun
Member
From: Montreal, QC
Registered: 2012-08-14
Posts: 26

Re: [SOLVED] Read-only file-system, root.

manolos wrote:

that will be dificult to me cause its not installed. i dont know much about mount a usb (if i download and put a package of sudo in it) and install a package without pacman on internet connection. can you please direct me to links or something?

On a Linux machine with Internet: Log as root and create a directory in /mnt (e.g. /mnt/usb). Plug the usb device and run 'ls /dev | grep sd' to find the right block device. For example my flash drive usually shows up as sdb1. Then mount the device to the new directory with:

mount /dev/sdX /mnt/usb

where sdX is the block device and usb is the folder name.

Then, to install sudo on your offline box:

Download the latest sudo (x86_64) package here. Copy the tar.xz archive to the mounted usb device. Unmount. Plug into the offline computer. Go through the steps listed above to mount the device. Finally:

pacman -U /path/to/sudo/package/ending/with/tar.xz

P.s. Errors are expected, this distro is not for the faint-hearted.


"The problem is, after a week of intense googling, we’ve started to burn out on knowing the answer to everything. God must feel that way all the time. I think people in the year 2020 are going to be nostalgic for the sensation of feeling clueless." Douglas Coupland - jPod

Offline

#14 2012-09-16 23:33:53

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,143

Re: [SOLVED] Read-only file-system, root.

@ximun,
Did you not read WorMzy's post? The OP is already logged in as root. There is no need to install sudo and installing sudo will not resolve the issues the OP is experiencing. sudo is irrelevant. It is not needed here.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#15 2012-09-17 00:46:33

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

DSpider wrote:

Post your fstab.

tmpfs    /tmp   tmpfs   nodev,nosuid   0   0
/dev/sdb2    /mnt     ext4    rw,relatime,data=ordered   0   2
/dev/sdb1    boot     ext4    rw,relatime,data=ordered   0   2
/dev/sdb5    var       ext4    rw,relatime,data=ordered   0   2
/dev/sdb6    home   ext4    rw,relatime,data=ordered   0   2

Offline

#16 2012-09-17 00:54:56

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

DSpider wrote:

Hi. I just installed the latest official archlinux 86_64 iso on my second sata.

And which ISO is that? Because the latest official release is dual architecture, not just x86_64.


What, exactly, are you trying to do? Follow the Beginners' Guide and you should be fine.

https://wiki.archlinux.org/index.php/Be … uide#Wired
https://wiki.archlinux.org/index.php/Be … e#Wireless
https://wiki.archlinux.org/index.php/Be … em_or_ISDN

Do you even know what type of internet connection you have?

Dynamic IP? Do you use a username and a password? That would be PPPoE.

everythings fine with internet access thank you. the filesystem problem resists... sad

Last edited by manolos (2012-09-17 02:55:10)

Offline

#17 2012-09-17 01:48:30

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

Re: [SOLVED] Read-only file-system, root.

*puzzled*
Your root partition isn't in fstab?

I'm a bit surprised this boots at all.  I suppose the root partition is never remounted during the init process, but it remains mounted read-only from your boot loader.  Add your root partition to fstab so it is remounted normally during init.

Last edited by Trilby (2012-09-17 01:51:50)


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

Offline

#18 2012-09-17 02:10:41

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

Trilby wrote:

*puzzled*
Your root partition isn't in fstab?

I'm a bit surprised this boots at all.  I suppose the root partition is never remounted during the init process, but it remains mounted read-only from your boot loader.  Add your root partition to fstab so it is remounted normally during init.

Like This?
/dev/sdb4     root     ext4    rw,relatime,data=ordered   0 2

EDIT there is no sdb4 should i resize a partition and add to make it root? there are only sdb1,2,3swap,5,6

Last edited by manolos (2012-09-17 02:13:43)

Offline

#19 2012-09-17 02:52:45

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

Trilby wrote:

*puzzled*
Your root partition isn't in fstab?

I'm a bit surprised this boots at all.  I suppose the root partition is never remounted during the init process, but it remains mounted read-only from your boot loader.  Add your root partition to fstab so it is remounted normally during init.


https://www.dropbox.com/s/6dzyqzkystyey … 054810.jpg

check out the error on /mnt

Offline

#20 2012-09-17 02:58:23

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

Re: [SOLVED] Read-only file-system, root.

So sdb2 is your root partition?  That screen photo would suggest that it is. If so, then why are you trying to mount it as /mnt?

You should also not mount it as "root".  Mount it as follows:

/dev/sdb2     /     ext4    rw,relatime,data=ordered   0 1

*note I'm not familiar with all those mount options but the relevant part for the present discussion is the second column.  I aslo changed the last 2 to 1 which it should be for the root partition (AFAIK).

Edit: is there also an sdb7 in your fstab?  It is being fsck'ed.

Last edited by Trilby (2012-09-17 03:00:04)


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

Offline

#21 2012-09-17 03:14:26

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

Trilby wrote:

So sdb2 is your root partition?  That screen photo would suggest that it is. If so, then why are you trying to mount it as /mnt?

You should also not mount it as "root".  Mount it as follows:

/dev/sdb2     /     ext4    rw,relatime,data=ordered   0 1

*note I'm not familiar with all those mount options but the relevant part for the present discussion is the second column.  I aslo changed the last 2 to 1 which it should be for the root partition (AFAIK).

Edit: is there also an sdb7 in your fstab?  It is being fsck'ed.

thanks for helping me. i made a partition sdb7 if i ever needed. if i change it to-> /dev/sdb2     /     ext4    rw,relatime,data=ordered   0 1 then what do i do with /mnt?

Offline

#22 2012-09-17 03:15:53

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

Re: [SOLVED] Read-only file-system, root.

WTF is /mnt?

What is your partitioning scheme?  Do you have a separate partition for /mnt?  Is that sdb7?

Sorry if this sounded abrupt - but we can help with making sure your fstab is appropriately formatted to do what you want it to do - but you first have to be clear on what you want it to do.  If you could describe your parition scheme (all the partitions, which ones arch should use, and what each one is for) then this will be much easier to clarify.

I doubt /mnt is a separate partition.  I could be - but that would seem rather foolish to me as it is a directory that is designed to not actually store anything - it is a mount point for *other* partitions (flash drives and the like).  In every arch setup I've seen /mnt is just a directory on the root partition.  Are you confusing names/terminology?

Last edited by Trilby (2012-09-17 03:28:35)


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

Offline

#23 2012-09-17 03:57:54

manolos
Member
From: Athens, Greece
Registered: 2009-06-06
Posts: 117

Re: [SOLVED] Read-only file-system, root.

Trilby wrote:

WTF is /mnt?

What is your partitioning scheme?  Do you have a separate partition for /mnt?  Is that sdb7?

Sorry if this sounded abrupt - but we can help with making sure your fstab is appropriately formatted to do what you want it to do - but you first have to be clear on what you want it to do.  If you could describe your parition scheme (all the partitions, which ones arch should use, and what each one is for) then this will be much easier to clarify.

i have no f-idea!! dont yell at me LOL!! hahaha ok that worked!!! thank you very much sir

Offline

#24 2012-09-17 05:47:31

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

Re: [SOLVED] Read-only file-system, root.

manolos wrote:

tmpfs    /tmp   tmpfs   nodev,nosuid   0   0
/dev/sdb2    /mnt     ext4    rw,relatime,data=ordered   0   2
/dev/sdb1    boot     ext4    rw,relatime,data=ordered   0   2
/dev/sdb5    var       ext4    rw,relatime,data=ordered   0   2
/dev/sdb6    home   ext4    rw,relatime,data=ordered   0   2

That is not a proper fstab. Read the fstab wiki page for examples. You don't need "rw" and "data=ordered" in there, and they don't all need "2" at the end. Also, your mount points are messed up. They need to be /boot, /, /var, /home. Not like they are now.

Use a "live" Linux distribution, mount the root partition to /mnt and run:

# nano /mnt/etc/fstab

Then make them look like the examples, and don't forget to mark the topic as solved (by editing the first post).


"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

Board footer

Powered by FluxBB