MySQL DATETIME from Bash date
Just execute this:
$> date +"%Y-%m-%d %H:%M:%S"
this will produce the same output as:
SELECT now( )
Output: 2009-10-29 09:53:19
Urlaubsfotos, Thesen, Fun
Just execute this:
$> date +"%Y-%m-%d %H:%M:%S"
this will produce the same output as:
SELECT now( )
Output: 2009-10-29 09:53:19
Normalerweise kann man mit umount /device ein Verzeichnis/Device abhängen. Das klappt manchmal nicht. Stattdessen erhält man ein umount: /device: device is busy
Ansonsten schweigt er sich aus. Aber wenn ich es doch gern unmounten will! Irgend ein Prozess blockiert hier und man weiß nicht welcher. Die Rettung naht in Form von man fuser .
Mit fuser -m /device werden einem die blockierenden Prozesse angezeigt. Die Informationen kann man dann ps ax vergleichen und erhält die pid zum Prozess.
kill -9 pid und dann klappts auch mit dem umount.
Hier mit Beispiel:
root@homer:~# umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
root@homer:~#
root@homer:~# fuser -m /mnt/cdrom/
/mnt/cdrom/: 24066c
root@homer:~# ps aux | grep 24066
root 24066 0.0 0.5 2244 1284 pts/10 S 14:04 0:00 -su
root@homer:~#
root@homer:~# kill 24066
root@homer:~#
root@homer:~# umount /mnt/cdrom/
Das Beispiel stammt von
http://www.linux-noob.com/forums/index.php?/topic/150-cant-umount-cdrom/
Copyright © 2010 Stempell All rights reserved. Theme by Laptop Geek.