我的2440的开发板带了一块硬盘,使用FAT32的文件系统存储文件。
在使用过程中出现了硬盘文件系统被破坏不能挂载的情况,硬盘是好了,重新格式化后就可以用了。
想来想去没有什么结果。
现在想在程序中实现一个软关机。因为以前都是外部断电来关机的。断电关机可能对硬盘造成一些影响。
就好像我们的电脑一样。
我在我的一块arm板上使用shutdown -h now来关机。
出来的信息如下:
root@sbc8018:~# shutdown -h now
Broadcast message from root (ttyS2) (Tue Apr 14 20:56:42 2009):
The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
INIT: Sending procesStopping telnet daemon.
Stopping syslogd/klogd: stopped syslogd (pid 1254)
stopped klogd (pid 1256)
done
Deconfiguring network interfaces... cat: can't open '/var/run/udhcpc.eth0.pid':
No such file or directory
done.
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
mount: can't find /mnt/ram in /proc/mounts
umount: none busy - remounted read-only
mount: cannot read /proc/mounts: No such file or directory
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
System halted.
我还实验了halt poweoff inin 0等关机命令 ,输出的信息都一样(pid 号不一样)。
此时电源指示灯还亮着。
我想问的是,这样已经实现了软关机吗?
我看了软关机的介绍。软关机是指关闭了系统么?
这样做能对硬盘起到保护作用么?