-
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
-
Junior Member
registered user
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.
-
where does knoppix stores which files get copied and symllinked to the ramdisk?
so long,
red
-
Re: need read AND write access to some files in /var/lib
![Quote](images/misc/quote_icon.png)
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](images/misc/quote_icon.png)
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
-
By kevingpo in forum General Support
Replies: 4
Last Post: 11-08-2005, 10:48 PM
-
By greygooseplz in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 11-17-2004, 12:17 AM
-
By Needtoknow in forum Hdd Install / Debian / Apt
Replies: 10
Last Post: 10-22-2004, 02:27 AM
-
By blt975 in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 01-13-2004, 10:39 PM
-
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
-
Forum Rules
![LOT QTY 2 of INTEL XEON 10 CORE E5-2690 V2 25MB 3.00GHZ CPU SR1A5 picture](/store/img/g/NLUAAOSwSoBkpZ7y/s-l225/LOT-QTY-2-of-INTEL-XEON-10-CORE-E5-2690-V2-25MB-3-.jpg)
LOT QTY 2 of INTEL XEON 10 CORE E5-2690 V2 25MB 3.00GHZ CPU SR1A5
$139.99
![AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads picture](/store/img/g/lUEAAOSw4exmMBDH/s-l225/AMD-Ryzen-9-7900X3D-Gaming-Processor-12-Core-And-2.jpg)
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads
$309.99
![Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture](/store/img/g/7-YAAOSwHaFjXQ2k/s-l225/Intel-Core-i7-12700K-Desktop-Processor-12-8P-4E-Co.jpg)
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$349.99
![Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture](/store/img/g/snwAAOSwhWZhsOrI/s-l225/Intel-Core-i9-12900K-Desktop-Processor-16-8P-8E-Co.jpg)
Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$529.99
![Intel Core i5-8500 Six Core Desktop PC CPU Processor 3.00GHz LGA1151 SR3XE picture](/store/img/g/3UkAAOSwQ91fkfee/s-l225/Intel-Core-i5-8500-Six-Core-Desktop-PC-CPU-Process.jpg)
Intel Core i5-8500 Six Core Desktop PC CPU Processor 3.00GHz LGA1151 SR3XE
$43.99
![INTEL CORE I3-12100F PROCESSOR | 3.30GHZ | SRL63 picture](/store/img/g/DwAAAOSwMi1miCLE/s-l225/INTEL-CORE-I3-12100F-PROCESSOR-3-30GHZ-SRL63.jpg)
INTEL CORE I3-12100F PROCESSOR | 3.30GHZ | SRL63
$64.99
![Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc... picture](/store/img/g/0eYAAOSwcHZlMDWu/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-28-Thread-4-.jpg)
Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...
$444.99
![AMD Ryzen 5 7600x Processor (5.3 GHz, 6 Cores, LGA 1718/Socket AM5) NEW OEM Tray picture](/store/img/g/TPkAAOSwvv5mT7XN/s-l225/AMD-Ryzen-5-7600x-Processor-5-3-GHz-6-Cores-LGA-17.jpg)
AMD Ryzen 5 7600x Processor (5.3 GHz, 6 Cores, LGA 1718/Socket AM5) NEW OEM Tray
$179.99
![Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor picture](/store/img/g/jKAAAOSwdVNlLmSw/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-8P-12E-LGA-1.jpg)
Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor
$399.99
![Intel Core i5-13500T SRMBQ 1.60GHz 14-CORE 24MB FCLGA 1700 CPU Processor picture](/store/img/g/K1kAAOSwn6BmiVQN/s-l225/Intel-Core-i5-13500T-SRMBQ-1-60GHz-14-CORE-24MB-FC.jpg)
Intel Core i5-13500T SRMBQ 1.60GHz 14-CORE 24MB FCLGA 1700 CPU Processor
$164.99