sillydanny
发表于 2020-10-24 10:25:26
gamepc 发表于 2020-10-23 20:42
如果把 source /etc/profile
这个加到开机启动里面去,该加到那个文件?
使用這代碼可以加入到開機自啟
sed -i '/exit 0/i\source /etc/profile' /etc/rc.local
ahmengkai
发表于 2020-10-26 15:10:19
可以装docker吗;P我的主板貌似有用了?https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif
sillydanny
发表于 2020-10-26 15:15:40
ahmengkai 发表于 2020-10-26 15:10
可以装docker吗我的主板貌似有用了?
MCS7系統不支持, 而且難為了這RTD1195芯片.
黑威4.3.4聽說可以.
mysoy
发表于 2020-10-26 15:23:18
哥们,20190812_162409_alpn纯Linux版本,硬盘怎么实现休眠啊? 我查到有个mdadm组raid程序,每隔几十秒写一次硬盘,但是搞不掉他.
sillydanny
发表于 2020-10-26 15:43:22
本帖最后由 sillydanny 于 2020-10-26 15:44 编辑
mysoy 发表于 2020-10-26 15:23
哥们,20190812_162409_alpn纯Linux版本,硬盘怎么实现休眠啊? 我查到有个mdadm组raid程序,每隔几十秒写一次 ...
這個我也不太清楚, 查看/etc/hdparm.conf文件, 預設沒有設定休眠.
在/etc/hdparm.conf后添加下面的配置:/dev/sda {
spindown_time = 120
}
/dev/sdb {
spindown_time = 120
}
---------------------------------------------
內容來自:
https://www.lotlab.org/2020/04/09/run-debian-on-rtd1195-based-nas-device/
mysoy
发表于 2020-10-26 16:21:48
本帖最后由 mysoy 于 2020-10-26 16:24 编辑
sillydanny 发表于 2020-10-26 15:43
這個我也不太清楚, 查看/etc/hdparm.conf文件, 預設沒有設定休眠.
在/etc/hdparm.conf后添加下面的配置: ...
我使用
hdparm -Y /dev/sdb2
hdparm -Y /dev/sda2
测试硬盘休眠,2块硬盘停下后,功耗约7W, 但没有几十秒,就重新跳回17W,和正常读写功耗一致.
使用dmesg -Tw查看,每隔一分钟md_raid1 就写入2个硬盘一次,16:17:36 16:18:36
我没有组raid,2个单盘,独立使用的经查是mdadm程序,想停用,但无法成功.大神可以试下.寻找下解决方案,谢谢!
kworker/u4:2(11938): WRITE block 2340120 on mmcblk0p1 (8 sectors)
kworker/u4:2(11938): WRITE block 3149848 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7192 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7200 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7208 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7216 on mmcblk0p1 (8 sectors)
kworker/u4:2(11938): WRITE block 8 on md0 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sdb1 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sda1 (8 sectors)
kworker/u4:2(11938): WRITE block 8388736 on md0 (8 sectors)
kworker/u4:2(11938): WRITE block 8388904 on md0 (8 sectors)
kworker/u4:2(11938): WRITE block 8388912 on md0 (8 sectors)
kworker/u4:2(11938): WRITE block 8454528 on md0 (8 sectors)
kworker/u4:2(11938): WRITE block 8454536 on md0 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sdb1 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sda1 (8 sectors)
kworker/u4:2(11938): WRITE block 2621456 on mmcblk0p1 (8 sectors)
kworker/u4:2(11938): WRITE block 1312784 on mmcblk0p1 (8 sectors)
kworker/u4:2(11938): WRITE block 2340120 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7224 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7232 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7240 on mmcblk0p1 (8 sectors)
kworker/u4:1(11609): WRITE block 3149848 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7248 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7256 on mmcblk0p1 (8 sectors)
jbd2/mmcblk0p1-(736): WRITE block 7264 on mmcblk0p1 (8 sectors)
kworker/u4:1(11609): WRITE block 8 on md0 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sdb1 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sda1 (8 sectors)
kworker/u4:1(11609): WRITE block 8388736 on md0 (8 sectors)
kworker/u4:1(11609): WRITE block 8388904 on md0 (8 sectors)
kworker/u4:1(11609): WRITE block 8388912 on md0 (8 sectors)
kworker/u4:1(11609): WRITE block 8454528 on md0 (8 sectors)
kworker/u4:1(11609): WRITE block 8454536 on md0 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sdb1 (8 sectors)
md0_raid1(2915): WRITE block 16775040 on sda1 (8 sectors)
kworker/u4:1(11609): WRITE block 2621456 on mmcblk0p1 (8 sectors)
sillydanny
发表于 2020-10-26 16:28:58
mysoy 发表于 2020-10-26 16:21
我使用
hdparm -Y /dev/sdb2
hdparm -Y /dev/sda2
抱歉, 我也不清楚. 如有機會再研究.
r743007158
发表于 2020-10-27 15:57:22
前面正常到后面环境变量就出错,大佬指导下
r743007158
发表于 2020-10-27 16:02:21
sed -i '$d /etc/rc.local
sed -i -e '$aln -sf /mnt/hdd1/opt/ /opt' /etc/rc.local
sed -i -e '$a/opt/etc/init.d/rc.unslung start' /etc/rc.local
sed -i -e '$aexit 0' /etc/rc.local
这个代码如何添加进去