You are not logged in.

#1 2012-10-17 07:45:39

mmat
Member
Registered: 2012-10-17
Posts: 3

Just installed Arch, can't perform tasks like useradd/pacman [Solved]

Followed the Beginner's Guide step by step. I'm now on the 'Extra'. However I'm running into problems doing anything. The first thing I tried to do was change user password. I got 'Authentication token lock busy'. Tried to add user and got 'cannot lock /etc/passwd/'

I figured out that I could go back into the initial setup, remount the drives, and chroot and then change password/add user. Then - as the guide says- I unmounted them and rebooted.

Now I can't install sudo. I get 'failed to innit transaction: unable to lock database' 'could not lock database: read only file system'

my /etc/fstab says sda1 rw which I thought meant that it was write-able

I can't do pacman -Syy for the same reasons, however I can do it when I chroot and mount from the setup


I followed the Beginners' Guide line by line I believe. But somewhere after unmount and reboot, it quits working.

Last edited by mmat (2012-10-18 06:19:52)

Offline

#2 2012-10-17 07:54:48

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

Post up your entire fstab, that's the most likely place to be an issue.

Offline

#3 2012-10-17 08:02:04

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

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

Hi, and welcome to the forum.

The title is a bit misleading. Is the root read-only, or is useradd/pacman the problem (which both are in the "Install" section, not "Extra") ?


You didn't remove "ro" from syslinux.cfg, did you? Or do you use GRUB?

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

#4 2012-10-18 05:10:02

mmat
Member
Registered: 2012-10-17
Posts: 3

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

DSpider wrote:

Hi, and welcome to the forum.

The title is a bit misleading. Is the root read-only, or is useradd/pacman the problem (which both are in the "Install" section, not "Extra") ?

I'm sorry. This is my very first time ever using linux, so I don't fully get what you're saying about read only root.. I'm not sure what the problem is. I can and did useradd/pacman when I was installing. I finished the install section. I cannot now do the first step on extra.


DSpider wrote:

You didn't remove "ro" from syslinux.cfg, did you? Or do you use GRUB?

I used GRUB because the guide made it sound better.

DSpider wrote:

Post your fstab.

I installed it in VirtualBox. Not sure if that matters.

http://oi46.tinypic.com/21170rb.jpg



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by jasonwryan (2012-10-18 06:03:05)

Offline

#5 2012-10-18 05:19:31

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

It likely won't help, but while you're waiting for other replies: for the root partition ("/") after "rw,relatime" delete the "," and put a space before the "0".  So, it should look like:

/dev/sda1      /     ext4   rw,relatime    0 1

If that doesn't help then please wait for more suggestions.

Edit
For reference, here is my entire /etc/fstab so you can see where my suggestion is coming from:

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

tmpfs		/tmp	tmpfs	nodev,nosuid	0	0

#/dev/sda1
UUID=fbaf7a4b-f113-48d8-a739-fab133aa12b2      	/         	ext4      	rw,relatime	0 1

#/dev/sda3
UUID=4a6661dd-015f-4e7f-96c5-4cba6b97595a      	/home ext4 rw,relatime,noauto,x-systemd.automount	0 2

#/dev/sda2
UUID=d061e4c1-31f6-4454-baf5-026bdce3929a      	none      	swap      	defaults  	0 0

Last edited by headkase (2012-10-18 05:27:01)

Offline

#6 2012-10-18 05:40:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

First time ever using linux and you are starting here?

Offline

#7 2012-10-18 05:59:23

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,048

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

remove the , comma in 'relatime,0' and remplace for a space ' '

Last edited by Jristz (2012-10-18 05:59:38)


Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::

Offline

#8 2012-10-18 06:02:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

Jristz wrote:

remove the , comma in 'relatime,0' and remplace for a space ' '

That's what headkase suggested two posts up...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2012-10-18 06:12:54

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,048

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

Ok I need sleep now is official I not read it

anotetr sugestion is try ot set to defaults in place of yours options
another one is check if permission are correct, I now is stupid since root have read-write acces to all archives, but you not los any serch for it

finaly change you botloader, I read in other arch forum that one user solve a semejant issue changin botloaders


Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::

Offline

#10 2012-10-18 06:16:30

mmat
Member
Registered: 2012-10-17
Posts: 3

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

headkase wrote:

It likely won't help, but while you're waiting for other replies: for the root partition ("/") after "rw,relatime" delete the "," and put a space before the "0".  So, it should look like:

/dev/sda1      /     ext4   rw,relatime    0 1

This worked. Thank you.

However now I cannot ping when I log on (although I can ping when I'm chroot and mounted), so I can't install things still. Can't pacman -Syu while logged on either. Both get unknown host error while logged on.

Offline

#11 2012-10-18 06:18:50

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Just installed Arch, can't perform tasks like useradd/pacman [Solved]

You're welcome.  Ok, now you're onto a network issue.

Start here:

https://wiki.archlinux.org/index.php/Network

Edit your first post in this thread and put "[Solved]" somewhere in the title.  Then if you run into any issues with the network page: start a NEW thread - so there is one topic per thread.

smile

Offline

Board footer

Powered by FluxBB