Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2005 17:12:23 -0400 (EDT)
From:      Chris Hill <chris@monochrome.org>
To:        Paul Clark <paul@pclark.me.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /dev/ad0s1a: Permission denied.
Message-ID:  <20051001170631.E33799@tripel.monochrome.org>
In-Reply-To: <20051001191232.25BA528C1F6@mra01.ch.as12513.net>
References:  <20051001191232.25BA528C1F6@mra01.ch.as12513.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 Oct 2005, Paul Clark wrote:

> I get permission denied when I try to read the label of any partition:
>
> theatlantis# /dev/ad0s1a
>
> /dev/ad0s1a: Permission denied.
>
> I've tried using freesbie live cd and unmounting all of the partitions.
> What's going on?


That is not the way to read a label. Try bsdlabel /dev/ad0s1a.

If you just type the name of the device file (or any other file), the 
system thinks you're trying to execute it. If you do an ls -l on the 
file, you will probably see that it has no execute permissions set, 
which causes the "Permission denied" that you're seeing.

HTH.

--
Chris Hill               chris@monochrome.org
**                     [ Busy Expunging <|> ]



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