[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to mount filesystem from the Install CD: permission denied ( are you root )



On 20/02/12 14:44, Emmanuel Kasper wrote:
> mount -t ufs /dev/ad0s1 /mnt
> mount:permission denied ( are you root )

Hi!

I just hit this problem myself, and now I know why it randomly happens.

This happens if the filesystem was mounted uncleanly.  Mounting it with
'-o ro' will work.  Or run fsck on the filesystem first to be able to
mount it as normal.


The return value and error message are just confusing.  From a ktrace:

>   2314 busybox  CALL  stat(0xbfbfeead,0xbfbfeb20)
>   2314 busybox  NAMI  "/dev/ada0s1"
>   2314 busybox  STRU  struct stat {dev=1895890689, ino=69, mode=crw-r----- , nlink=1, uid=0, gid=5, rdev=69, atime=1332462782.068292000, stime=1332462782.068292000, ctime=1332462782.068292000, birthtime=-1, size=0, blksize=4096, blocks=0, flags=0x0 }
>   2314 busybox  RET   stat 0
>   2314 busybox  CALL  lstat(0x80847d0,0xbfbfea48)
>   2314 busybox  NAMI  "/mnt"
>   2314 busybox  STRU  struct stat {dev=63, ino=13, mode=drwxr-xr-x , nlink=2, uid=0, gid=0, rdev=9864, atime=1332375799, stime=1325337984, ctime=1332375685, birthtime=-1, size=512, blksize=8192, blocks=2, flags=0x0 }
>   2314 busybox  RET   lstat 0
>   2314 busybox  CALL  nmount(0x8084c38,0x6,0<><invalid>0)
>   2314 busybox  NAMI  "/mnt"
>   2314 busybox  NAMI  "/dev/ada0s1"
>   2314 busybox  RET   nmount -1 errno 1 Operation not permitted
>   2314 busybox  CALL  write(0x2,0x80847d0,0x29)
>   2314 busybox  GIO   fd 2 wrote 41 bytes
>        "mount: permission denied (are you root?)
>        "
>   2314 busybox  RET   write 41/0x29
>   2314 busybox  CALL  exit(0x1)

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org


Reply to: