Results 1 to 7 of 7

Thread: Read Only HD install

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    4

    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

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    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?

  3. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    4
    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

  4. #4
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900

    Re: Read Only HD install

    Quote 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.

  5. #5
    Junior Member
    Join Date
    Feb 2004
    Posts
    4
    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

  6. #6
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    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

  7. #7
    Junior Member
    Join Date
    Feb 2004
    Posts
    4
    Hi mzilikazi

    thanks a lot for your info... I'll try your way as soon as possible...


    Giampaolo

Similar Threads

  1. Read Only? Cannot Install Knoppix to Hdd
    By DaveTroupe in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 08-06-2005, 05:08 PM
  2. Knoppix install read error around 80%, install another way?
    By nmz787 in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 11-21-2004, 09:17 AM
  3. Change OS read only file to read/write after "poor man'
    By Needtoknow in forum Hdd Install / Debian / Apt
    Replies: 10
    Last Post: 10-22-2004, 02:27 AM
  4. Read Only Hard Drive Install
    By AndersonSS in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 09-09-2004, 06:35 PM
  5. Read Only HD for 3.4 HD install?
    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
  •  


Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux picture

Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux

$836.80



1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00



32GB Web HTML HTTP Server, Great tool for eBay seller & kids to host web site picture

32GB Web HTML HTTP Server, Great tool for eBay seller & kids to host web site

$229.99



POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives picture

POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives

$179.99



2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD picture

2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD

$30.00



IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8 picture

IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8

$449.96



IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E picture

IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E

$674.96



PFSENSE 15

PFSENSE 15" Depth Server Router Firewall Supermicro X11SSH-F E3-1240 V5 32GB RAM

$382.00



1U Open Source Router Firewall X10SLH-N6-ST031 E3-1270 V3 6x 10GB Ethernet 16GB picture

1U Open Source Router Firewall X10SLH-N6-ST031 E3-1270 V3 6x 10GB Ethernet 16GB

$419.00



Barracuda BBS490a / BNHW004 Backup Server No HDD with Power Cord picture

Barracuda BBS490a / BNHW004 Backup Server No HDD with Power Cord

$249.99