Category Archives: Operating Systems

Linux : How to reallocate swap into memory

Use the following script if you want to reallocate the content of your swap area back to RAM. Before doing this, make sure you have enough free memory. #!/bin/bash echo -e “\nOutput of free before:” free swapoff -a ; swapon -a echo -e “\nOutput of free after:” free echo “”

Linux : Call Trace security_ops_task_setrlimit

Did you noticed the following message booting up CentOS/RHEL 5.9? You need to implement a remote task_setrlimit in your security module and call it directly from this functionWARNING: at security/security.c:51 security_ops_task_setrlimit() Call Trace: [<ffffffff8012f117>] security_ops_task_setrlimit+0x87/0x96 [<ffffffff8009dcd6>] do_prlimit+0xd7/0x1d2 [<ffffffff8009ee1f>] sys_setrlimit+0x36/0x43 [<ffffffff8005d29e>] tracesys+0xd5/0xdf According to RedHat, this message is harmless and can be safely ignored unless you’re defining… Read More »

Linux : How to show boot progress on CentOS6/RHEL6

Since CentOS6/RHEL6, boot messages are hidden behind a splash screen that display a progress bar. To show the boot progression, simply press the “arrow up“ key. To make the change permanently, edit the Grub configuration file : /boot/grub/grub.conf And remove the following : rhgb quiet

Windows : BSOD 0x0000006B Process1_Initialization_Failed

Windows 7 or Server 2008 might display a blue screen of death booting your system such as : PROCESS1_INITIALIZATION_FAILED *** STOP: 0x0000006B This can be a filesystem issue or hardware related such as ; bad disks, bad or incorrect cables. The first steps for resolution would be : – Boot in recovery and open the Command tool… Read More »

Linux : ata: failed command: READ FPDMA QUEUED

Got “READ FPDMA QUEUED” errors from “dmesg” output on your Linux machine? ata2.00: status: { DRDY ERR } ata2.00: error: { UNC } ata2.00: failed command: READ FPDMA QUEUED ata2.00: cmd 60/28:70:28:19:89/00:00:6c:01:00/40 tag 14 ncq 20480 in res 41/40:00:00:00:00/00:00:00:00:00/00 Emask 0x9 (media error) This probably mean you have controller driver issue. Some controllers have known… Read More »

Debian : Resume apt-get after SSH timeout

Your SSH connection get cut or timeout while you were either updating or installing an application with apt-get? Don’t worry, these easy steps will get you out of trouble! 1. Try to run your command again : root@server:~# apt-get install <app_name> E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable) E: Unable… Read More »

Windows : How to automatic logon

Here is how to turn on user automatic logon for Windows 7 and Windows Server 2008. Windows 7 : Both options are available (using the GUI or directly modifying the registry as for Windows Server 2008). – Start > Run – Type “control userpasswords2” – Then click OK [x] > [ ] Uncheck the box… Read More »

Linux : How to view hard disk partitions UUIDs?

On modern/latest Linux and Unix distributions, system rely on UUID rather than disk device name itself. To find out the UUID, you can use this simple command called “blkid” : blkid <DEVICE_PARTITION_NAME> Example : blkid /dev/sda1 Will return something like this : /dev/sda1: UUID=”1abd977f-65e0-46ab-b2bb-3651053c6e77″ TYPE=”ext4″