Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
开机不能自动mount 分区
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
guichina
n00b
n00b


Joined: 02 Oct 2010
Posts: 3

PostPosted: Thu Oct 14, 2010 11:06 am    Post subject: 开机不能自动mount 分区 Reply with quote

Code:
linux ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
#/dev/sda1
UUID="925be401-4dd4-4821-b45d-08f4b72ede8e"    /         ext3              defaults,errors=remount-ro         0         1

/dev/sda5   /root/lean ext3       defaults,errors=remount-ro         0  0     
/dev/sda6  /root/resouce ext3   defaults,errors=remount-ro         0         0

#/dev/sda8
UUID="89ef0f41-0c7e-4c3e-b86a-c8598cbc42fa"    /root         ext3         defaults,errors=remount-ro         0         0

#/dev/sda7
UUID="c002b772-2d35-4000-b618-077dc6fdb31f"    none         swap          sw         0         0

shm                              /dev/shm        tmpfs   nodev,nosuid,noexec  0  0 

proc                             /proc           proc    nodev,nosuid,noexec  0 0

其中 sda5 .sda6 开机不能自动挂载
Code:
linux ~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             20641788   7829188  11763960  40% /
udev                     10240       296      9944   3% /dev
/dev/sda8             41239376   7217796  31926708  19% /root
shm                     514804         0    514804   0% /dev/shm


开机后必须手动 mount -a 才能使用
Code:
linux ~ # mount -a
linux ~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             20641788   7829204  11763944  40% /
udev                     10240       296      9944   3% /dev
/dev/sda8             41239376   7217800  31926704  19% /root
shm                     514804         0    514804   0% /dev/shm
/dev/sda5             41294800   1087400  38109716   3% /root/lean
/dev/sda6             48277844  32245284  13580184  71% /root/resouce


权限应该没有什么问题,我一直都是用root用户的, mount -a 后 dmesg
Code:
[ 3326.082611] EXT3-fs (sda5): using internal journal
[ 3326.082616] EXT3-fs (sda5): mounted filesystem with writeback data mode
[ 3326.133278] kjournald starting.  Commit interval 5 seconds
[ 3326.133303] EXT3-fs (sda6): warning: mounting fs with errors, running e2fsck is recommended
[ 3326.133577] EXT3-fs (sda6): using internal journal
[ 3326.133581] EXT3-fs (sda6): mounted filesystem with writeback data mode


我e2fsck之后 问题还是一样的?

高手帮忙!
_________________
I am a chinese ,My English is very bad!!
Back to top
View user's profile Send private message
ant1688
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 138

PostPosted: Thu Oct 14, 2010 12:36 pm    Post subject: Reply with quote

把defaults改成noatime试试看。
Back to top
View user's profile Send private message
guichina
n00b
n00b


Joined: 02 Oct 2010
Posts: 3

PostPosted: Sat Oct 16, 2010 3:50 am    Post subject: Reply with quote

谢谢你的回答
但这样也还是没有用
_________________
I am a chinese ,My English is very bad!!
Back to top
View user's profile Send private message
yuelanghan
n00b
n00b


Joined: 07 Jan 2011
Posts: 2

PostPosted: Fri Jan 21, 2011 3:30 am    Post subject: Reply with quote

你把5,6 放到 7,8 的后面试试 ,看是不是/root 还没挂的话 /root/下面的不能先挂
我没试你先试试
_________________
月狼寒
Back to top
View user's profile Send private message
evotouch520
n00b
n00b


Joined: 12 Jul 2011
Posts: 2
Location: 广东

PostPosted: Tue Jul 12, 2011 6:40 am    Post subject: Reply with quote

仔细研究一下你的代码
Back to top
View user's profile Send private message
gj313
n00b
n00b


Joined: 11 May 2011
Posts: 9

PostPosted: Thu Jul 14, 2011 1:07 am    Post subject: Reply with quote

我觉得那个挂载顺序应该反过来的
Back to top
View user's profile Send private message
QTTg
n00b
n00b


Joined: 29 Nov 2011
Posts: 11

PostPosted: Thu Dec 22, 2011 3:08 am    Post subject: Reply with quote

是不是代码不对啊?
Back to top
View user's profile Send private message
erqie
n00b
n00b


Joined: 04 May 2012
Posts: 6

PostPosted: Fri May 04, 2012 1:44 pm    Post subject: Reply with quote

感觉好像是直接用/dev路径的不能自动挂载。而用UUID的能挂。我没遇到过,我的全是用/dev/sda1这种形式挂载的,全都能自动挂。
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) 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