Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2008 13:17:20 -0400
From:      Jerry McAllister <jerrymc@msu.edu>
To:        "Paul A. Procacci" <pprocacci@datapipe.com>
Cc:        Fira <muarwi@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: mount: /dev/ad1s1e: Operation not permitted
Message-ID:  <20080313171720.GA12198@gizmo.acns.msu.edu>
In-Reply-To: <47D95552.8040006@datapipe.com>
References:  <465d309c0803122321v7039bfb8l4754846425c9e1f7@mail.gmail.com> <47D95552.8040006@datapipe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 13, 2008 at 11:24:50AM -0500, Paul A. Procacci wrote:

> Fira wrote:
> >Hi list,
> >
> >I want to mount my /dev/ad1s1e, but it produce error output :
> >root# mount /dev/ad1s1e /data1/
> >mount: /dev/ad1s1e: Operation not permitted
> >
> >I've checked my /var/log/messages, but it doesn't show any message related
> >to that.
> >I've fsck that slice, and retried to remount, but it failed again.
> >Then, I add in my fstab this entry :
> >...snip..
> >/dev/ad1s1e             /data1 ufs    rw              2       2
> >
> >and reboot my machine, but still the system didn't want to mount it.
> >
> >This is my bsdlabel output :
> >root# /dev/ad1s1:
> >8 partitions:
> >#        size   offset    fstype   [fsize bsize bps/cpg]
> >  c: 488392002        0    unused        0     0         # "raw" part, 
> >  don't
> >edit
> >  d: 163840000        0    4.2BSD     2048 16384 28552
> >  e: 122880000 163840000    4.2BSD     2048 16384 28552
> >  f: 163840000 286720000    4.2BSD     2048 16384 28552
> >  g: 37832002 450560000    4.2BSD     2048 16384 28552
> >
> >In my understanding, ad1s1e has been formatted into ufs, and I think there
> >should be no problem to mount it.
> >
> >So, where is the point of my mistake?
> >Thanks a lot for your responses.

Hmmm.   It is difficult to know from this, but here are some questions
to check.

First, are you doing the mount command as root or a regular user?
  you generally need to be root unless you set up some extra things.

Second, is /dev/ad1s1e already mounted somethere ?
  run   df -k   and see if it shows up.

Third, what are the ownership and permissions on /data1 ?

Fourth, was newfs run on the /dev/ad1s1e partition?

Note, that /dev/ad1s1e is a partition not a slice.
      the associated slice is ad1s1  (eg without specifying the 'e' partition)
      In FreeBSD, a slice is the primary division of the disk identified by
      the numbers 1..4 and partitions are subdivisions of slices identified
      by letters a..h where 'c' is reserved for system use, 'a' is for root
      on the boot slice but can be anything on other slices and 'b' is 
      commonly used for swap on any drive/slice.

////jerry


> >  
> What's your securelevel?

That is another possible issue if the OP messed around with it.
/jrm

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



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