Do you mean "menu.lst"? What do you want to achieve? Edit grub boot menu and/or add cheat codes to default kernel options?
Hi, I have a poor man's install (compressed on HDD, just like the livecd) with grub bootloader instead of isolinux.
Is there a way to modify and permanently save the grub.lst while I'm running my knoppix system?
The location seen from another system where I hooked My HDD is /media/hdd1/boot/grub/grub.lst. When I'm running from my knoppix HDD, It will be /cdrom/boot/grub/grub.lst but because the system is read-only, I can't save on it. How could I make r/w temporarly that location?
Any help much apreciated.
V.
Do you mean "menu.lst"? What do you want to achieve? Edit grub boot menu and/or add cheat codes to default kernel options?
Yes that's it, my bad...Originally Posted by ockham23
Something like that, but a more general goal is to be able to save files in that area. Let say, beside boot directory to create my own directory where to be able to permanently save files.Originally Posted by ockham23
I don't know if I can/how remount that portion of "CD" as read/write.
You can customize Knoppix by creating a persistent home directory on your hard drive and even modify the cd image file with unionfs by storing your modifications in a special unionrw directory on your hard drive.
Editing menu.lst, however, isn't that simple if grub itself and menu list are located inside the image file. You would have to copy the files from the cd to a temporary directory, edit menu.lst according to your needs, and create a new iso file from the copied files with mkisofs.
Can be instead of persistent home directory just another generic directory? I could use some links to point in that direction and use it to store whatever I need... Would it be writeable out of UNIONFS?Originally Posted by ockham23
Thanks, V.
I just reread your initial post. Apparently, menu.lst is located in a folder that is not part of the image file. So you should be able to edit to contents of the file if you boot off the Knoppix cd instead off the image file.
And, yes, you can store your data in any directory on your computer's hard drive or on any removable drive unless the file system of the drive is NTFS. File systems with write support are - among others - FAT32, FAT16, ext2, ext3 and reiserfs. Before you can write to the drive you have to tell Knoppix to mount the drive. In this regard, a persistent home directory is more convenient because it is mounted automatically when Knoppix starts.
Unionfs is not required if you only want to store user data to permanent folder on a hard drive or a removable drive. However, you cannot add new programs to Knoppix without using unionfs.
Thanks for the answers, I think I need to re-state what I'd like to accomplish:Originally Posted by ockham23
- without any external help (knoppix CD, or other linux), just within my knoppix-like HDD install...
- without any other partition/disk intended for storage...
... just the same way I have the "boot" directory, I whish to have another writeable directory used just for read-write-save files. The purpose is to use this install on a compact flash, without abusing the write cycles which would compromise the CF. I won't mind to make/run a script to "remount -rw" or "remount -ro" this directory.
Having for this purpose another partition seems logic and trivial. But I wonder if I just could use the same partition for this, even the way of doing it is not trivial. In the end, I could protect under the "ro umbrela" also my "special directory"
Well, there's your answer.Having for this purpose another partition seems logic and trivial.
If I understand correctly, you want to mount r/w the partition where your iso image is.
When you boot from a iso image on disk (as in your poor man's install), the partition where the iso is will be mounted as a cdrom loop device in read-only mode. For example, if the iso file was on hdd1, then mount will read "hdd1 on cdrom2.loop type ext3 (ro)".
To make hdd1 writable, issue the following mount command:
mount /dev/hdd1 /cdrom2.loop -o remount
Regards.
Works like a charm!Originally Posted by Jacky
Thanks to all for their suggestions.
Have a great day, V.
DELL PowerEdge R730XD Server 2x E5-2697v4 2.3GHz =36 Cores 64GB H730 4xRJ45
$407.00
DELL PowerEdge R630 8SFF Server 2x E5-2650v4 2.2GHz =24 Cores 32GB H730 4xRJ45
$240.00
DELL PowerEdge R630 8SFF Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45
$230.00
Dell PowerEdge R710 2.5" 2U Server 2x X5670 2.93GHZ 12-Core 128gb 2x 1TB SAS
$114.99
Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD
$139.99
Cisco UCS C220 M3 1U 2x 6-Core Xeon E5-2620 2.0GHz / 64GB RAM / No HDD
$89.99
HP Proliant DL360 G9 2x2.6GHz Intel 14 Core Xeon E5-2697v3, 32GB RAM, NO HDD
$139.99
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
1U Supermicro Server X10DRU-i+ 2x Xeon Total 36 Cores 64GB 4x 10GBE-T 2PS
$333.00