How to auto-mount ds after boot?Forum: HD Install Topic: How to auto-mount ds after boot? started by: Mule Posted by Mule on May 01 2006,04:34
I have a frugal install to an HD with two partitions: hda1 (primary, bootable, install location for frugal) and hda2 (primary only).I'd like to use hda2 as my home directory (for the DSL user). I thought I could edit the DSL profile in /etc/passwd to change the home directory for the DSL user to hda2 But how and where do I mount the file system so that the /etc/passwd edit works? Incidentally, when I mount the file system on hda2 through the desktop UI it appears to always be mount read only. Any thoughts on how to get it read/write? Am I approaching this problem the right way? Thanks! Posted by mikshaw on May 01 2006,12:25
Add "dsl home=hda2" to your bootloader's config file.What is the filesystem on hda2? If you can't mount it read-write, then there will probably be issues with a persistent home on that partition. Posted by pr0f3550r on May 02 2006,18:34
I have a question about it. If you mount hda2 as /home, so you need a third drive (hdb3) to save the extensions or would you save them on the same drive?I wonder if the two things may ovelap. Posted by mikshaw on May 02 2006,19:51
Yes, you can have both on the same partition. In order to use hda2 as home, DSL first mounts the partition at /mnt/hda2, then it uses mount's "--bind" parameter to mount /mnt/hda2/home/dsl to /home/dsl and creates a link to this mountpoint in /ramdisk. At least I'm pretty sure this is the process. It might be the other way around...being bound to /ramdisk/home/dsl and using /home/dsl as the symlink.Whatever the exact procedure, your files on hda2 will still be available through /mnt/hda2. |