Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jan 2014 11:10:39 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Aravind Gopal <myaravindg@gmail.com>, questions@freebsd.org
Subject:   Re: problem related to read only file system in single user root login
Message-ID:  <52C93DAF.8090307@FreeBSD.org>
In-Reply-To: <CAO7P0_tfzP5--P9WCp5zR7PhzXH7LTYzCQ4Fs1KScYsAwkdwdw@mail.gmail.com>
References:  <CAO7P0_tfzP5--P9WCp5zR7PhzXH7LTYzCQ4Fs1KScYsAwkdwdw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--KNKgsT28P8WPUmBqtfUTlCB3RtHa96vU3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05/01/2014 09:06, Aravind Gopal wrote:
> Sir,
> Sorry to bother you, I have a severe problem and I failed to solve it
> myself.
> I am new to freebsd and I have average knowledge about Linux.
> What I have done is
> 1) Installed FreeBSD 9.2 amd64(to a system with AMD phenom X4 840)
> 2) Added a normal user(As I don't know about 'wheel' group, 'wheel' gro=
up
> was not added).
> 3) Installed xorg and kde, as described in the handbook.
> 4) restarted and entered in to the normal user(KDE).
> 5) but could not upgrade/update/install new program/mount filesystem fr=
om
> the normal user with kde.
> 6) As From kde loging screen, root login is not allowed.
> 7) restarted and selected the 'single user mode' and logged in to 'root=
'
> 8) as per the documentation I tried to add user to the 'wheel' group us=
ing
> 'pw groupmod'. But failed and the system message was 'read only file
> system'.
>=20
>=20
> As my cpu is amd and the annoying bug in the kernel is fixed in freeBSD=
 10,
> I need to upgrade. also i want to mount other partitions.
>=20
> Frankly speaking I abandoned the pc After the failure of my trouble
> shooting.
>=20
> Do I need to install freeBSD again?
>=20
> please help....
>=20

In order to fix this, you need a root shell.  As you've discovered, on
*BSD your userid needs to be a member of the wheel group in order to use
su(1).  I assume you don't have sudo(8) installed?  Worth checking, but
I doubt you'll get any joy from it, as it needs the sudoers file to be
configured, and I'm sure you'ld remember doing something like that.

So, you need to get a root login.  As you say, KDE doesn't let you login
directly as root.

You may be able to login via the text console.  It depends if your
graphics hardware supports switching back and forth (cards like Nvidia
and Radeon generally do: kernel mode graphics like Intel may not), and
if the command is enabled in your X configuration (it should be, by
default).  Try pressing these three keys all together:

    Ctrl - Alt - F1

If that results in a black screen with some white text, then you're in
luck.  There should be a 'login:' prompt at the bottom of the screen.
If not press return until it appears.  Then login as root, giving the
root password you will have set during the installation process.

You'll get to a root shell running tcsh -- from here you an issue your
pw(8) command to add your userid to the wheel group:

    # pw user mod -n userid -G wheel

You probably also want to run:

    # sysctl vfs.usermount=3D1

and edit /etc/sysctl.conf to add

   vfs.usermount=3D1

so that setting is recreated on reboot.

Now type 'logout' and then Ctrl-Alt-F9 which should get you back to your
KDE session.

If Ctrl-Alt-F1 doesn't get you to a usable console, then booting into
single user as you did previously is the way to go.  Once you get to the
single user shell prompt, type this:

   # mount -u -o rw /

which will remount the root partition read-write.  You can then run
the pw(8) and sysctl(8) commands as shown.  Then type Ctrl-D and the
system will carry on booting up to multi-user.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--KNKgsT28P8WPUmBqtfUTlCB3RtHa96vU3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJSyT23XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATuK4P/3paH9e/RBDR5elgxr+LOupo
nJ0gRQwiHo/ukd2Kk/5PqO2fj/d3RhG0xTHgFq9Yu9gzDvdfCuGgJa+RgNYC09cy
s2jEiiNL8NB4xUD5CPEBfFnBjP6WFb9OkXPhf5xv1lsTX2flOzfg34qjmcT1s4C7
ZN0KyfGG5WF6spmKN98opzQXAKdjgHjGwEwJCEQp0b0DqRaphG7FJwOwelGxe4bk
561Bpa12ChALuZJzWxuehyUJQo3lmyynp7zUy0KGmIeLkaFpLfRQ0cQHd0yRL3so
ShJPsR0kwjCTP+ZjKt7V+Hwo9up4OBf/ha/gIwuc4ZUYwgkvFLMA6oXJJ9Qb23tT
2jNxtBmT1Vmh6YF4ux66lRVVon10pRzG9eI4vT7xqIB6W1Z/LGlV8In2OCs5nIZK
Pa3+oCTEQX2Sj6E8vRVqJsDF3f9O5qPLwJWGBsHNr6nxcvq/g5VcM4UwJuDIPdVm
mUDw/c2GtJGtU9DxUgebLCIT6CMsEoxXUq3JxIc2vYuGyF2KaNIQlauutZnEtjXw
1hza6DlyOnnpWE6YREZTK/TrRKIXssnIUCGfN08UTQAL5V0PxCml/B/mnfHU4PVx
GR07vju9BnzbN9FsrTJTMu2mPzRNXk/pa7UxruZpunNJAw+p8HwfDWqqYmDxNNal
8ylaWBVrGvbwxNSMFtQo
=Dta0
-----END PGP SIGNATURE-----

--KNKgsT28P8WPUmBqtfUTlCB3RtHa96vU3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52C93DAF.8090307>