Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The "Gentoo way" to auto mount /dev/md0 every rest
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sampson
n00b
n00b


Joined: 20 Sep 2002
Posts: 8
Location: Hongkong

PostPosted: Thu Mar 06, 2003 7:21 pm    Post subject: The "Gentoo way" to auto mount /dev/md0 every rest Reply with quote

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
View user's profile Send private message
dirtyjake
n00b
n00b


Joined: 06 Jul 2002
Posts: 60

PostPosted: Thu Mar 06, 2003 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
sampson
n00b
n00b


Joined: 20 Sep 2002
Posts: 8
Location: Hongkong

PostPosted: Tue Mar 11, 2003 4:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Mar 11, 2003 6:22 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Aiken
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 239
Location: Toowoomba/Australia

PostPosted: Tue Mar 11, 2003 10:47 pm    Post subject: Reply with quote

What is your fstab line with md0.
Back to top
View user's profile Send private message
krt
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2002
Posts: 102
Location: Earth

PostPosted: Thu Mar 13, 2003 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum