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 9th October 2008
tutosun's Avatar
tutosun tutosun is offline
Port Guard
 
Join Date: Jun 2008
Location: Barcelona
Posts: 13
Default mount: /dev/ad1s1d : Operation not permitted

Hi all,

Well the title subject says it all. I inserted another disk into my FreeBSD server and it gives this error when trying to mount it. It is really strange.
I followed the "procedure" by using first fdisk from sysinstall, exit sysinstall, enter sysinstall again and labeling it.

Any help? Thank you very much
Reply With Quote
  #2   (View Single Post)  
Old 9th October 2008
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default

How are you trying to mount the disk - /etc/fstab, as normal user or as root?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #3   (View Single Post)  
Old 9th October 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 need to mount it as root....
also, you need to specify file system, if you are mounting filesystem other than USF

for example
[code]
sudo mount -t ext2fs /dev/da1s1d /mnt
[code]
if ain't got sudo installed and configured, you need to use su to get root access
Reply With Quote
  #4   (View Single Post)  
Old 9th October 2008
tutosun's Avatar
tutosun tutosun is offline
Port Guard
 
Join Date: Jun 2008
Location: Barcelona
Posts: 13
Default

I am trying to mount it as root of course and using the command mount, and as I mentioned in 1st post I used sysinstall for preparing the disk: it is in UFS format.
I searched on the net but didn't find a solution.
Any help? Thank you.
Reply With Quote
  #5   (View Single Post)  
Old 9th October 2008
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default

Can you give us the command line you used? What's the output of
Code:
bsdlabel /dev/ad1s1
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #6   (View Single Post)  
Old 9th October 2008
tutosun's Avatar
tutosun tutosun is offline
Port Guard
 
Join Date: Jun 2008
Location: Barcelona
Posts: 13
Default

Here it is:

Code:
# bsdlabel /dev/ad1s1
# /dev/ad1s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 240107427        0    unused        0     0         # "raw" part, don't edit
  d: 240107427        0    4.2BSD     2048 16384 28552
Thanks for your interest
Reply With Quote
  #7   (View Single Post)  
Old 9th October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

well, since you used Sysinstall to prepare it, it won't hurt to format it again, onlythistime use newfs
Code:
newfs -U /dev/ad1s1
and try again
[this might sound stupid, but maybe you accidentally skipped this step]
Reply With Quote
  #8   (View Single Post)  
Old 9th October 2008
tutosun's Avatar
tutosun tutosun is offline
Port Guard
 
Join Date: Jun 2008
Location: Barcelona
Posts: 13
Default

Very strange:
Code:
# newfs -U /dev/ad1s1
newfs: /dev/ad1s1: failed to open disk for writing
[root@joscar /usr/home/crsn]# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a    496M    129M    328M    28%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s1e    496M     24K    456M     0%    /tmp
/dev/ad0s1f    103G     76G     19G    80%    /usr
/dev/ad0s1d    1.9G    101M    1.7G     6%    /var
/dev/ad1s1d    111G    4.0K    102G     0%    /mnt
[root@joscar /usr/home/crsn]# touch /mnt/test
[root@joscar /usr/home/crsn]# ls /mnt
.snap   test
I dont understand. It was giving that error and now it is mounted. I am very confused. And no, there is not any other person accessing that machine, only exists me there.

I added it to /etc/fstab and rebooted the machine. Everything works fine

Thanks all for yor interest and help,

regards,
Reply With Quote
  #9   (View Single Post)  
Old 9th October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

your problem probably was, that you didn't format your partition



Quote:
Originally Posted by killasmurf86 View Post
well, since you used Sysinstall to prepare it, it won't hurt to format it again, onlythistime use newfs
Code:
newfs -U /dev/ad1s1
and try again
[this might sound stupid, but maybe you accidentally skipped this step]
ups, sorry mate, i somehow misssed d
what i mean was newfs -U /dev/ad1s1d

This, works for you, but as i heard it is recommended to use labels....
i suggest (optional) you label that slice, and make new fs again..... (and correct fstab)
Reply With Quote
Reply

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
mount_nullfs: Operation not supported by device carpman FreeBSD General 1 19th February 2009 05:31 PM
mpd: "Operation not permitted" IIMarckus OpenBSD Packages and Ports 4 29th October 2008 08:10 AM
NFS mount /usr/home? giddyupman FreeBSD General 1 1st September 2008 07:06 PM
Cannot mount (NTFS) IIMarckus OpenBSD General 4 11th August 2008 08:44 PM
Mutex unlock failure: Operation not permitted ccc FreeBSD Ports and Packages 8 16th June 2008 10:46 PM


All times are GMT. The time now is 03:56 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