LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Made a root directory and mounted read-only files there, can't remove them now (https://www.linuxquestions.org/questions/linux-newbie-8/made-a-root-directory-and-mounted-read-only-files-there-cant-remove-them-now-4175644172/)

Chripcikas 12-12-2018 05:06 PM

Made a root directory and mounted read-only files there, can't remove them now
 
I did
Code:

sudo mkdir /media/games
and
Code:

sudo mount -o loop ~/FILE.iso /media/games
and now can't remove /media and all folders in it with
Code:

sudo rm -ir /media
because of read-only file system error. How do I reverse first and second sudo commands?

berndbausch 12-12-2018 05:22 PM

You can’t remove files from an ISO filesystem. You have to copy the files you want, then create a new ISO. See https://www.linuxquestions.org/quest...access-574949/.

To remove the games directory, first unmount it:
Code:

sudo umount /media/games
sudo rmdir /media/games


Chripcikas 12-12-2018 05:33 PM

Thanks man!


All times are GMT -5. The time now is 09:34 PM.