filesystem problem resolved - /sbin/mount was causing it

2003-03-25 Thread Arie J. Gerszt
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   offsetfstype   [fsize bsize bps/cpg]
  c: 314565930unused0 0 # (Cyl.0 -
31206*)
  e:  419430404.2BSD 1024  819216   # (Cyl.0 -
4161*)
  f: 12582912  41943044.2BSD 1024  819216   # (Cyl. 4161*-
16644*)
  g: 12582912 167772164.2BSD 1024  819216   # (Cyl. 16644*-
29127*)
  h:  2096465 293601284.2BSD 1024  819216   # (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


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: filesystem problem resolved - /sbin/mount was causing it

2003-03-25 Thread Subhro Sankha Kar
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   offsetfstype   [fsize bsize bps/cpg]
  c: 314565930unused0 0 # (Cyl.0 -
31206*)
  e:  419430404.2BSD 1024  819216   # (Cyl.0 -
4161*)
  f: 12582912  41943044.2BSD 1024  819216   # (Cyl. 4161*-
16644*)
  g: 12582912 167772164.2BSD 1024  819216   # (Cyl. 16644*-
29127*)
  h:  2096465 293601284.2BSD 1024  819216   # (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 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]