-
Read Only HD install
Hi... is it possible to have knoppix installed on a HD partition in ReadOnly mode ?
I need a very stable system, with the ability to quickly install new sw, reconfigure the network and so on... I was thinking on a RO partition with the ability to mount it as RW in the boot phase (grub prompt for example)... is it possible ?
thanks in advance for any comments.
Giampaolo
-
Senior Member
registered user
you could remount it rw from the comandline (as root) of a konsole, xterm...
Code:
mount -o remount,rw /dev/hda1 /mnt/hda1
will do that just fine.
the problem is that you will have some files requiring written to in /home/user.
a diferent way is to make a copy of that users hoedir and wipe it at each logout and cp -a everything back right away. there should be a way to do that as part of the comand logout i guess.
should be possible to alias logout to do
rm -rf /home/username/*&&cp -a /blankhome/* /home/username&&sync&&clear&&logout
if that alias is in each users .bash.rc and a new basic ~/ is made for each user... should not be more than some 5-10Mb or so for each user. or perhaps same for all of them?
-
Hi OErjan.
thanks a lot for your help. I've try to remount my root partition with the command you suggested but I've got this:
[root@ir2ip /]# mount -t ext3 -o remount,ro /dev/hda2 /
mount: / is busy
looking at the docs, it seems that you can have an EBUSY error if there is a file oper for write... so, how can one close all opened file ?
Also, I was no able to boot my HD knoppix distro as RO... maybe I miss something, but really I don't understand if the knoppix HD installation script build an HD RW distro or an HD RO distro.
users dirs are not problems at this time, as I can redirect them (or part of them) to a RW partition.
thanks again,
Giampaolo
-
Senior Member
registered user
Re: Read Only HD install
Originally Posted by
iw2lsi
Hi... is it possible to have knoppix installed on a HD partition in ReadOnly mode ?
I need a very stable system, with the ability to quickly install new sw, reconfigure the network and so on... I was thinking on a RO partition with the ability to mount it as RW in the boot phase (grub prompt for example)... is it possible ?
thanks in advance for any comments.
Giampaolo
This makes no sense to me. A stable system w/ the ability to install sw would need a RW filesystem. Maybe I don't understand what you're trying to accomplish.
-
Hi mzilikazi..
think at what I call a "RO HD Knoppix" as a normal Knoppix distro ported from CD to HD... you can boot and work faster, as HD speed is greater than CD speed... you can reconfigure your system (for example the network settings) but when you reboot (if no persistent dir are used), you miss all changes and the system start with standard settings.
This is the distro I need for my "standard" end-users. It's very stable and fast.
Now think that one of your customer want to upgrade, for example, the Gimp package... you can simply reboot the system, stop normal grub boot with a password and launch the same kernel but with the HD partition in RW mode.
Maybe it's also possible to remount the HD partition in RW mode on the fly, as suggested in this thread.
You can than reconfigure & upgrade the system and this setting will be persistent. This is what I call "RW HD Knoppix".
Maybe this is not the right idea to obtain what I need.... so if you have another solution please let me know.
thanks,
Giampaolo
-
Senior Member
registered user
Now I think I understand. This is actually how I get set up to do a remaster and I think it will work for your situation. I am writing some docs for it but they are not yet finished. Here is a brief summary:
Boot Knoppix.
cd /KNOPPIX
cp -a * /mnt/hda5 (at least 2.1G)
Copy the /etc/fstab from cd to hdd too or it won't work!
You should see the complete / filesystem on your hdd like so:
bin cdrom etc home lib mnt proc sbin tmp var
boot dev floppy initrd lost+found opt root sys usr vmlinuz
cd /mnt/hda5/home
mkdir -p knoppix
chown 1000.1000 -R knoppix
Edit your grub/menu.lst:
title Linux
kernel (hd0,4)/boot/vmlinuz ro root=/dev/hda5 hdb=scsi apm=power-off nomce vga=791 lang=us
This way you have a bootable Knoppix file system that boots from hdd. You also get the autodetection- just as if it were the cd.
Now if you want to install software simply edit the boot line and change 'ro' to 'rw'. After booting you can add and remove software as normal. It just now dawns on me the you could just have a second boot line that is already set to rw if you wanted to use lilo. Obviously if your users can boot the system they can boot it rw too and then they can install software too. You would need to secure the system in some way.
There is more involved if you want to add a user but you can probably figure it out no problem. Also you would need to move /home to another partition and mount it rw if the users are to be able to save their configurations and such. I have not thought a great deal about that aspect of it but I don't see why it would not work. Just add it to /etc/fstab.
Hopefully I finish with the docs soon
HTH
-
Hi mzilikazi
thanks a lot for your info... I'll try your way as soon as possible...
Giampaolo
Similar Threads
-
By DaveTroupe in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 08-06-2005, 05:08 PM
-
By nmz787 in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 11-21-2004, 09:17 AM
-
By Needtoknow in forum Hdd Install / Debian / Apt
Replies: 10
Last Post: 10-22-2004, 02:27 AM
-
By AndersonSS in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 09-09-2004, 06:35 PM
-
By musicmaster in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 05-30-2004, 06:40 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3
$29.77
ASRock B250M-HDV LGA 1151 Micro ATX DDR4 Desktop Motherboard w/ IO Shield
$54.99
Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151
$31.95
ASUS Prime Q270M-C LGA1151 DP HDMI VGA SATA 6GB/s USB 3.0 MicroATX Motherboard
$37.99
Gigabyte GA-B75M-HD3 Intel LGA1155 DDR3 Desktop Motherboard MicroATX USB 3.0
$26.99
Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD
$89.99
MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard
$67.99
Gigabyte Technology GA-X99-GAMING 5P, LGA 2011, Intel Motherboard
$78.49
BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled
$59.99