I am new in linux and i ve been trying to mount an iso file to a folder in fedora using terminal.
If the iso file is in Downloads folder and is named for example aaa.iso and the destination folder i.e. the mount point is in the home directory and is named bbb2000iso, could someone pls check where is my mistake? My efforts in terminal are like this
sudo mount -o loop,ro /Downloads/aaa.iso ~/bbb2000iso
What is the partition structure of the ISO?
fdisk -l /Downloads/aaa.iso
it is an image file of an older version of ms office .
What is the output of this command?
fdisk -l /Downloads/aaa.iso
No such file or directory
Well, that’s at least one problem then. Your mount command is trying to access a file that doesn’t exist.
Perhaps it should be ~/Downloads/aaa.iso ?
same as before. But i cannot understand. the file exists. what do i do wrong?
You probably have the path wrong.
Can you check the full path in your file manager (or wherever you see the file)?
i will try to focus on that. thanks.
Try
mkdir -p bbb2000iso
sudo mount -o ro Downloads/aaa.iso bbb2000iso
It would be helpful to show any error message you might get.
The reply message is always " mount: bad usage
Try ‘mount --help’ for more information."
I ve been trying to follow the sequence as shown by other users so as to use later the image with wine and playonlinux. I think that according to them, the ‘‘loop’’ should stay.
It seems that i follow all the right moves but the iso image file is not mounted on the directory created.
The mount command will create the loop device anyway, so you don’t need it. This I know because I often mount iso images and never specify the loop option.
Should that not be this instead? I am assuming you are currently running that command from your home directory, and that you already have the mount point directory bbb2000iso created. (the path names are relative to your current directory location)
sudo mount -o loop,ro Downloads/aaa.iso bbb2000iso
or
sudo mount -o loop,ro ~/Downloads/aaa.iso ~/bbb2000iso (if not in your home directory)
I tested this using both methods and it works flawlessly with the correct paths.
Your \~/aaa2000iso will never work unless there is a subdirectory under your home that is named quite literally ~. Similarly I doubt there is a directory /Downloads on your system (though there should be one named /home/USER/Downloads in your home directory). File names and paths are quite important.
I don’t think they ever posted this filename - it’s Discourse messing up the escaping when you quote.
Agreed.
For this you need to show the exact command that would cause this error message. And if you could, use the </> button and paster the text into where the text cursor is placed.
Do you mean ~/Downloads ?
I don’t think you really mean /Downloads
Fix the commands you type to exactly match where things really are.
the way I do to mount an iso. I usually use /mnt or /media as a mount point.
sudo mount /home/user/Downloads/aaa.iso /mnt
You may find that the book (written by an actual human (not AI) from https://LinuxCommand.org helpful to understand what went wrong for this and future Linux command-line tasks.
Quite right. But it was a syntax error. The error was the iso file name. It should be with no spaces between the letters or with underscore. For example “a a a.iso” is not correct. Instead “aaa.iso” or “a_a_a.iso” is correct and the terminal command continues. Thanks a lot for your attention and effort.
Your remakrs are quite important. But it was a syntax error as i figured out in the end. The error was the iso file name. It should be with no spaces between the letters or with underscore. For example “a a a.iso” is not correct. Instead “aaa.iso” or “a_a_a.iso” is correct and the terminal command continues. Thanks a lot for your attention and effort. ![]()