View previous topic :: View next topic |
Author |
Message |
sampson n00b
Joined: 20 Sep 2002 Posts: 8 Location: Hongkong
|
Posted: Thu Mar 06, 2003 7:21 pm Post subject: The "Gentoo way" to auto mount /dev/md0 every rest |
|
|
Currently, I have to manuall type
mount /dev/md0 /mnt/md0
after every restart. (The /dev/md0 is auto started, but the mount itself is not)
How can I auto-mount my /dev/md0?
I compiled my kernel with the following MD related options:
CONFIG_MD=y
CONFIG_BLK_DEV_MD=m
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID5=m
CONFIG_MD_MULTIPATH=m
Regards,
Sampson |
|
Back to top |
|
|
dirtyjake n00b
Joined: 06 Jul 2002 Posts: 60
|
Posted: Thu Mar 06, 2003 8:15 pm Post subject: |
|
|
You mount it like any other partition on your system. Check out your /etc/fstab file and use one of those lines as a template.
Something like:
Code: |
/dev/md0 /mnt/md0 ext3 defaults 1 2
|
should work. |
|
Back to top |
|
|
sampson n00b
Joined: 20 Sep 2002 Posts: 8 Location: Hongkong
|
Posted: Tue Mar 11, 2003 4:28 pm Post subject: |
|
|
My /etc/fstab already has a line like what you suggested, but it still cannot auto-mount during startup.
I end up to include a mount line to /etc/conf.d/local.start. _________________ Sampson Fung
sampson@attglobal.net
Hongkong |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Mar 11, 2003 6:22 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Aiken Apprentice
Joined: 22 Jan 2003 Posts: 239 Location: Toowoomba/Australia
|
Posted: Tue Mar 11, 2003 10:47 pm Post subject: |
|
|
What is your fstab line with md0. |
|
Back to top |
|
|
krt Tux's lil' helper
Joined: 27 Nov 2002 Posts: 102 Location: Earth
|
Posted: Thu Mar 13, 2003 6:28 am Post subject: |
|
|
what filesystem type did you partition your various slices with? To have automount work, you need to use type fd, which is Linux Raid Auto. This means that you'll probably have to remake your disks
fd Linux raid auto _________________ Everyone has something clever for a signature but me. |
|
Back to top |
|
|
|