mikshaw


Group: Members
Posts: 4856
Joined: July 2004 |
 |
Posted: Mar. 19 2005,00:39 |
 |
I understand the mountpoints thing....however, since /dev/hda4 is already mounted as /, it does not display as such when it is mounted again as /mnt/hda4. The contents are only the test /opt i made.
I found a better way to do this anyway...at least better for me... I'm not using the opt and home boot options.
I created a home and opt in hda3/home/dsl (suse system) and filled them with all the appropriate files, including additional programs and configs. Next i added this to bootlocal.sh, and put only this one file in filetool.lst:
Code Sample | mount /dev/hda3 ln -sf /mnt/hda3/home/dsl/opt / rm -rf /ramdisk/opt/ ln -sf /mnt/hda3/home/dsl/home / rm -rf /ramdisk/home/ |
Now /opt and /home are linked into hda3/home/dsl, and the ones in /ramdisk are deleted. I now have a persistent home and opt which do not require an additional partition, do not get overwritten on boot, and i no longer need to concern myself with backups. Additionally it is a poorman install, so upgrading is cake....and i save a bit of RAM....and i can reuse the same installation in any other configuration via boot options, such as a vanilla DSL for testing extensions.
EDIT: After seeing the inconvenience of jumping between drives using the link, i'm thinking it might be better to use mount instead, although i haven't tried it yet:
Code Sample | rm -f /{opt,home} mkdir /{opt,home} mount /dev/hda3 mount --bind /mnt/hda3/home/dsl/opt /opt mount --bind /mnt/hda3/home/dsl/home /home rm -rf /ramdisk/{opt,home}/
|
EDIT2: The second version works much better.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|