Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Mar 2014 06:06:17 -0500
From:      ajtiM <lumiwa@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: a big mistake-deleted etc
Message-ID:  <83AFB9BA-0AA8-4E4A-B2EF-08A3F2061D81@gmail.com>
In-Reply-To: <20140301041416.015b5929.freebsd@edvax.de>
References:  <50AC4930-2F20-4CDD-918F-765BBD3A82C5@gmail.com> <20140301041416.015b5929.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
The problem is because I cannot boot in single mode. I use
mountroot>ufs:/dev/my disk and it mounted read only

If I boot Live CD and run:
mount -t ufs -o rw /dev/my disk it cannot find it.

If I use

mountroot>ufs:/dev/my disk o rw=20
than I got error 22.

Thank you.


On Feb 28, 2014, at 10:14 PM, Polytropon <freebsd@edvax.de> wrote:

> On Fri, 28 Feb 2014 12:56:31 -0500, ajtiM wrote:
>> Hi!
>>=20
>> I have a big problem.
>> I did accidental deleted /etc=85 and I cannot start a system.
>> Is it a way that I get /etc back without lost everything, please?=20
>=20
> Usually not. Files deleted from UFS are typically gone.
> You can try to use a tool like photorec (install the
> "testdisk" port) to try to get the _data_ back, but
> the file names will be lost.
>=20
> Another option is to boot from a USB or CD live system
> and to to /usr/src/etc and run "make install". This
> should install the required files into /etc, but you'll
> have to manually adjust some of them, most importantly
> the /etc/fstab file, but also probably the passwd user
> databases (both text and binary).
>=20
> If you're like me, you could have a CVS repository with
> your changes to /etc where you can checkout the lasted
> versions of modified files. :-)
>=20
>=20
>=20
>=20
>=20
>=20
> --=20
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...

Mitja
----
http://www.redbubble.com/people/lumiwa




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83AFB9BA-0AA8-4E4A-B2EF-08A3F2061D81>