CubieBoard博客-HomeCubieTech公司网站

CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 3501|回复: 1

如何改变dhcp启动的顺序?

[复制链接]

6

主题

0

好友

6727

积分

论坛元老

Rank: 8Rank: 8

贡献
1238
金钱
2928
威望
1238
买家信用
卖家信用
积分
6727
发表于 2014-11-9 18:22:23 |显示全部楼层
问题是这样的,我在fstab里添加了一个网络分区

root@cubieboard4:~# cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/sda1       /ptdownload     ext4    defaults         0       0
//192.168.31.1/XiaoMi/PTDownLoad /xiaomi cifs defaults,username=root,password=111111  0 0

每次开启启动都没有挂载成功,看了开机日志,大概原因是挂载网络分区时,系统的网卡还没有获取到ip。所以如何调整这个dhcp启动的顺序呢,让挂载前就获取ip地址。。

Nov  9 18:06:13 cubieboard4 kernel: [   14.948637] scsi 1:0:0:0: Direct-Access     NORELSYS 106X             1A01 PQ: 0 ANSI: 6
Nov  9 18:06:13 cubieboard4 kernel: [   14.975551] sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
Nov  9 18:06:13 cubieboard4 kernel: [   14.991194] sd 1:0:0:0: [sda] Write Protect is off
Nov  9 18:06:13 cubieboard4 kernel: [   15.002996] sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
Nov  9 18:06:13 cubieboard4 kernel: [   15.015940] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Nov  9 18:06:13 cubieboard4 kernel: [   15.076809]  sda: sda1
Nov  9 18:06:13 cubieboard4 kernel: [   15.096196] sd 1:0:0:0: [sda] Attached SCSI disk
Nov  9 18:06:13 cubieboard4 kernel: [   15.241568] mount used greatest stack depth: 4432 bytes left
Nov  9 18:06:13 cubieboard4 kernel: [   19.683818] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Nov  9 18:06:13 cubieboard4 kernel: [   19.951332] [rfkill]: rfkill set power 1
Nov  9 18:06:13 cubieboard4 kernel: [   19.951360] gpio ap6xxx_bt_regon set val 0, act val 0
Nov  9 18:06:13 cubieboard4 kernel: [   20.095458] CIFS VFS: Error connecting to socket. Aborting operation
Nov  9 18:06:13 cubieboard4 kernel: [   20.119159] CIFS VFS: cifs_mount failed w/return code = -101
Nov  9 18:06:13 cubieboard4 kernel: [   20.572070] dhclient used greatest stack depth: 4176 bytes left
Nov  9 18:06:13 cubieboard4 kernel: [   20.905954] CIFS VFS: Error connecting to socket. Aborting operation
Nov  9 18:06:13 cubieboard4 kernel: [   20.921214] CIFS VFS: cifs_mount failed w/return code = -101
Nov  9 18:06:13 cubieboard4 kernel: [   21.076021] init: avahi-cups-reload main process (2137) terminated with status 1
Nov  9 18:06:14 cubieboard4 kernel: [   22.417580] init: plymouth-upstart-bridge main process ended, respawning
Nov  9 18:06:14 cubieboard4 cron[2200]: (CRON) INFO (pidfile fd = 3)
Nov  9 18:06:14 cubieboard4 anacron[2239]: Anacron 2.3 started on 2014-11-09
Nov  9 18:06:14 cubieboard4 cron[2248]: (CRON) STARTUP (fork ok)
Nov  9 18:06:15 cubieboard4 anacron[2239]: Normal exit (0 jobs run)
Nov  9 18:06:15 cubieboard4 cron[2248]: (CRON) INFO (Running @reboot jobs)
Nov  9 18:06:17 cubieboard4 dbus[2079]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Nov  9 18:06:17 cubieboard4 dbus[2079]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Nov  9 18:06:17 cubieboard4 polkitd[2362]: started daemon version 0.105 using authority implementation `local' version `0.105'
Nov  9 18:06:17 cubieboard4 dbus[2079]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Nov  9 18:06:17 cubieboard4 dbus[2079]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Nov  9 18:06:20 cubieboard4 kernel: [   27.997674] CIFS VFS: Error connecting to socket. Aborting operation
Nov  9 18:06:20 cubieboard4 kernel: [   28.011809] CIFS VFS: cifs_mount failed w/return code = -101
Nov  9 18:06:21 cubieboard4 dbus[2079]: [system] Activating service name='org.freedesktop.UDisks2' (using servicehelper)
Nov  9 18:06:22 cubieboard4 udisksd[2518]: udisks daemon version 2.1.3 starting
sleepstart
Nov  9 18:06:22 cubieboard4 dbus[2079]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Nov  9 18:06:22 cubieboard4 udisksd[2518]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Nov  9 18:06:22 cubieboard4 dhclient: Internet Systems Consortium DHCP Client 4.2.4
Nov  9 18:06:22 cubieboard4 dhclient: Copyright 2004-2012 Internet Systems Consortium.
Nov  9 18:06:22 cubieboard4 dhclient: All rights reserved.
Nov  9 18:06:22 cubieboard4 dhclient: For info, please visit https://www.isc.org/software/dhcp/
Nov  9 18:06:22 cubieboard4 dhclient:
Nov  9 18:06:22 cubieboard4 kernel: [   30.516552] gmac0: probed
Nov  9 18:06:22 cubieboard4 kernel: [   30.517899] gmac0 gmac0: eth0: eth0: PHY ID 001cc915 at 0 IRQ poll (gmac0-0:00)
Nov  9 18:06:22 cubieboard4 dhclient: Listening on LPF/eth0/8a:61:ac:34:60:16
Nov  9 18:06:22 cubieboard4 dhclient: Sending on   LPF/eth0/8a:61:ac:34:60:16
Nov  9 18:06:22 cubieboard4 dhclient: Sending on   Socket/fallback
Nov  9 18:06:22 cubieboard4 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x6c2be2d7)
Nov  9 18:06:25 cubieboard4 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x6c2be2d7)
Nov  9 18:06:28 cubieboard4 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 (xid=0x6c2be2d7)
Nov  9 18:06:28 cubieboard4 kernel: [   36.531175] PHY: gmac0-0:00 - Link is Up - 1000/Full
Nov  9 18:06:33 cubieboard4 kernel: [   40.740779] eth0: no IPv6 routers present
Nov  9 18:06:33 cubieboard4 dhclient: No DHCPOFFERS received.
Nov  9 18:06:33 cubieboard4 dhclient: No working leases in persistent database - sleeping.
Nov  9 18:06:34 cubieboard4 ntpdate[2642]: Can't find host ntp.ubuntu.com: Name or service not known (-2)
Nov  9 18:06:34 cubieboard4 ntpdate[2642]: no servers can be used, exiting
Nov  9 18:06:34 cubieboard4 kernel: [   42.692163] CIFS VFS: Error connecting to socket. Aborting operation
Nov  9 18:06:34 cubieboard4 kernel: [   42.702040] CIFS VFS: cifs_mount failed w/return code = -101
Nov  9 18:06:37 cubieboard4 /usr/bin/crontab[2713]: (root) REPLACE (root)
sleepstop
Nov  9 18:06:37 cubieboard4 kernel: [   45.427922] init: plymouth-stop pre-start process (2725) terminated with status 1
Nov  9 18:06:37 cubieboard4 kernel: [   45.488556] init: tty1 main process (2729) killed by TERM signal
Nov  9 18:06:41 cubieboard4 transmission-daemon[2742]: Transmission 2.84 (14307) started (session.c:736)
Nov  9 18:06:41 cubieboard4 transmission-daemon[2742]: RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:824)
Nov  9 18:06:41 cubieboard4 transmission-daemon[2742]: RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:1033)
Nov  9 18:06:41 cubieboard4 transmission-daemon[2742]: Using settings from "/home/transmission/config" (daemon.c:557)
Nov  9 18:06:41 cubieboard4 transmission-daemon[2742]: Saved "/home/transmission/config/settings.json" (variant.c:1214)
Nov  9 18:06:41 cubieboard4 transmission-daemon[2742]: Watching "/home/transmission/rss/torrent" for new .torrent files (daemon.c:595)
Nov  9 18:06:41 cubieboard4 transmission-daemon[2742]: Using inotify to watch directory "/home/transmission/rss/torrent" (watch.c:72)

回复

使用道具 举报

6

主题

0

好友

6727

积分

论坛元老

Rank: 8Rank: 8

贡献
1238
金钱
2928
威望
1238
买家信用
卖家信用
积分
6727
发表于 2014-11-10 13:08:04 |显示全部楼层
顶起,没人高人路过吗。。。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区    

GMT+8, 2021-1-28 19:14 , Processed in 0.029610 second(s), 9 queries , Apc On.

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc. | Style by Coxxs

回顶部