LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2018, 05:06 PM   #1
Chripcikas
Member
 
Registered: Jun 2017
Distribution: Kubuntu 20.04
Posts: 88

Rep: Reputation: Disabled
Exclamation 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?

Last edited by Chripcikas; 12-12-2018 at 05:11 PM. Reason: correcting commands
 
Old 12-12-2018, 05:22 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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
 
1 members found this post helpful.
Old 12-12-2018, 05:33 PM   #3
Chripcikas
Member
 
Registered: Jun 2017
Distribution: Kubuntu 20.04
Posts: 88

Original Poster
Rep: Reputation: Disabled
Thanks man!
 
  


Reply

Tags
directory, remove, root



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb drive mounted only as read-only and nothing I do can format it MattFly Linux - Hardware 7 10-12-2019 01:43 PM
[SOLVED] root denied permission to nfs mounted directory but user can read and write qajaq Linux - Networking 2 03-08-2016 08:53 AM
LXer: Open Source Software Made Developers Cool. Now It Can Make Them Rich LXer Syndicated Linux News 0 03-25-2008 06:10 AM
Fedora Core 1 RPM files - when I run them, I can't read them! [42]Sanf0rd Linux - Software 0 05-30-2004 05:00 PM
I updated the system and now only root can see a mounted partition ganninu Linux - General 15 11-15-2003 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration