Results 1 to 4 of 4

Thread: need read AND write access to some files in /var/lib

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Posts
    5

    need read AND write access to some files in /var/lib

    hi there,

    I'm trying to remaster KNOPPIX to support an OpenSource Accounting programm (SQL-Ledger). I started with Knoppix KDE Version. Nearly everything went fine until I wanted to install PostgresQL. Actually I installed it, testet it in a chroot environment and everything went fine. I created the cloop image, the iso images, burned it to an RW and startet it.

    Now PostgresQL wont start, because it can't open a file (/var/lib/postgres/data/global/pg_control) in read and _write_ mode. After searching a little bit through my filesystem I found that every file in /var/lib/postgres is a link to /KNOPPIX/var/lib/postgres which is not writeable.

    There is a similar problem with apache (apache is not part of KDE Knoppix CD).

    maybe someone can tell what I have to do to make these files (and some others) writeable. I know there must be a way, because apache is part of the 'normal' Knoppix CD.

    There must be a possibility to change this.

    hope anyone can help.

    so long,
    red

  2. #2
    Junior Member registered user
    Join Date
    Jan 2003
    Posts
    21
    A thought would be to make a sim link to the file. The sim link being in /var where your program is looking for it, and the file being decompressed and written to the /ramdisk/whatever. This would allow it to be written to, but changes will be lost on a reboot.

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Posts
    5
    where does knoppix stores which files get copied and symllinked to the ramdisk?

    so long,
    red

  4. #4
    Member registered user
    Join Date
    Feb 2003
    Posts
    43

    Re: need read AND write access to some files in /var/lib

    Quote Originally Posted by redrat
    I'm trying to remaster KNOPPIX to support an OpenSource Accounting programm (SQL-Ledger). I started with Knoppix KDE Version.
    Quote Originally Posted by ...and
    Now PostgresQL wont start, because it can't open a file (/var/lib/postgres/data/global/pg_control) in read and _write_ mode. After searching a little bit through my filesystem I found that every file in /var/lib/postgres is a link to /KNOPPIX/var/lib/postgres which is not writeable.
    This can be changed at a cost of less RAM memory. I do this for /usr/local on Knoppix, and have done it in the past for /var/apt and others. Generally, what you need is a place on /ramdisk to put the stuff, and create new links to everything that is needed.

    For example, if /var/lib is writable, then:

    Code:
    # cd /var/lib
    # cp -av --backup=.orig postgres postgres.new
    # rm -f postgres
    # mv postgres.new postgres
    If /var/lib is NOT writable, then do the same thing, but at the /var/lib level:

    Code:
    # cd /var
    # cp -av --backup=.orig lib lib.new
    # rm -f lib
    # mv lib.new lib
    ...then change into /var/lib and go thru the steps previously described.

    If /var/lib/postgres is writable:

    Code:
    # cd /var/lib/postgres
    # for i in * ; do \
    cp -av --backup=.orig $i $i.new && \
    mv $i.new $i ; \
    done
    Remember to make sure you've got space on /ramdisk (or wherever) for all this stuff....

Similar Threads

  1. HOW-TO: get read/write access to HD?
    By kevingpo in forum General Support
    Replies: 4
    Last Post: 11-08-2005, 10:48 PM
  2. HDD read only, cannot access
    By greygooseplz in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 11-17-2004, 12: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/Write Access to Windows NTFS parition?
    By blt975 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 01-13-2004, 10:39 PM
  5. How to get enable read/write access (Hd Based)
    By buxus in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 06-26-2003, 05:45 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 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray picture

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray

$39.99



Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A

$64.00



Seagate Constellation ES.3 3.5 in Enterprise HDD | ST2000NM0033 picture

Seagate Constellation ES.3 3.5 in Enterprise HDD | ST2000NM0033

$40.00



DELL 2TB Enterprise HDD (7200RPM, 3.5

DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600

$49.95



Seagate ST4000NM0034 Enterprise 4TB 7200RPM SAS 12Gb/s HDD v4 picture

Seagate ST4000NM0034 Enterprise 4TB 7200RPM SAS 12Gb/s HDD v4

$39.00



Seagate ST500DM009 BarraCuda 500 GB 3.5

Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive

$14.99



HGST HUS726060ALE610 0F23001 6TB HDD 3.5

HGST HUS726060ALE610 0F23001 6TB HDD 3.5" SATA 6Gb/s 7.2K Hard Drive (V6315)

$61.56



Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE picture

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE

$68.99



Seagate ST8000DM004 8TB 3.5

Seagate ST8000DM004 8TB 3.5" 6Gb/s 256MB SATA HDD P/N: 2CX188-300 Tested

$149.99



(ST8000NM0045) SEAGATE ENTERPRISE 8TB 7200RPM 4Kn SATA 6Gb/s 3.5

(ST8000NM0045) SEAGATE ENTERPRISE 8TB 7200RPM 4Kn SATA 6Gb/s 3.5" HARD DRIVE

$199.99