LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-17-2003, 11:00 AM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
mountig - change ro to rw, delete directory, change rw to ro ??


(Edit: Dang typo - mountig = mounting)

I have a unix system that has the root directory mounted read only.

/dev/wd0f / ufs ro 1 1

I need to delete a directory /test, but 'rm -rf /test' gives me messages on each file that it's a read-only file system.

Can I simply umount /dev/wd0f ?

Delete that directory.

And then mount /dev/wdof?

Or, I suppose with the mount command I'll need to respecify the ro.
The problem is that the system doesn't have man pages installed and I'm entering this thread from a windows machine.

Thanks for any insight.

Last edited by itsjustme; 10-17-2003 at 11:16 AM.
 
Old 10-17-2003, 11:10 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
you can remount it rw like this:

mount -o remount -o rw {partition}

you can remount ro again by replacing rw with ro. There are online man pages at linuxqestions.org:
http://man.linuxquestions.org/
I think it should be better advertised.
 
Old 10-17-2003, 11:25 AM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 45
Thanks for the quick response.

I tried that command, " mount -o remount -o rw / " and got:

mount: -o remount: option not supported

The machine is a nokia firewall with IPSO 3.6 .

Any more ideas?

Thanks!
 
Old 10-17-2003, 11:34 AM   #4
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 45
I discovered "mount -u / "

That seems to do it.

Although, I don't yet know how to undo that.
 
Old 10-17-2003, 11:35 AM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
if the option isn't supported. I'm pretty sure you cannot umount it while it's running - you might give it a try.

Can you mount the partition to some other unix system? If you can do that, you could mount it rw there and make the changes.
 
Old 10-17-2003, 11:42 AM   #6
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 45
Looks like we posted at about the same time there.

Do you know about the " mount -u / " command. I used this and was able to delete the unneeded directories.

However, I'm pretty sure I'll need to undo the effect of the -u thing.

Also, the machine is not connected to the network at the moment. It will be reinserted once it is upgraded.

I suppose I could just reboot.

Thanks...
 
Old 10-17-2003, 11:48 AM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
I don't see a -u option in my man pages. I guess there are differences between linux and unix. Well, it's good that it worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change wallpaper and delete icons from desktop in feather linux asuthar2004 Feather 5 02-11-2012 04:21 AM
cant delete or change a file slack66 Slackware 4 10-31-2005 12:04 AM
prob. how to delete linux root,repartition and change boot sequence ratboyslim Linux - Software 5 05-08-2005 12:34 PM
How to change directory windefault Linux - Newbie 5 11-02-2004 04:28 AM
How to change directory? bngrhl Linux - Newbie 5 05-16-2004 01:20 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration