Can't mount CD: "unknown filesystem type 'iso9660'"
I just upgraded to Ubuntu 9.10 Server (the VM distribution), and now I can't mount my VM's CD drive.
Code:
$ sudo mount /dev/cdrom /media/cdrom I'm not sure how to get this to work again, and my Googling has been remarkably unhelpful. Anyone know what I need to do? Any tips would be greatly appreciated. |
If I get this correctly, you're trying to mount the CD in your virtual machine. If this is right then check by ejecting/unmounting the CD from the host machine. This happens a lot in Parallels where in after ejecting the CD from the host operating system, it would be accessible for the guest operating system(VM).
|
I'm actually just trying to mount an ISO which I've mounted through VirtualBox. I've of course tried "virtually-ejecting" it in VirtualBox; that didn't help.
|
Does your VM's kernel have an iso9660 kernel module you can modprobe?
If you don't have this filesytem in the kernel, you won't be able to mount it, even if you have access to the device in your VM. |
Code:
$ sudo modprobe iso9660 I guess I'll go file a bug with Ubuntu. I'm pretty surprised that they took this out of their VM kernel, if that's what's indeed going on. |
I'm not home right now and can't double check the name. Check if you can modprobe isofs. It might be an alias set in /etc/modprobe.conf or a file in /etc/modprobe.d/. Sometimes a kernel module may change names between kernel versions as well. For example, tcp_conntrack was renamed nf_conntrack in recent kernels. Also check the /boot/config-<version> file for what kernel options were used. Some kernels have a /proc/config.gz file (if this feature is enabled) you can use as well.
|
Can't modprobe isofs.
There's this in my /boot/config-2.6.31-14-generic-pae: Code:
# |
I have a similar "CONFIG_ISO9660_FS=y" config entry for my kernel, but it is built-in so I don't see an iso9660 kernel module. However, I don't have an iso9660.ko entry in modules.builtin. Looking for iso9660.ko might be a fools errand.
Double check your config settings for your running kernel: zcat /proc/config.gz | grep ISO9660 zcat /proc/config.gz | grep ISOFS Look at your boot up messages for your VM. Is the cdrom/dvd device itself detected? |
Quote:
Quote:
Quote:
Code:
[ 0.973415] ata2.00: ATAPI: VBOX CD-ROM, 1.0, max UDMA/133 |
On this SuSE system the module isofs.ko needed to be loaded into the kernel, but is was dependent on nls_base.ko that had to be loaded first. So the short answer is:
Code:
# insmod /lib/modules/3.0.101-0.46-ec2/kernel/fs/nls/nls_base.ko Code:
# mount -o loop SLES-11-SP2-DVD-i586-GM-DVD1.iso sles11sp3-32 Code:
# modprobe iso9660 Code:
# cat /boot/config-3.0.101-0.46-ec2 |grep 9660 Code:
# find / -name isofs.ko Code:
# insmod /lib/modules/3.0.101-0.46-ec2/kernel/fs/isofs/isofs.ko the way to find out is depmod, apparently Code:
# depmod /lib/modules/3.0.101-0.46-ec2/kernel/fs/isofs/isofs.ko Code:
# mkdir /lib/modules/3.0.82-0.7-ec2 Code:
# insmod /lib/modules/3.0.101-0.46-ec2/kernel/fs/nls/nls_base.ko Code:
# mount SLES-11-SP2-DVD-i586-GM-DVD1.iso sles11sp3-32 -o loop |
All times are GMT -5. The time now is 03:27 AM. |