小编And*_*ria的帖子

如何将 stderr 重定向到文件

使用 nohup 将命令在后台运行时,某些内容会出现在终端中。

cp: error reading ‘/mnt/tt/file.txt’: Input/output error
cp: failed to extend ‘/mnt/tt/file.txt’: Input/output error
Run Code Online (Sandbox Code Playgroud)

我想将该内容保存到文件中。

command-line redirect

538
推荐指数
2
解决办法
99万
查看次数

在运行 Ubuntu Server 的计算机中保留 GPU 的原因

在我的旧主板出现问题后,我将我的 Ubuntu 切换到我的游戏计算机。我的主要问题是:是否有任何理由让我的 AMD HD 7850 在这台计算机上运行?

我的主板有 VGA/HDMI 接口。

任何应用程序、操作系统、Ubuntu 或系统都会使用 GPU 来处理任何数据吗?

graphics gpu amd-graphics

11
推荐指数
1
解决办法
4327
查看次数

使用选项“sec=ntlmv2”挂载的问题

我在 Windows 机器上共享了一个名为 D:\ 的分区,并且在我的 Ubuntu 服务器 12.4 中,我在 fstab 中有这一行来安装它

//10.0.0.39/D$/ /mnt/charles/ cifs user,file_mode=0777,dir_mode=0777,rw,gid=1000,sec=ntlmv2,credentials=/root/creds 0 0
Run Code Online (Sandbox Code Playgroud)

我添加了选项“sec=ntlmv2”,因为每次启动/重新启动我的 ubuntu 时都会出现此消息。

CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from nbtlm to ntlmv2 in kernel realese 3.3
Run Code Online (Sandbox Code Playgroud)

现在我不能用这个“sec=ntlmv2”选项挂载,因为在我看来。

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?提前致谢!

这是 --verbose 的结果,这可以帮助找到问题吗?

root@PITCAIRN:/mnt# mount -t cifs //10.0.39/D$/ /mnt/charles --verbose -ouser=Yamash,sec=ntlmv2 
Password: 
mount.cifs kernel mount options: ip=10.0.0.39,unc=\\10.0.39\D$,sec=ntlmv2,ver=1,user=Yamash,pass=********
mount error(22): Invalid argument 
Refer to the …
Run Code Online (Sandbox Code Playgroud)

fstab cifs

5
推荐指数
1
解决办法
3万
查看次数

如何检查所有 SMART 日志位置

如在 SMART 日志中:

设备日志仅包含最近的五个错误

是否有可能查看 SMART Enabled 磁盘的所有记录错误?

smartctl -xall
Run Code Online (Sandbox Code Playgroud)

或者

smartctl -all
Run Code Online (Sandbox Code Playgroud)

上面的两个命令仅显示最后五个命令,我需要检索有问题的 LBA 以向其写入零并再次检查 SMART。

disk ntfs smart 14.04

4
推荐指数
1
解决办法
5744
查看次数

标签 统计

14.04 ×1

amd-graphics ×1

cifs ×1

command-line ×1

disk ×1

fstab ×1

gpu ×1

graphics ×1

ntfs ×1

redirect ×1

smart ×1