Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2003 02:18:12 -0500
From:      "Subhro Sankha Kar" <subhro@indiashells.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: filesystem problem resolved - /sbin/mount was causing it
Message-ID:  <20030326071812.86400.qmail@webhosting1.macroshell.com>
In-Reply-To: <FEEHKMHBPPGLAPHJCDIIAEOPCFAA.arie@gerszt.ch> 
References:  <FEEHKMHBPPGLAPHJCDIIAEOPCFAA.arie@gerszt.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
Arie J. Gerszt writes: 

> Hi Everybody 
> 
> The problem cleared out. I now know what, but not why :) For those of you
> interested.
> I have a 2nd disk in the machine (ad3) which has a backup parition (ad3f).
> This partition
> is mounted to a mountpoint (guess: in root) to /mnt/vol1. 
> 
> For strange reasons (who knows why?) mount fails (see below), therefor the
> volume gets
> not mounted and the backup sits in the mountpoint directory, filling up...
> /. 
> 
> Btw: I moved all /modules /sbin /bin to their right places back. 
> 
> Now the mount fails as showed here. The backup partition is not mountalbe,
> but another,
> on the same disk, is... 
> 
> 	caramba# mount /dev/ad3f /mnt/vol1
> 	mount: /dev/ad3f: Operation not permitted
> 	caramba# mount /dev/ad3f /backup/slice1
> 	mount: /dev/ad3f: Operation not permitted
> 	caramba# 
> 
> here another partition: 
> 
> 	caramba# mount
> 	/dev/ad0s1a on / (ufs, local)
> 	/dev/ad0s1e on /usr (ufs, local)
> 	/dev/ad0s1g on /usr/www (ufs, local)
> 	/dev/ad0s1f on /var (ufs, local)
> 	procfs on /proc (procfs, local)
> 	/dev/ad3e on /mnt/vol1 (ufs, local) 
> 
> 	caramba# umount /mnt/vol1/
> 	caramba# 
> 
> the disklabel entry: 
> 
> caramba# disklabel ad3
> # /dev/ad3c:
> type: ESDI
> disk: ad3s1
> label:
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 16
> sectors/cylinder: 1008
> cylinders: 31206
> sectors/unit: 31456593
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0 
> 
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c: 31456593        0    unused        0     0         # (Cyl.    0 -
> 31206*)
>   e:  4194304        0    4.2BSD     1024  8192    16   # (Cyl.    0 -
> 4161*)
>   f: 12582912  4194304    4.2BSD     1024  8192    16   # (Cyl. 4161*-
> 16644*)
>   g: 12582912 16777216    4.2BSD     1024  8192    16   # (Cyl. 16644*-
> 29127*)
>   h:  2096465 29360128    4.2BSD     1024  8192    16   # (Cyl. 29127*-
> 31206*)
> caramba# 
> 
> 
> --> no, i can stop backups for the moment, or repoint them to another
> partition, e.g.
> ad3g, but why does mount not work on that respectively give "operation not
> permitted"? 
> 
> Thanks
> Arie

Hi,
Are you trying to mount the backup volume as root? By default only root is 
allowed to mount and unmount volumes. Also check if the mount pouint is 
having write permissions when you try to mount the volume. 

Subhro Sankha Kar
IIIT-Calcutta 



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