DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default mounting issues???

Hello...i am some What new to freeBSD ( and to open source in general). here is my problem

I am wanting to know a way to restart the drive mountings. When I edit the fstab file I have to reboot for the changes to take effect?

Is there a command to restart the drive mounting process?

P.S: i think if i do sudo mount -a, this will should do the trick, however, when i did this it gave me an error message saying, permission denied"[tcp] operations:/var/log/ehds/combinedServerLogs: Permission denied"
all the permissions for the mount folders are set to true.

P.S 2:# in case you guys need more info here you go. Please help as i am completly stuck!

Device Mountpoint FStype Options Dump Pass#
/dev/da0s1b none swap sw 0 0
/dev/da0s1a / ufs rw 1 1
/dev/da0s1d /var ufs rw 2 2
/dev/da1s1d /clients ufs rw 3 3
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
# {NFS}-->Operations /usr/{src,ports} [HH] 20071204
operations:/usr/guests/src /usr/src nfs rw,tcp 0 0
operations:/usr/ports /usr/ports nfs rw,tcp 0 0
operations:/var/log/ehds/combinedServerLogs /var/log/ehds/combinedServerLogs nfs rw,tcp 0 0

and

usage: fdisk [-BIaipstu] [-b bootcode] [-1234] [disk]
fdisk -f configfile [-itv] [disk]

------------------------------------------------------
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/da0s1d on /var (ufs, local, soft-updates)
operations:/usr/guests/src on /usr/src (nfs)
/dev/da1s1d on /clients (ufs, local, soft-updates)
operations:/usr/ports on /usr/ports (nfs)
Thanks
Reply With Quote
  #2   (View Single Post)  
Old 16th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Quote:
Originally Posted by mt85m View Post
I am wanting to know a way to restart the drive mountings. When I edit the fstab file I have to reboot for the changes to take effect?

Is there a command to restart the drive mounting process?
umount / mount ?
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #3   (View Single Post)  
Old 16th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default

the mount -a command does some sortof a restart to the fstab file, but i run that command it gives me an error message pointing at the line that i entered into the fstab file saying PERMISION DENIED??????

please help as this problem is driving me crazy!
Reply With Quote
  #4   (View Single Post)  
Old 16th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Are you sure you have the required privileges when running this command?
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #5   (View Single Post)  
Old 16th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default

Yes, i am running as root
Reply With Quote
  #6   (View Single Post)  
Old 16th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default

Can any body help
Reply With Quote
  #7   (View Single Post)  
Old 16th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

you want mount -u -o OPTIONS /dev/SLICE
example in single user mode, root is read only
mount -u -o rw /
or
mount -u -o rw /dev/ad0s1a
Reply With Quote
  #8   (View Single Post)  
Old 17th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default

non of thoes commands worked...here is a list of the things that i tryed

[mustafa@ngdev1 ~]$ mount -u -o OPTIONS /dev/SLICE
mount: not currently mounted /dev/SLICE
[mustafa@ngdev1 ~]$ mount -u -o rw /
mount: /dev/da0s1a: Operation not permitted
[mustafa@ngdev1 ~]$ mount -u -o rw /dev/ad0s1a
mount: not currently mounted /dev/ad0s1a
[mustafa@ngdev1 ~]$ mount -u -o rw /operations:/var/log/ehds/combinedServerLogs
mount: not currently mounted /operations:/var/log/ehds/combinedServerLogs
[mustafa@ngdev1 ~]$ mount -u -o rw operations:/var/log/ehds/combinedServerLogs
mount: not currently mounted operations:/var/log/ehds/combinedServerLogs


Any other ideas??
Reply With Quote
  #9   (View Single Post)  
Old 17th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Looks that you are not running those commands as root. Try running them after typing the following command:

Code:
$ su - 
Password:
#
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
Old 17th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default

I got the same exact errors as the user did....it sounds like a simple fix but yet i can not figure it out...
Reply With Quote
Old 17th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

to use mount -u -o Options .....
you need to actually mount drive at first

Replace SLICE with propriate disk slice....
Reply With Quote
Old 17th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Show output of
echo $USER


Are you running freebsd or live CD?
didi you forgot to include UFS driver in kernel?
Reply With Quote
Old 17th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default

[root@ngdev1 ~]# echo $USER
root


I dont understand(sorry but i am new to freeBSD) i created a directory on one server and i am trying to mount it on another server, i edited the fstab file that does the mounting and with the command mount -a i should be able to reload the fstab file to create the new mounting points that i have created; but insted it keeps giving me a permission denied message(i am running as root). and i am not sure what you mean with slice and how that fits into this problem, again sorry for the dumb question but i am running freeBSD and i am new to it.
Reply With Quote
Old 17th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

For better understanding of slices: http://www.freebsd.org/doc/en_US.ISO...ISK-SLICE-PART

On your machine "operations", I suppose you have your NFS server configured. Is your client machine (the one you are running the mount from) allowed to connect in your "exports" file of the NFS server?
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
Old 17th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

you are not root of that machine

P.S. there are no dumb questions, only stupid answers
Reply With Quote
Old 17th July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Operation not permitted
means that the operation is not permitted for whatever reason.
One of them can be to attempt to mount a label which has not been marked clean, and this is not permitted.
Simply do a fsck and try again.
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 17th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by lvlamb View Post
Operation not permitted
means that the operation is not permitted for whatever reason.
One of them can be to attempt to mount a label which has not been marked clean, and this is not permitted.
Simply do a fsck and try again.
No man, he tries to change permissions on remote disk
he have no rights to change disk permissions on remote disk, cause he's not sysadmin on that machine
Reply With Quote
Old 17th July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Please tell me what in my vocabulary, syntax or phrasing is wrong.
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 17th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by lvlamb View Post
Operation not permitted
means that the operation is not permitted for whatever reason.
One of them can be to attempt to mount a label which has not been marked clean, and this is not permitted.
Simply do a fsck and try again.
Quote:
Originally Posted by lvlamb View Post
Please tell me what in my vocabulary, syntax or phrasing is wrong.
fsck remote drive? without root privilage on server?
Reply With Quote
Old 17th July 2008
mt85m mt85m is offline
New User
 
Join Date: Jul 2008
Posts: 8
Default

I got it to work, apparently there was another file called export that sets up permissions that i needed to edit. Thanks and i will let you guys know if i have other quesitons
Reply With Quote
Reply

Tags
/etc/fstab, mount

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB icon after mounting andycapp FreeBSD General 0 23rd October 2008 10:40 PM
Weird NAT issues EvanED FreeBSD General 3 11th July 2008 11:02 PM
Mounting sniper007 FreeBSD General 7 2nd July 2008 06:50 AM
mounting UFS hirohitosan Other BSD and UNIX/UNIX-like 2 27th June 2008 02:40 PM
KVM issues lil_elvis2000 FreeBSD General 5 9th June 2008 07:55 PM


All times are GMT. The time now is 05:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick