Web Design

Archive for the ‘Hardware’

Restore GRUB after installing Windows

Whenever you reinstall Windows with an existing Linux installation already present on the hard drive, the MBR gets an overwrite. You can restore GRUB to the previous settings by booting a Linux Live CD and following the [...]


Get rid of SWAP in Linux

If for whatever reason you wish not to use your Linux SWAP anymore, you can use the swapoff command. Do a swapon -s to see to which partition SWAP belongs to then a free -mt to check available memory. If you still want t[...]


Force reboot in Linux

An even better and cleaner method than the reset button is to use Ctrl+Alt+Del. When even that doesn’t work and the system has frozen, there’s always hope. Hold down Alt+SysRq and press the following keys in [...]


Scan for bad sectors in Linux

Bad sectors are the bruises of your harddisk. To check if a harddisk is in good shape, we can use its SMART capabilities: smartctl -t long /dev/hda To check for bad sectors, use badblocks -sv /dev/hda [...]