LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mount as a device: mount dvd-iso file in /dev/dvd (https://www.linuxquestions.org/questions/linux-general-1/mount-as-a-device-mount-dvd-iso-file-in-dev-dvd-384271/)

sadarax 11-18-2005 03:39 AM

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.

okmyx 11-18-2005 03:48 AM

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.

sadarax 12-11-2005 12:46 AM

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?

T.Hsu 12-11-2005 01:15 AM

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.

Marshalle 12-27-2005 04:22 PM

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

Marshalle 12-27-2005 04:57 PM

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

schelkns 01-22-2006 01:45 PM

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

sadarax 01-22-2006 04:16 PM

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. :(

strankan 02-10-2006 03:38 PM

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. :)

sadarax 02-10-2006 04:46 PM

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

cs-cam 02-10-2006 06:08 PM

Whats wrong with this?
Code:

xine "dvd://path/to/your.iso"

sadarax 02-10-2006 07:00 PM

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.

PerfectReign 03-23-2006 11:01 AM

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!

Dimitriy 07-01-2006 02:03 AM

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.

Dimitriy 07-05-2006 04:46 PM

Any hope? OR is the mount command limited?


All times are GMT -5. The time now is 01:12 AM.