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
  •  


Vintage Apple Power Macintosh 6100/66 Computer M1596 Powers On AS-IS picture

Vintage Apple Power Macintosh 6100/66 Computer M1596 Powers On AS-IS

$149.99



Apple Macintosh PowerBook 180 Vintage Laptop | Retro Computer picture

Apple Macintosh PowerBook 180 Vintage Laptop | Retro Computer

$149.95



Vintage Apple Newton eMate 300 H0208 Laptop Computer 1997 Works picture

Vintage Apple Newton eMate 300 H0208 Laptop Computer 1997 Works

$199.95



Vintage Apple M2115 External Hard Drive, Dive Not Included picture

Vintage Apple M2115 External Hard Drive, Dive Not Included

$64.99



Vintage Apple Computers rainbow sticker sheet picture

Vintage Apple Computers rainbow sticker sheet

$7.95



Vtg 1994 Macintosh Apple (M2895LL/A) Presentation System - All Parts/Cables Inc picture

Vtg 1994 Macintosh Apple (M2895LL/A) Presentation System - All Parts/Cables Inc

$15.00



Vintage Apple AppleCD 600i SCSI CD-ROM Drive - Tested Working picture

Vintage Apple AppleCD 600i SCSI CD-ROM Drive - Tested Working

$20.00



Vintage Apple II Plus Computer Model A2S1048 -Disk Drive II, Monitor, Joystick + picture

Vintage Apple II Plus Computer Model A2S1048 -Disk Drive II, Monitor, Joystick +

$1150.00



VINTAGE Apple Model M0130 External 400k 3.5

VINTAGE Apple Model M0130 External 400k 3.5" Floppy Drive - UNTESTED

$49.99



Vintage Apple M7803 Pro USB Wired Keyboard Clear Black 2000 picture

Vintage Apple M7803 Pro USB Wired Keyboard Clear Black 2000

$24.99