LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-18-2005, 03:39 AM   #1
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
mount as a device: mount dvd-iso file in /dev/dvd


Hello. I am trying to mount a DVD ISO file that i have in /dev/dvd (which in my case is a symbolic link to /dev/hdc). I get the message /dev/dvd is not a directory. So, is there anyway for me to mount this iso so my computer see it as a device?

I need to do this so I can play the DVD through xine properly. Thanks in advance.
 
Old 11-18-2005, 03:48 AM   #2
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
You need to mount the iso with whats called a loopback device.

Search this forum or google as im sure this question has been asked and answered before.
 
Old 12-11-2005, 12:46 AM   #3
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
I really need some help here. I have searched around a lot and read the whole mount manuel several times. The real problem is that I need to mount an iso somewhere that is not a directory. Specifically, I need to mount the iso in /dev/dvd. The '/dev/dvd' is a symbolic link to my harddrive /dev/hdc.

I tried using the command:

mount -t udf file.iso /dev/dvd -o loop

But it gave me the message: "mount: mount point /dev/dvd is not a directory"

How can I make it mount in a place that is not a directory?
 
Old 12-11-2005, 01:15 AM   #4
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Your mount point should be a directory, while /dev/dvd is a block file. You can use same mount point as your dvd-rom's, eg. /media/dvd.
 
Old 12-27-2005, 04:22 PM   #5
Marshalle
Member
 
Registered: Mar 2005
Location: Auckland, New Zealand
Distribution: OpenSuSE, SLE, Yoper, Sabayon
Posts: 68

Rep: Reputation: 15
Post

I have wondered this also, haven't done a whole lot of research, but the reasoning behind it is that to date there is no software that I know of that will open a raw .iso file for converting to smaller file size and still keeping the DVD structure. When using the mount with loopback option the linux software complains about it not being an actual device or something. Perhaps there is a /dev/loopback which could be used instead of /dev/dvd or /dev/hdc but I haven't actually looked, (guess what I'm doing next). I have a 9GB ISO that would not shrink under DVD shrink in windows so I figured linux would do it, however it doesn't like the ISO file..... yet!

M
 
Old 12-27-2005, 04:57 PM   #6
Marshalle
Member
 
Registered: Mar 2005
Location: Auckland, New Zealand
Distribution: OpenSuSE, SLE, Yoper, Sabayon
Posts: 68

Rep: Reputation: 15
Thumbs up

OK, well what I did is the following. I ran k9copy from a root console (only because I could not remember the command to make a mount available to any user) then I added the device /dev/loop0 to the list of available devices by clicking on the '...' next to the dvd input device. Then I mounted the iso using the command "mount -t iso9660 -o loop /media/usbdisk/myiso.ISO /media/dvdrecorder/" Then I found that k9copy will work. k9copy does however require you have around twice the disk space of your original image so bear that in mind. Hope that helps!

M
 
Old 01-22-2006, 01:45 PM   #7
schelkns
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
Hi, I had the same problem and a useful set of instructions for me was the following (works in Ubuntu Linux):

# Start a loopback device by starting the kernel module
sudo modprobe loop

# Optional: create mount dir
sudo mkdir /mnt/iso

# mount the dvd iso file
sudo mount -t iso9660 -o ro,loop=/dev/loop0 /path/to/isofile.iso /mnt/iso

I hope this is useful. At least for all sudo to root users it is. If you are not allowed to gain root privileges, I am afraid this will not work very well...
But hey! It works for me though

Good luck.

Ruud
 
Old 01-22-2006, 04:16 PM   #8
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Well I appreciate the posts but none of them are what I am looking for. I already know how to mount an iso file into a directory. That's not the problem. I actually have a very slick KDE program that does it for me with a right click.

The real issue is that I really want to mount a DVD iso file into /dev/cdrom so that Xine will read it like a normally DVD. I cannot find a way to mount a file as a device. I suspect that the capabilities of declaring a file as a device are beyond the 'mount' command, so I was hoping someone could tell me a hack or trick to get an iso file to appear as the /dev/cdrom device.

Xine uses /dev/dvd or some other /dev/ variant to play its DVDs, it does not require mounting the media. This is VERY handy, but unless I can mount a directory at /dev/dvd or something, I do not know how to get my dvd iso files to play properly.
 
Old 02-10-2006, 03:38 PM   #9
strankan
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by sadarax
Well I appreciate the posts but none of them are what I am looking for. I already know how to mount an iso file into a directory. That's not the problem. I actually have a very slick KDE program that does it for me with a right click.
Now there's a program I would like to get my hands on. Information please.
 
Old 02-10-2006, 04:46 PM   #10
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by strankan
Now there's a program I would like to get my hands on. Information please.
Program is called Mount-ISO
http://www.kde-apps.org/content/show.php?content=11577
http://freshmeat.net/projects/mount-...ease_id=161665

Yet we still need a program that will mount an iso as a device
 
Old 02-10-2006, 06:08 PM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Whats wrong with this?
Code:
xine "dvd://path/to/your.iso"
 
Old 02-10-2006, 07:00 PM   #12
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by cs-cam
Whats wrong with this?
Code:
xine "dvd://path/to/your.iso"
Wow! Thanks, this is not exactly what I had in mind, but it will do nicely.
 
Old 03-23-2006, 11:01 AM   #13
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Thanks for the cool answer. After trying to load a mounted .iso file, I found this, which works for me, too..

kaffeine "dvd://path/to/my/isofile.iso"

Worked like a charm!
 
Old 07-01-2006, 02:03 AM   #14
Dimitriy
Member
 
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92

Rep: Reputation: 15
Refreshing thread....

Ok I have the same issue.

1. I have a piece of software that will only accept /dev/cdrom as the location for data.

2. Have iso of data.

3. Would like to mount /dev/cdrom using a .iso file. I know how to mount an ISO so I can access just the files.

Code:
Detecting CD-ROM drives... 1 CD-ROM drives found
Trying /dev/cdrom
CD drive /dev/cdrom is not mounted
Program is neocd.
 
Old 07-05-2006, 04:46 PM   #15
Dimitriy
Member
 
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92

Rep: Reputation: 15
Any hope? OR is the mount command limited?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LG DVD+-RW/RAM won't mount after writing DVD (growisofs/k3b) jaws_tas Linux - Hardware 1 03-25-2005 01:52 AM
Unable to mount dvd device on Fedora corpus_delicti Linux - Hardware 8 02-03-2004 09:40 AM
Coudn't open DVD device: /dev/dvd eboggess Linux - Laptop and Netbook 3 10-18-2003 06:02 PM
How to mount DVD-R with long file names? tells Linux - General 1 09-18-2003 06:36 PM
Firewire DVD burner - what device to mount? RWild Linux - General 12 01-21-2003 05:42 PM


All times are GMT -5. The time now is 04:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration