如何使用 linux 检查 eMMC 的健康状况?
看来smartctl处理不了了:
root@om:~# smartctl -a /dev/mmcblk0
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-63-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/mmcblk0: Unable to detect device type
Please specify device type with the -d option.
Use smartctl -h to get a usage summary
Run Code Online (Sandbox Code Playgroud)
我猜没有类型匹配 eMMC。我看到这些类型smartctl -h:
-d TYPE, --device=TYPE
Specify device type to one of: ata, scsi, sat[,auto][,N][+TYPE],
usbcypress[,X], usbjmicron[,p][,x][,N], usbsunplus, marvell, areca,N/E,
3ware,N, hpt,L/M/N, megaraid,N, aacraid,H,L,ID, cciss,N, auto, test
Run Code Online (Sandbox Code Playgroud)
如果你好奇,这里是我的奥德赛日志:https : //github.com/guettli/linux-on-emmc/blob/master/README.rst
如何从 shell(没有 yast)禁用 SuSEfirewall2?
我们使用 OpenSuSE 12.3
我尝试过这个:
workdevel123:~ # systemctl disable SuSEfirewall2.service
Run Code Online (Sandbox Code Playgroud)
但我认为这不是解决方案:
workdevel123:~ # systemctl is-enabled SuSEfirewall2.service
Failed to issue method call: No such file or directory
Run Code Online (Sandbox Code Playgroud) 此命令在 OpenSuSE 11.4 上失败:
root@host# sudo -S -u "coreapp_customer1_d" -g "coreapp_customer1_d" /bin/bash -l -c "mkdir -p /home/coreapp_customer1_d/.ssh"
Run Code Online (Sandbox Code Playgroud)
这条消息:
Sorry, user root is not allowed to execute
'/bin/bash -l -c mkdir -p /home/coreapp_customer1_d/.ssh'
as coreapp_customer1_d:coreapp_customer1_d
on workdevel114.
Run Code Online (Sandbox Code Playgroud)
但它适用于 OpenSuSE 12.3。
我比较了两个系统的 /etc/sudoers 文件,并且(注释行除外)它们是相同的。
我用 GIMP 创建了一条颜色曲线。它看起来像这样:
~/.gimp2.8/curves/selphy
Run Code Online (Sandbox Code Playgroud)
(只是第一行)
# GIMP curves tool settings
(time 0)
(channel value)
(curve
(curve-type smooth)
(n-points 17)
(points 34 0.000000 0.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 0.375000 0.490637 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 1.000000 1.000000)
(n-samples 256)
(samples 256 .....
Run Code Online (Sandbox Code Playgroud)
我想用转换(ImageMagick)批量处理一些图像。
有没有办法使用这条曲线convert?