18d73 [Solved] mount iso file - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old June 21st, 2009, 07:58
register88 register88 is offline
Junior Member
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default mount iso file

I want mount the dvd.iso file, when i use the mdconfig, it always show this warnings:

root@FreeBSD64/samba/movie# mdconfig -a -t vnode -f Museum2009.iso -u 0
mdconfig: ioctl(/dev/mdctl): Permission denied

root@FreeBSD64/samba/movie# ls -lt /dev/mdctl
crw------- 1 root wheel 0, 71 6 21 09:40 /dev/mdctl

My system is FreeBSD/amd64/7.2-stable.

I can use the virtualbox mount the dvd.iso file to guest OS cdrom drive(and watch the dvd), so i think the problem shall not be the dvd.iso file.

How to mount the dvd.iso file on FreeBSD?

Please help, thank you.
Reply With Quote
  #2  
Old June 21st, 2009, 09:05
mk mk is offline
Member
 
Join Date: Nov 2008
Posts: 300
Thanks: 9
Thanked 16 Times in 17 Posts
Default

first check is dvd.iso already accessed by other process, then change -u 0 let say -u 55 and mount /dev/md55
Reply With Quote
  #3  
Old June 21st, 2009, 09:10
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by register88 View Post
I want mount the dvd.iso file, when i use the mdconfig, it always show this warnings:

root@FreeBSD64/samba/movie# mdconfig -a -t vnode -f Museum2009.iso -u 0
mdconfig: ioctl(/dev/mdctl): Permission denied
Try without using -u. There may already be a /dev/md0.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old June 21st, 2009, 11:00
register88 register88 is offline
Junior Member
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, i tried
mdconfig -a -t vnode -f /samba/movie/Museum2009.iso
and
mdconfig -a -t vnode -f /samba/movie/Museum2009.iso -u 55
the result is same.

mdconfig: ioctl(/dev/mdctl): Permission denied

and my system have not and md[0-9]
ls -l /dev/md*
crw------- 1 root wheel 0, 71 6 21 09:40 /dev/mdctl

Thank you, please help.
Reply With Quote
  #5  
Old June 21st, 2009, 15:01
mk mk is offline
Member
 
Join Date: Nov 2008
Posts: 300
Thanks: 9
Thanked 16 Times in 17 Posts
Default

i receive permission denied when tried to use mdconfig as normal user, are you sure that you are root ?
Reply With Quote
  #6  
Old June 22nd, 2009, 03:23
register88 register88 is offline
Junior Member
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mk View Post
i receive permission denied when tried to use mdconfig as normal user, are you sure that you are root ?
Yes, i'm SURE
Reply With Quote
  #7  
Old June 22nd, 2009, 10:09
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,854
Thanks: 30
Thanked 1,892 Times in 1,335 Posts
Default

Have you tried with -t cd9660?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #8  
Old June 22nd, 2009, 11:06
register88 register88 is offline
Junior Member
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Have you tried with -t cd9660?
What is that mean?
mount_cd9660?
no, i have not tried, can you tell me more, i want to try it.
please help, thank you.
Reply With Quote
  #9  
Old June 22nd, 2009, 11:08
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,854
Thanks: 30
Thanked 1,892 Times in 1,335 Posts
Default

mdconfig(8)

Code:
     To create an md(4) device out of an ISO 9660 CD image file (-a and -t
     vnode are implied), using the first available md(4) device, and then
     mount the new memory disk:

           mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #10  
Old June 22nd, 2009, 11:13
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

What are the permissions on the file you are trying to mount?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #11  
Old June 22nd, 2009, 11:53
register88 register88 is offline
Junior Member
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
mdconfig(8)

Code:
     To create an md(4) device out of an ISO 9660 CD image file (-a and -t
     vnode are implied), using the first available md(4) device, and then
     mount the new memory disk:

           mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
root@/samba/movie# mount -t cd9660 /dev/`mdconfig -f Museum2009.iso` /mnt
mdconfig: ioctl(/dev/mdctl): Permission denied
mount_cd9660: /dev: Block device required

Any idea, it will Permission denied?
ever do it as root.
Reply With Quote
  #12  
Old June 22nd, 2009, 12:01
register88 register88 is offline
Junior Member
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
What are the permissions on the file you are trying to mount?
I'm sure the file system is mount as read and write permissions.
because i can read/write other file in this directory /samba/movie

root@/samba/movie# ls -l Museum2009.iso
-rwxr-xr-x 1 samba samba 4298829824 6 19 00:05 Museum2009.iso

root@/samba/movie# mount -v /samba
//SAMBA@PDC/SHARE on /samba (smbfs, fsid 0cff000a0a000000)
Reply With Quote
  #13  
Old June 22nd, 2009, 12:12
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,854
Thanks: 30
Thanked 1,892 Times in 1,335 Posts
Default

Could you try copying the iso to a local filesystem and mounting from there?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #14  
Old June 23rd, 2009, 03:45
register88 register88 is offline
Junior Member
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry everyone, i know the problem now, the problem is the Museum2009.iso file is readonly.
this command can solve it:
mdconfig -a -t vnode -o readonly -f /samba/movie/Museum2009.iso

Thank all.
Reply With Quote
  #15  
Old June 23rd, 2009, 14:28
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Member
 
Join Date: Nov 2008
Location: Eindhoven, Netherlands
Posts: 794
Thanks: 19
Thanked 123 Times in 93 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Have you tried with -t cd9660?
Quote:
Originally Posted by DutchDaemon View Post
mdconfig(8)

Code:
     To create an md(4) device out of an ISO 9660 CD image file (-a and -t
     vnode are implied), using the first available md(4) device, and then
     mount the new memory disk:

           mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
-t cd9660 is not a valid option for mdconfig(8), this is an option for mount(8), which is very different.

mdconfig just creates a memory disk, it does nothing with filesystems, for example:

Code:
# mdconfig -at vnode -f /ports/INDEX-7 
md0
# head -c 70 /dev/md0
accerciser-1.6.1|/usr/ports/accessibility/accerciser|/usr/local|Intera
As a sidenote, you should probably use UDF for DVD's, not cd9660...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
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
Unzip freebsd 7.2 iso.gz c0mput3r Installing & Upgrading 5 June 7th, 2009 01:35
Where is uncompressed FreeBSD 7.2 ISO? apasajja General 6 June 6th, 2009 23:05
minibsd as iso image mhegazy Userland Programming & Scripting 8 April 27th, 2009 15:02
how to mount iso image without root privilege fender0107401 General 8 March 24th, 2009 08:26
Open file descriptors on a file jostrowski Userland Programming & Scripting 2 March 19th, 2009 02:50


All times are GMT +1. The time now is 11:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0