关于Linux中的halt,在这些地方:
关闭、停止和重新启动命令之间有什么区别?
理解Linux中的关机、断电、暂停和重新引导命令
什么是Linux中的什么命令?
请说明以下内容:
halt is usually to get to a state where you can perform low level maintenance.
和
You can use it to get the system to a state where you can perform low level maintenance.
因此:“您可以执行低级别的维护”是什么意思?
一些需要理解的例子/情景将是有
我们注意到安装在同一安装点上的两个分区。修改和创建文件似乎是一切正常的事情,即使是inode的使用也是一样的。
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
uname -r
2.6.32-431.11.2.el6.x86_64
df -hT /mydir
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/STG-MYDIR
ext4 30G
我最近买了一个4GB的USB内存,Serioux,数据旅行者。今天我在它上写了Linux 13肉桂版,现在我想格式化它。
我尝试转到磁盘实用程序,选择它并使用“不要分区”选项按下"Format驱动器“,但是当我单击Format时,它再次给出以下消息:
One or more partitions are busy on /dev/sdc
我已经尝试过安全地删除它并重新启动系统很多次了,但是它没有工作。
我在机器上远程使用SSH,但是在错误地删除了ld-linux-x86-64.so.2文件后,我关闭了ssh会话,现在我无法登录,因为它给了我以下错误:
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-32-generic x86_64)
* Documentation: https://help.ubuntu.com/
21 packages can be updated.
16 updates are security updates.
Last login: Sat Apr 2 02:52:19 2016 from *****
/
我碰巧删除了我系统上的/boot目录,而不是我应该删除的目录。我找到这是为了恢复它,但是apt --reinstall有问题,所以我决定手动删除和安装软件包。可能不是最聪明的想法,现在有两个破碎的图像,我不知道如何修复。
运行dpkg --audit告诉我
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure or
我最近安装了Ubuntu18.04LTS,并尝试了几个解决方案来解决这个问题,但是到目前为止没有什么效果。
以下是rfkill list的输出
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
当我尝试bluetoothctl时,我得到的是:
hozayfa@hozayfa:~$ bluetoothctl
Agent registered
[bluetooth]# powe
我的特定场景:我想启动一个新的Linode VM solo来运行MongoDB。我会为所有与磁盘相关的东西提供备份服务等,所以这个关于“风险”的问题只适用于以下问题。
我一直在阅读MongoDB文档,我已经读到了fsync部分。它提到,默认情况下,内存中的数据每60秒写入磁盘一次,基本上据我所知。
所以,如果我理解正确的话,在断电或MongoDB实例不安全关闭的情况下,MongoDB固有的数据丢失风险最多为59秒。