LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-06-2006, 10:55 AM   #1
lord_didger
Member
 
Registered: Jun 2005
Location: Poland
Distribution: Debian
Posts: 101

Rep: Reputation: 15
mounting CD/DVD images


Hi,
I wanted to mount DVD image like *.iso. I typed
mount -t iso9660 -o loop *.iso /mnt/iso
and received
mount: it is not directory
I thought that something is wrong with the image so i tried to do the same with another file. It looked like *.bin. I typed
mount -t iso9660 -o loop *.bin /mnt/iso
and receive
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

How can I mount CD/DVD images in Linux? I looked through the Internet, man mount and tried all suggested commands. I use Debian etch

Last edited by lord_didger; 11-06-2006 at 10:57 AM.
 
Old 11-06-2006, 11:09 AM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
have you tried "mount -o loop *.iso /mnt/iso"
 
Old 11-06-2006, 11:12 AM   #3
lord_didger
Member
 
Registered: Jun 2005
Location: Poland
Distribution: Debian
Posts: 101

Original Poster
Rep: Reputation: 15
Yes, I have. I have got the same
 
Old 11-06-2006, 11:28 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 57
Quote:
Originally Posted by lord_didger
Hi,
I wanted to mount DVD image like *.iso. I typed
mount -t iso9660 -o loop *.iso /mnt/iso
and received
mount: it is not directory
I thought that something is wrong with the image so i tried to do the same with another file. It looked like *.bin. I typed
mount -t iso9660 -o loop *.bin /mnt/iso
and receive
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

How can I mount CD/DVD images in Linux? I looked through the Internet, man mount and tried all suggested commands. I use Debian etch
Well does the mount (/mnt/iso) point actually exist? As well you should use the real name of the .iso image not a * in it.
 
Old 11-06-2006, 11:34 AM   #5
lord_didger
Member
 
Registered: Jun 2005
Location: Poland
Distribution: Debian
Posts: 101

Original Poster
Rep: Reputation: 15
/mnt/iso exist and there is no difference between command with full name and command with '*'. I have checked it a few times

Last edited by lord_didger; 11-06-2006 at 11:36 AM.
 
Old 11-06-2006, 11:56 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 57
Quote:
Originally Posted by lord_didger
/mnt/iso exist and there is no difference between command with full name and command with '*'. I have checked it a few times
Well there certainly is a difference using an * in the command you are telling it to mount all .iso images in the current directory to a single mount point that will not work if more than one is there. As for the other part if the mount point exists I'm out of ideas it works fine on my Etch/Sid mixed install.

Code:
HappyTux:/home/stephen/archives/isoimages# mkdir test
HappyTux:/home/stephen/archives/isoimages# ll
total 306657
-rw-r--r-- 1 root    root      1474560 2006-08-16 17:21 av8.iso
-rw-r--r-- 1 stephen stephen 113893376 2006-09-03 11:45 debian-31r2-i386-netinst.iso
-rw-r--r-- 1 stephen stephen   1474560 2004-09-11 13:31 dosboot.img
-rw-r--r-- 1 stephen stephen   1474560 2005-03-11 21:23 fat32.img
-rw-r--r-- 1 stephen stephen   1474560 2004-08-20 19:02 powermax-4.09.img
-rw-r--r-- 1 stephen stephen 193921024 2006-08-16 17:00 sarge-custom-0801.iso
drwxr-xr-x 2 root    root           48 2006-11-06 13:27 test
HappyTux:/home/stephen/archives/isoimages# mount -o loop sarge-custom-0801.iso test
HappyTux:/home/stephen/archives/isoimages# ll test
total 85
-r--r--r-- 1 root root    60 2005-06-12 19:11 autorun.bat
-r--r--r-- 1 root root    29 2005-06-12 19:11 autorun.inf
lr-xr-xr-x 1 root root     1 2006-07-22 00:14 debian -> .
dr-xr-xr-x 3 root root  2048 2005-06-12 19:11 dists
dr-xr-xr-x 3 root root  2048 2005-06-12 19:11 doc
dr-xr-xr-x 3 root root  2048 2006-07-22 01:18 install
dr-xr-xr-x 2 root root  4096 2006-08-01 19:53 isolinux
-r--r--r-- 1 root root 34493 2005-06-12 19:12 md5sum.txt
dr-xr-xr-x 2 root root  2048 2005-06-12 19:11 pics
dr-xr-xr-x 3 root root  2048 2005-06-12 19:11 pool
-r--r--r-- 1 root root 10315 2005-06-12 19:11 README.html
-r--r--r-- 1 root root 10016 2005-06-12 18:15 README.mirrors.html
-r--r--r-- 1 root root  7873 2005-06-12 18:15 README.mirrors.txt
-r--r--r-- 1 root root  5271 2005-06-12 19:11 README.txt
dr-xr-xr-x 3 root root  2048 2005-06-12 19:11 tools
HappyTux:/home/stephen/archives/isoimages# umount test
HappyTux:/home/stephen/archives/isoimages# mount -o loop *.iso test
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
 
Old 11-06-2006, 01:24 PM   #7
lord_didger
Member
 
Registered: Jun 2005
Location: Poland
Distribution: Debian
Posts: 101

Original Poster
Rep: Reputation: 15
I have only one iso in my directory. I did exacly the same what you did
Quote:
lord:/mnt/pocket/download/sth# ls
abc.iso
lord:/mnt/pocket/download/sth# mkdir test
lord:/mnt/pocket/download/sth# ls -l
-rw-r--r-- 1 lorddidger lorddidger 3,6G 2006-11-06 14:54 rzr-nfsc.iso
drwxr-xr-x 2 root root 4,0K 2006-11-06 20:41 test
lord:/mnt/pocket/download/sth# mount -o loop abc.iso test
mount: It is not directory
The file is located on /mnt/pocket. mount says
Quote:
lord:/home/lorddidger# mount
/dev/hda2 on / type ext3 (rw,noatime,nodiratime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda3 on /home type ext3 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/hdc1 on /mnt/pocket type ext3 (rw,noexec,nosuid,nodev,noatime,nodiratime,user=lorddidger)
I copied the file into ~ and then did the same operations
Quote:
lord:/home/lorddidger# mkdir test
lord:/home/lorddidger# mount -o loop abc.iso test
mount: Nie jest katalogiem
lord:/home/lorddidger# ls -lh
razem 3,6G
-rw-r--r-- 1 lorddidger lorddidger 26 2006-11-05 00:56 do_instalacjii-flash
-rw-r--r-- 1 lorddidger lorddidger 2,0K 2006-11-05 00:48 lista.m3u
-rw-r--r-- 1 lorddidger lorddidger 1,3K 2006-11-05 14:00 path
-rw-r--r-- 1 lorddidger lorddidger 3,7M 2006-11-04 19:23 quicktime4linux-2.0.0-s
rc.tar.bz2
-rw-r--r-- 1 lorddidger lorddidger 3,6G 2006-11-06 20:49 abc.iso
-rw-r--r-- 1 lorddidger lorddidger 84K 2006-11-04 01:20 search.php
drwxr-xr-x 2 root root 4,0K 2006-11-06 20:50 test
-rw-r--r-- 1 lorddidger lorddidger 360K 2006-11-06 14:46 wine.pdf
-rw-r--r-- 1 lorddidger lorddidger 984K 2006-11-05 01:08 zabawa.xcf
-rw-r--r-- 1 lorddidger lorddidger 95K 2006-11-06 15:08 zadanie.doc
-rw-r--r-- 1 lorddidger lorddidger 20K 2006-11-06 15:08 zadanie.pdf
lord:/home/lorddidger# chown lorddidger: test
lord:/home/lorddidger# ls -lh
razem 3,6G
-rw-r--r-- 1 lorddidger lorddidger 26 2006-11-05 00:56 do_instalacjii-flash
-rw-r--r-- 1 lorddidger lorddidger 2,0K 2006-11-05 00:48 lista.m3u
-rw-r--r-- 1 lorddidger lorddidger 1,3K 2006-11-05 14:00 path
-rw-r--r-- 1 lorddidger lorddidger 3,7M 2006-11-04 19:23 quicktime4linux-2.0.0-s
rc.tar.bz2
-rw-r--r-- 1 lorddidger lorddidger 3,6G 2006-11-06 20:49 abc.iso
-rw-r--r-- 1 lorddidger lorddidger 84K 2006-11-04 01:20 search.php
drwxr-xr-x 2 lorddidger lorddidger 4,0K 2006-11-06 20:50 test
-rw-r--r-- 1 lorddidger lorddidger 360K 2006-11-06 14:46 wine.pdf
-rw-r--r-- 1 lorddidger lorddidger 984K 2006-11-05 01:08 zabawa.xcf
-rw-r--r-- 1 lorddidger lorddidger 95K 2006-11-06 15:08 zadanie.doc
-rw-r--r-- 1 lorddidger lorddidger 20K 2006-11-06 15:08 zadanie.pdf
lord:/home/lorddidger# mount -o loop rzr-nfsc.iso test
mount: It is not directory
I checked also type of the file
Quote:
lord:/home/lorddidger# file abc.iso
abc.iso: ISO 9660 CD-ROM filesystem data 'ABC'
I tried to mount another image.
Quote:
lord:/home/lorddidger# cat /dev/cdrom > ./disk
lord:/home/lorddidger# file disk
disk: ISO 9660 CD-ROM filesystem data 'Debian 3.1 r0a i386 Bin-1 ' (bootabl
e)
lord:/home/lorddidger# mount -o loop disk test
lord:/home/lorddidger# cd test
lord:/home/lorddidger/test# ls
autorun.bat dists isolinux pool README.mirrors.txt
autorun.inf doc md5sum.txt README.html README.txt
debian install pics README.mirrors.html tools
What does it mean?

Last edited by lord_didger; 11-09-2006 at 01:27 PM.
 
Old 11-06-2006, 01:46 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 57
It seems that mount does not like the filesystem that is contained in the rzr-nfsc.iso it will mount the other .iso you created so there is something stopping it from reading the one you want too what that something is I have no idea. A quick search suggest the file is a torrent downloaded most probably made with a windows program so god knows what junk one of them things put into the .iso.
 
Old 11-06-2006, 03:23 PM   #9
lord_didger
Member
 
Registered: Jun 2005
Location: Poland
Distribution: Debian
Posts: 101

Original Poster
Rep: Reputation: 15
What should I do to open it in Linux? There is a program for windows called "deamon tools" which for sure opens it. Is there any program like that for Linux?
 
Old 11-06-2006, 04:49 PM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 57
Quote:
Originally Posted by lord_didger
What should I do to open it in Linux? There is a program for windows called "deamon tools" which for sure opens it. Is there any program like that for Linux?
That program from its website seems to be for making/mounting backup copies of windows programs including the copy protection if any, perhaps the .iso you have has the copy protection in there which is stopping mount from seeing a real file system. I would suggest opening the .iso in windows and copying out any files you want from it then once in Linux mount the windows partition and copy the files over.
 
Old 11-07-2006, 04:22 AM   #11
lord_didger
Member
 
Registered: Jun 2005
Location: Poland
Distribution: Debian
Posts: 101

Original Poster
Rep: Reputation: 15
ok, thank for your reply
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Disc Images tsunamikitsune Ubuntu 2 06-30-2006 04:14 AM
Mounting CD Images Angelis Linux - Software 1 08-10-2005 08:05 PM
Convert cd images to dvd images rcsuk Debian 2 07-11-2005 10:34 AM
mounting cd-images art3mis Linux - Newbie 1 12-22-2004 12:15 PM
mountin dvd images without a dvd unit Hano Linux - General 2 12-19-2004 09:43 PM


All times are GMT -5. The time now is 04:59 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
Open Source Consulting | Domain Registration