mount: /dev/ad1s1e: Operation not permitted

Jerry McAllister jerrymc at msu.edu
Thu Mar 13 17:17:12 UTC 2008


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list