[FIXED]Unmounting an Image

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

[FIXED]Unmounting an Image

Postby Xaeon88 on Sat Mar 14, 2009 11:07 pm

So I mounted one of my images using
Code: Select all
mount -t iso9660 -o loop <Image_File> <Mount_Point>
and now I cant "unmount" the image file. What I am trying to do is delete this folder that I made but I can't because the image that I mounted is in the folder. Here is the error code I get when I try to change permissions on the file. Any help is appreciated a lot!
Code: Select all
xaeon@xaeon ~/Desktop/mnt $ sudo chmod a+w disk
chmod: changing permissions of `disk': Read-only file system


Thanks in advance! :)
Last edited by Xaeon88 on Sun Mar 15, 2009 9:40 am, edited 1 time in total.
Xaeon88
Level 1
Level 1
 
Posts: 11
Joined: Sun Mar 08, 2009 7:52 pm

Linux Mint is funded by ads and donations.
 

Re: Unmounting an Image

Postby garda on Sun Mar 15, 2009 1:27 am

You cannot change permissions of read-only medias -- CD/DVD images are treated as read-only. In order to delete the mount directory, you must first unmount the image using this command:
Code: Select all
sudo umount /path/to/mountpoint
User avatar
garda
Level 5
Level 5
 
Posts: 744
Joined: Sat Aug 30, 2008 2:55 am
Location: /root


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Eric2.0, Google [Bot], nordic and 52 guests