Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2013 14:29:28 +0100
From:      Fleuriot Damien <ml@my.gd>
To:        Antonio Olivares <olivares14031@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: how to change from STABLE to RELEASE?
Message-ID:  <41E558E9-D01C-41C6-A5C9-84D7475790F5@my.gd>
In-Reply-To: <CAJ5UdcPO7X8-bKDLXKe3vat1PiP=_Li4Zdw4zAugs2GHR__=gQ@mail.gmail.com>
References:  <CAJ5UdcMr3pWBSM0CPMYxzBsKOpNr7u9jn47GAU=LhhBqtLZN8w@mail.gmail.com> <50ECC745.4020804@a1poweruser.com> <CAJ5UdcMQjb-jSg%2BzcKQ-2AJVdVQH5Vj4NhOm%2B=NhYSKwg4tbcw@mail.gmail.com> <CAJ5UdcNbKqhfnqXd23gv7KZv-HVZn6uL7mmfK87kqECQ8=7uEQ@mail.gmail.com> <CAJ5UdcPO7X8-bKDLXKe3vat1PiP=_Li4Zdw4zAugs2GHR__=gQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jan 9, 2013, at 2:26 PM, Antonio Olivares <olivares14031@gmail.com> =
wrote:

>>> Give this a try
>>>=20
>>> setenv UNAME_r "9.0-RELEASE"
>>> freebsd-update fetch update
>>> freebsd-update upgrade -r 9.1-RELEASE
>>=20
>> Thank you very much!  It seems to be working:
>>=20
>> $ su -
>> Password:
>> %seten UNAME_r "9.0-RELEASE"
>> seten: Command not found.
>> %setenv UNAME_r "9.0-RELEASE"
>> %freebsd-update fetch update
>> usage: freebsd-update [options] command ... [path]
>>=20
>> Options:
>>  -b basedir   -- Operate on a system mounted at basedir
>>                  (default: /)
>>  -d workdir   -- Store working files in workdir
>>                  (default: /var/db/freebsd-update/)
>>  -f conffile  -- Read configuration options from conffile
>>                  (default: /etc/freebsd-update.conf)
>>  -k KEY       -- Trust an RSA key with SHA256 hash of KEY
>>  -r release   -- Target for upgrade (e.g., 6.2-RELEASE)
>>  -s server    -- Server from which to fetch updates
>>                  (default: update.FreeBSD.org)
>>  -t address   -- Mail output of cron command, if any, to address
>>                  (default: root)
>> Commands:
>>  fetch        -- Fetch updates from server
>>  cron         -- Sleep rand(3600) seconds, fetch updates, and send an
>>                  email if updates were found
>>  upgrade      -- Fetch upgrades to FreeBSD version specified via -r =
option
>>  install      -- Install downloaded updates or upgrades
>>  rollback     -- Uninstall most recently installed updates
>>  IDS          -- Compare the system against an index of "known good" =
files.
>> %freebsd-update fetch
>> Looking up update.FreeBSD.org mirrors... 3 mirrors found.
>> Fetching public key from update5.freebsd.org... done.
>> Fetching metadata signature for 9.0-RELEASE from =
update5.freebsd.org... done.
>> Fetching metadata index... done.
>> Fetching 2 metadata files... done.
>> Inspecting system... done.
>> Preparing to download files...
>>=20
>> Will get back to see if it went through all the way!
>>=20
>> Best Regards,
>>=20
>>=20
>> Antonio
>=20
> Dear folks,
>=20
> Everything almost worked.  Now I get some errors.
> /etc/defaults/rc.conf:  18:  Syntax error:  redirection unexpected
> Enter full pathname of shell or RETURN for /bin/sh:
>=20
> I try to edit the file, but I cannot see it I get a readonly file
> system.  There were some mistakes that I could not correct some lines
> like <<<<<< and then =3D=3D=3D=3D=3D=3D=3D were present in the file, =
but vi could
> not allow me to remove them I got error and I wanted to :wq! quickly
> and now I cannot boot.  How can I get into the computer with
> read/write permission to fix this one and a /boot/device.hints error
> that is present here?
>=20
> Thanks for any pointers and help/advice.
>=20
> Regards,
>=20
>=20
> Antonio
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
>=20
> When I reboot I get:
>=20
> Enter full pathname of shell or RETURN for /bin/sh:
> I press enter and try:
>=20
> # mount -a
> mount:  not found
> # mount -urw /
> mount:  not found
> #
>=20
> I try
> # /rescue/vi /etc/defaults/rc.conf
> which is the one that is borked, to fix it and remove the "<<<<" that
> present in there, I get
>=20
> ex/vi:  Error:  /var/tmp/vi.recover:  Read-only file sytem
> ex/vi:  Modifications not recoverable if the session fails
> ex/vi:  Error:  /etc/defaults/rc.conf:  Read-only file sytem
> ex/vi:  Error:  Unable to create temporary file:  Read-only file =
system
>=20
> I can boot the livedvd for FreeBSD 9.1 or 8.2/8.3 series as I have
> them available.  There used to be the fixit command and I could use
> it.  I try the advice in System Administration chapter of handbook,
> but it does not work here :(
>=20
> boot -s
> mount -a
> mount -urw /
>=20
> as found in:
>=20
> http://www.freebsd.org/doc/faq/admin.html#rcconf-readonly
>=20
>=20
> Words of advice and suggestions are greatly appreciated and would get
> me to fix the mess that I started by myself :(
>=20
> Regards,




mount -o rw /


Alternatively boot a livefs CD (or martin matuska's mfsbsd) and mount =
your / partition from there, read-write.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41E558E9-D01C-41C6-A5C9-84D7475790F5>