From owner-freebsd-questions@FreeBSD.ORG Mon Dec 18 08:38:01 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84A5716A403 for ; Mon, 18 Dec 2006 08:38:01 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1644043CA2 for ; Mon, 18 Dec 2006 08:38:01 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBI8braw007763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Dec 2006 00:37:53 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBI8bqjQ022472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 18 Dec 2006 00:37:53 -0800 Message-ID: <4586535F.5040806@u.washington.edu> Date: Mon, 18 Dec 2006 00:37:51 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061217) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20061217203138.EFA38E0625@smtp1.galnet.dk> <4585B030.3090809@u.washington.edu> <20061217211130.EC1C8E0600@smtp1.galnet.dk> <4585CD84.4060807@u.washington.edu> <20061218073239.E9100E05B3@smtp1.galnet.dk> In-Reply-To: <20061218073239.E9100E05B3@smtp1.galnet.dk> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.18.2432 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: rm -f doesn't delete symlink X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 08:38:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeppe Bundsgaard wrote: > At 00:06 18-12-2006, you wrote: >> Jeppe Bundsgaard wrote: >>> At 22:01 17-12-2006, you wrote: >>>> Jeppe Bundsgaard wrote: >>>>> >>>>> Hi, >>>>> I am trying to upgrade to FreeBSD 6.1. But when I run installworld >>>>> it halts when trying to create a symlink: /sys. Just before the >>>>> error the script tries to delete the old symlink with: rm -f /sys. >>>>> But this doesn't delete the symlink. >>>>> No flags are set on /sys. >>>>> Anybody got any idea what is wrong? >>>>> Thanks. >>>>> Jeppe >>>> Jeppe, >>>> Try without the -f and see what the error is. -f (in my book at >>>> least) usually evaluates to (yes, quiet) in regular files / symlinks >>>> at least. >>>> -Garrett >>>> _ >>> >>> Garrett, thanks for your answer. >>> >>> -f Attempt to remove the files without prompting for confirmation, >>> regardless of the file's permissions (cf. man rm) >>> >>> even rm -v says nothing. But /sys still exist... >>> Jeppe >> Tried unlink(1)? Shouldn't really have to use it at all, but it could >> solve your problem faster.. >> -Garrett > > Yes, and even if it helped it wouldn't solve the problem that > installworld uses rm -f /sys > Jeppe Well, try it anyhow though, and then try recreating the symlink after the fact, just to see if installworld goes through properly. Also, just out of curiousity (before you unlink the symlink)--what version of FreeBSD are you upgrading from and what are the current permissions / ownership for /sys? My /sys: [gcooper@sprsd ~]$ ls -l / | grep sys lrwxr-xr-x 1 root wheel 11 Dec 17 22:47 sys -> usr/src/sys Cheers, - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFhlNeEnKyINQw/HARAglwAKCpwuxPcJ1SIDzrjoa873TP5REW2QCeOuys Exmg1xcYdR0zwC/EU8n1HZ0= =KnYT -----END PGP SIGNATURE-----