You are not logged in.

#1 2008-07-05 03:20:38

ravinggenius
Member
Registered: 2008-07-04
Posts: 7

[SOLVED] Fresh install read only file system

I just did a fresh install of Arch this morning, and I have been trying to fix it most of the day. I was following the Beginner's Guide in the wiki as close as I could. (There were a couple items that didn't quite match up.) I only edited the files that it told me to, and then just minor edits. I checked out /etc/fstab during the process and noticed that none of my hard drives were present. I didn't think this was normal, so I opened another terminal and grabbed the UUIDs with ls -l /dev/disk/by-uuid/. I have two hard drives, but only sda1 (/) and sda2 (swap) showed up. (sdb1 is the entire second hard drive as /home.) Here is the default fstab:

# 
# /etc/fstab: static file system information
#
# <file system>                                         <dir>         <type>    <options>                 <dump> <pass>
none                                                    /dev/pts      devpts    defaults                   0      0
none                                                    /dev/shm      tmpfs     defaults                   0      0

/dev/cdrom                                              /media/cd     auto      ro,user,noauto,unhide      0      0
/dev/dvd                                                /media/dvd    auto      ro,user,noauto,unhide      0      0
/dev/fd0                                                /media/fl     auto      user,noauto                0      0

The example documentation indicated that the file should have lines similair to...

/dev/disk/by-uuid/6334340b-87f1-406e-a777-13210ba85887  /             ext3      defaults,noatime,nodirtime 0      1
/dev/disk/by-uuid/5ffd6a40-6d72-4710-82af-ae894e557f89  swap          swap      defaults                   0      0
/dev/disk/by-uuid/32935c6c-6b75-4039-6b69-21f8b805e8f8  /home         ext3      defaults,noatime,nodirtime 0      2

...but then I found an example while searching around that showed the lines like this:

UUID=6334340b-87f1-406e-a777-13210ba85887  /             ext3      defaults,noatime,nodirtime 0      1
UUID=5ffd6a40-6d72-4710-82af-ae894e557f89  swap          swap      defaults                   0      0
UUID=32935c6c-6b75-4039-6b69-21f8b805e8f8  /home         ext3      defaults,noatime,nodirtime 0      2

In the first scenario, everything boots like normal, but when I tried to do anything that required writing to disk, the operation failed with a message about the file system being read-only. (I was trying to edit some config files because I couldn't get online.) Mind you, I was working as root the whole time, because I hadn't even gotten to adding a user yet. The only way I could make changes was to boot a live cd, mount, edit, reboot. remember to remove the live cd, reboot again, repeat.

In the second version of fstab, the bootup process kept trying to check the disk for errors. When it was done it wanted to reboot. Then it tried to check again (presumably because it couldn't save the fact that it had already checked).

I am at a loss. I really wish to use Arch Linux. I've been baby-fed for quite a while on Ubuntu, but it always ran slow. Please somebody help me! I am happy to provide more information; just let me know what you need.

Last edited by ravinggenius (2008-07-05 18:33:22)

Offline

#2 2008-07-05 12:30:26

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: [SOLVED] Fresh install read only file system

Im also new to arch and dont know much abt it.....but it would help if u can post the output of mount...


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#3 2008-07-05 13:44:33

ravinggenius
Member
Registered: 2008-07-04
Posts: 7

Re: [SOLVED] Fresh install read only file system

It gets mounted when the system gets booted up. It load they os and lets me login, so it seems to be mounting fine.

I get no errors when mounting from the live cd.

Offline

#4 2008-07-05 15:10:12

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED] Fresh install read only file system

I looked at man mount, and the option seems to be nodiratime, not nodirtime.

Offline

#5 2008-07-05 17:01:13

ravinggenius
Member
Registered: 2008-07-04
Posts: 7

Re: [SOLVED] Fresh install read only file system

Thanks for pointing out the typo. Which format should I use?

UUID=6334340b... or /dev/disk/by-uuid/6334340b...

Is there a preference? Does it matter?

Offline

#6 2008-07-05 18:32:13

ravinggenius
Member
Registered: 2008-07-04
Posts: 7

Re: [SOLVED] Fresh install read only file system

Thank you so much for pointing out that typo! Turns out that is what was wrong. Well plus two of uuids had one typo each....

Also from what I can tell it doesn't matter which format I use for the uuids in fstab. I will use the UUID=xxxxx... version unless somebody can tell me why I shouldn't.

Offline

Board footer

Powered by FluxBB