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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-18-2005, 03:39 AM
|
#1
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252
Rep:
|
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.
|
|
|
11-18-2005, 03:48 AM
|
#2
|
Member
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464
Rep:
|
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.
|
|
|
12-11-2005, 12:46 AM
|
#3
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252
Original Poster
Rep:
|
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?
|
|
|
12-11-2005, 01:15 AM
|
#4
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
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.
|
|
|
12-27-2005, 04:22 PM
|
#5
|
Member
Registered: Mar 2005
Location: Auckland, New Zealand
Distribution: OpenSuSE, SLE, Yoper, Sabayon
Posts: 69
Rep:
|
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
|
|
|
12-27-2005, 04:57 PM
|
#6
|
Member
Registered: Mar 2005
Location: Auckland, New Zealand
Distribution: OpenSuSE, SLE, Yoper, Sabayon
Posts: 69
Rep:
|
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
|
|
|
01-22-2006, 01:45 PM
|
#7
|
LQ Newbie
Registered: Jan 2006
Posts: 1
Rep:
|
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
|
|
|
01-22-2006, 04:16 PM
|
#8
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252
Original Poster
Rep:
|
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. 
|
|
|
02-10-2006, 03:38 PM
|
#9
|
LQ Newbie
Registered: Dec 2005
Posts: 6
Rep:
|
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. 
|
|
|
02-10-2006, 06:08 PM
|
#11
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Whats wrong with this?
Code:
xine "dvd://path/to/your.iso"
|
|
|
02-10-2006, 07:00 PM
|
#12
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252
Original Poster
Rep:
|
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.
|
|
|
03-23-2006, 11:01 AM
|
#13
|
Member
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294
Rep:
|
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!
|
|
|
07-01-2006, 02:03 AM
|
#14
|
Member
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92
Rep:
|
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.
|
|
|
07-05-2006, 04:46 PM
|
#15
|
Member
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92
Rep:
|
Any hope? OR is the mount command limited?
|
|
|
All times are GMT -5. The time now is 09:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|