LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-05-2006, 04:52 PM   #16
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252

Original Poster
Rep: Reputation: 30

Quote:
Originally Posted by Dimitriy
Any hope? OR is the mount command limited?
From what I can tell, the problem is that an iso is not a filesytstem. The mount command cannot create a file system, just interpret it. I think the problem is that we need something that can make an ISO file be interpreted or perceived as a device-filesystem. The mount command cannot do it for us....
 
Old 11-08-2006, 02:45 AM   #17
my.dying.bride
LQ Newbie
 
Registered: Nov 2006
Distribution: Vector Soho Edition 5.1(Best yet)
Posts: 25

Rep: Reputation: 15
If your program does a major minor check this thought will for sure fail. But I was just philosophing ...When you mount it as loop device, assume you get next available loop device :MOUNTED=$(losetup -f), how about having your software pointing to the /dev/$MOUNTED.. The major and minor of this will reflect a loopdev and not a CD or DVD, but then again the underlying file will reflect DVD... I have no idea about it but just a thought.

Last edited by my.dying.bride; 11-08-2006 at 02:47 AM.
 
Old 11-22-2006, 12:04 AM   #18
at2000
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Smile

DVD contents resides on a ISO9660 filesystem. We can have 2 different views of these contents:
  1. An ISO image, i.e. like your hard disk partition.
  2. The individual files (e.g. VOB file), i.e. like the files in yours file system.

The "mount" command allows you to mount the former into the latter, hence it only supports a directory for the second argument. But, you already have the ISO file, and the application also expects an ISO file. So what do you actually want?

First we remove /dev/dvd by "mv /dev/dvd /dev/dvd.bk". Then, 2 possibilities depending on what your application expects:
  1. The application expects the image to be in /dev/dvd. Then, simple. Just "ln -s /path/to/file.iso /dev/dvd", and it is done.
  2. The application expects the image to be in /dev/dvd, plus that it is a device. Then you can use "losetup /dev/dvd /path/to/file.iso". "losetup" is actually what the system does automatically when you do "mount -o loop".

Of course, in both cases, you need to revert /dev/dvd from /dev/dvd.bk after use.
 
Old 12-05-2006, 11:58 PM   #19
amp_man
Member
 
Registered: Feb 2005
Location: Maine
Distribution: Ubuntu
Posts: 59

Rep: Reputation: 16
hey, thanks for the "dvd://path/to/dvd.iso", it worked great for me with xine. It would be awesome if someone patched xine and other media players to be able to open ISOs with this method, through the gui, but then again, there's no real way to tell if an iso is a movie or not. Anyways, I've always just resorted to adding all the files on a mounted iso to a playlist, then seeking through all of it to try and find the actual movie...this is a MUCH better option. Again, Thanks!
 
Old 12-12-2006, 02:06 AM   #20
berteh
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Talking mount iso as a device with mount loop=/dev/cdrom

Quote:
Originally Posted by sadarax
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.

Generally speaking this works well for me:
Code:
sudo mount -t iso9660 -o ro,loop=/dev/cdrom /media/big/big_47.iso /mnt/iso/
you might try with loop=/dev/cdrom ... and eventually remove sudo (depends on your distribution and user rights) ... and eventually do a
Code:
sudo modprobe loop
beforehand if it doesn't work.

hope this helps.

Last edited by berteh; 05-07-2007 at 04:51 AM.
 
Old 08-03-2008, 03:17 AM   #21
nanonyme
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Couldn't find a delete button, the solution I had in mind was mostly covered in the previous losetup post and should work.

Last edited by nanonyme; 08-03-2008 at 03:21 AM. Reason: Not having read the thread to the end.
 
Old 02-02-2011, 11:59 PM   #22
dbrabon
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Found solution to mount DVD for my HP drive

# find suitable mount point
ls /media
# if no dvd then
sudo mkdir -t /media/dvd

# find cd or dvd drive
ls -l /dev | grep cdrom
# will say something like 'lrwxrwxrwx 1 root root 3 2011-02-02 20:40 cdrom -> sr0'
# so use /dev/sr0

# edit /etc/fstab
sudo gedit /etc/fstab
# add line 'DevicePath MountPath FileSystemSwitches'
/dev/sr0 /media/dvd udf,iso9660 user,noauto,exec,utf8 0 0

reboot

# if the cd/dvd is not visible in Nautilus make a shortcut to eject the cd/dvd
# create shell script to toggle cd/dvd eject, save in save place like root of profile /home/ME/dvdToggle.sh
# make sure to put the shebang as the first line in the script #!/bin/sh

#!/bin/sh
eject -T

# Make script executable

# click and drag the executable shell script to the upper menu bar to make a shortcut, change the icon as desired.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration