Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to auto-mount ds after boot?, Someone must know!< Next Oldest | Next Newest >
Mule Offline





Group: Members
Posts: 13
Joined: April 2006
Posted: May 01 2006,04:34 QUOTE

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!
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 01 2006,12:25 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
pr0f3550r Offline





Group: Members
Posts: 378
Joined: Dec. 2005
Posted: May 02 2006,18:34 QUOTE

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.


--------------
THE QEMU FORUM: http://qemu.dad-answers.com/index.php

QEMU ON WINDOWS: http://www.h7.dion.ne.jp/~qemu-win/

How to use floppy, CD-ROM and hard disk - http://www.h7.dion.ne.jp/~qemu-win/HowToFloppyCdrom-en.html

How to use network - http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 02 2006,19:51 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
3 replies since May 01 2006,04:34 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: How to auto-mount ds after boot?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code