You are not logged in.
Pages: 1
Hi,
I'm trying to make a little script to mount *.iso files easily in thunar, but it doesn't work!
Here we go:
fstab line:
/home/eko/.iso /media/iso iso9660 noauto,user,ro,loop 0 0
the script:
#!/bin/sh
umount /media/iso
rm -f ~/.iso
ln -s "$@" ~/.iso
mount /media/iso
When I execute the script, the link is done, but nothing's mounted!
And when I'm typing "mount -v ~/.iso" in my terminal, I get this error:
mount: going to use the loop device /dev/loop0
ioctl: LOOP_SET_FD: Invalid argument
mount: failed setting up loop device
Any tips?
Thanks in advance.
Last edited by vomix (2007-08-27 13:54:55)
Offline
It should work. Doing a Google search on that error message indicates that it might be a problem with the filesystem the the iso is on. Is your ~/ mounted using NFS?
Offline
Just tried it and it works fine for me (local ext3 partition).
PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM
Offline
That's really weird!
I'm also using local ext3 FS...
And I've no problems when I use the following command (with fstab line commented):
mount -o loop -t iso9660 /path/to/iso/file/.iso /media/iso/
Offline
Nautilus scripts to mount and unmount, i hope this can help you with your script.
This scripts are NOT mine found it somewhere i can't remember maybe Archlinux Forum
#!/bin/bash
#
for I in "$*"
do
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`
sudo mkdir /media/"$I"
sudo mount -o loop -t iso9660 "$I" /media/"$I" && nautilus /media/"$I" --no-desktop
done
done
exit0
#!/bin/bash
#
for I in "$*"
do
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`
sudo umount "$I" && zenity --info --text "Successfully unmounted /media/$I/" && sudo rmdir "/media/$I/"
done
done
exit0
Offline
Works for me expect I can't get it to mount anything using thunar? How do you setup thunar?
"The only thing we have to fear is fear itself." - Franklin D. Roosevelt
Offline
Works for me expect I can't get it to mount anything using thunar? How do you setup thunar?
I don't use thunar but i found you HOW-TO: Mount ISO script for Thunar here is the link http://ubuntuforums.org/showthread.php?t=380602
Offline
Pages: 1