Linux - GeneralThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I need to change my partition type from ext3 to ext2 in order to use partition magic on it so I can resize (who knew I would like linux this much).
tune2fs can do the conversion for me, but when I try to do it it tells me that the partition needs to be mounted read only. Well, I just can't seem to make it do that. I have tried modifying fstab and passing the readonly command to lilo at boot, but whenenver I run `mount` it shows that / is mounted rw.
Dude - I'm reasonably sure it's impossible to do what you're describing. The root directory "/" is owned by root, and root also always has all permissions all the time.
What it sounds like you're trying to do is to revoke write privs on root's own directory from root itself, ie, you want to put limits what root would be permitted to do. As far as I'm aware that's impossible since root is all-powerful, plus, and probably more importantly, the "/" directory contains both static and dynamic data and therefore write privs must be open on it (to root). (Note: If anyone has information to the contrary, please share that info.)
In any event, there is a paritioning tool called Boot IT NG which supports a resize function. Whether it would work under the root directory or not is unknown to me as I have never tried it, but I have resized Windows paritions before with it and it worked like a charm. Obviously before attempting any resizing work, you would want to delete any unnecessary data in order to maximize the amount of free space. (Note however that what would really matter is the amount of contiguous free space, but clearly deleting files you know are just clutter would be helpful.)
Hopefully some of this may be useful, good luck with it. -- J.W.
You can't boot up and expect the root partition to be mounted read-only no matter what you have in fstab or kernel parameters. What you must do is to remount the file system once you're done with the boot in the way I describe above. The trouble with having the / partition mounted read only is that the system might need to write to it to function, especially if /var and /tmp are on the same partition. To mininmize risk, I would go into single user mode and then remount / as read only.
I welcome comments about this, but as I posted previously, from what I understand, / cannot be mounted RO. The reference source I'm using is the Filesystem Hierarchical Standard, v2.2 by Rusty Russell and Daniel Quinlan.
Originally posted by quatsch you can remount it read-only by
mount -o ro -o remount /
I tried that, no such luck. It told me / was busy.
I ended up using my slackware install cd and just booted from that. I tried several ways to boot / and none of them work (well one "worked" but the OS didn't load right and was useless). I don't think it is possible.
Like I said, I just booted from the slack cd and used tune2fs from there. Worked like a charm.