[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] [ANNOUNCE] knx_persistent_home v0.4



Matthias Schwarze wrote:
David GLAUDE Mailing <dglaudemailing@gmx.net> schrieb am 22.12.02 23:26:12:

It would be nice to be able to store the home of the user knoppix on the same disk. However KNOPPIX mount it as read-only under the name /cdrom (even it is /dev/hda5).

I didn't test this, but it should find your .knoppix file on /dev/hda5 and mount this
device under mnt/hda5 (rw!).


I am afraid this will not work for me.
1) I don't think FAT or FAT32 or VFAT support .file, I get silly message when I try to create such a .knoppix file under windows. 2) If /dev/hda5 is mounted read-only and a file .knoppix exist, this one can not be loop mounted read-write since the underlying filesystem does not permit write (as mounted).

I think (hope!) this is not neccessary. Anyway, the script will only
look under /mnt for already mounted devices.

I am affraid /cdrom is not under /mnt (should I make a link?).
And I am pretty sure it is not possible to mount twice the same partition (once RO under /cdrom and once RW under /mnt/something

So to help the script you better mount to /mnt and add the line to a file
called preknoppix.sh. This way you don't have to merge your changes into
the next version of knx_persistent_home. :-)

To summarise (but I really should read the script to get an idea on how and why it work like that):

1) I would advocate for taking a filename that is valid under most filesystem by taking the highest limitation factor of each and everyone of them (8+3 + uppercase or case-insensitive might be it). By permitting FAT filesystem for hosting the "persistent home" you would permit one to use the same partition (USB FLASH?) for saving it and saving "windows" document on it.

2) It would be nice to verify if RW right can be optain and if not, a attempt to "-o remount" would be nice and help those that mounted the wrong way (by design or by mistake).

If you insist in naming it ".knoppix" then my only solution is creazy: loop mount a big file with a valid fat name under /mnt then that file=filesystem will containt the required ".knoppix". I don't know how far could that loop recursivity go, but as long as it stay RW. ;-)

David GLAUDE

PS: Does it help or confuse the matter?

_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: