From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 13:29:32 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A846A2EC for ; Wed, 9 Jan 2013 13:29:32 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 34CABF01 for ; Wed, 9 Jan 2013 13:29:32 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id dr1so1175465wgb.3 for ; Wed, 09 Jan 2013 05:29:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=F/dVr8x4AsVLx2v59kwDQp2MOdTxNk8tzRXLtAKFvr0=; b=hEX+2m9a10EtiVOktxCQrN5LtWYUqwwGJwcwJ2Jwvox13HEDC5ns2qfjvJ+dhrPQVZ hIqYKYjpzGgRTJivwwfHdMm4UIYABVfpwjN0w+itunnHFtIX7fLux+0Ve2i62zonlNER b8k7ojkkrHNsO52j/OiASdCuBjMYO7MkiUtCX5Ge7N5wd9RMHCTOQDCj5e6bNtZeaMKW OB0qCMDqanJa/iJVF/2Oat0X0lyTfPtB2AhcQhahcCb42+epqMMOtBBODsOwX5aEQ8od opsAz0xCCXYOV6CPHI90vDJeVRew2sV4tXsMZHIysgjnbFIKIGfMrNF89Swb96bgnySe WPeQ== X-Received: by 10.194.48.74 with SMTP id j10mr10433510wjn.36.1357738170190; Wed, 09 Jan 2013 05:29:30 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id ex6sm4299901wid.3.2013.01.09.05.29.28 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Jan 2013 05:29:29 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: how to change from STABLE to RELEASE? From: Fleuriot Damien In-Reply-To: Date: Wed, 9 Jan 2013 14:29:28 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <41E558E9-D01C-41C6-A5C9-84D7475790F5@my.gd> References: <50ECC745.4020804@a1poweruser.com> To: Antonio Olivares X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQl9MfblKMN9M/W70DjJKfzG0usyEh0e/tnsTX90g1SIx8Og49HIL69pguCpowUe6VeD2Eba Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 13:29:32 -0000 On Jan 9, 2013, at 2:26 PM, Antonio Olivares = 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.