Warning: Missing argument 2 for wp_widget() in /home/kernelha/public_html/wp-includes/widgets.php on line 76
Linux | Linux Tutorial - Part 4

How should I run fsck on a Linux file system

Scenario / Question: I need to check file system for errors using fsck. Can I run fsck on a mounted file system ? Solution / Answer: Running fsck on a mounted file system can result in data corruption. The two options are: 1) Change the running state of the system to single user mode and unmount [continue...]

Unlink or Remove a Symbolic link in Linux

Scenario / Question: How to unlink or remove a symbolic in linux that was created with ln Solution / Answer: Use the unlink command To unlink a symbolic link file : # unlink symbolic_link_file To unlink a symbolic link to a directory : # unlink symbolic_link_dir When unlinking a directory make [continue...]

Linux NTFS Read and Write using NTFS-3G

Scenario / Question: How do I write or read from NTFS formated partition in linux Solution / Answer: Install and use the NTFS-3G Driver NTFS-3G Packages The ntfs-3g packages can be found on the NTFS-3G website NTFS-3G-Download You can also use yum to install NTFS-3G First you will need the [continue...]

Fedora 10 Enable GUI Login for Root

Scenario / Question: How do I login as user root on Fedora 10 GUI Solution / Answer: Edit the PAM module called pam_succeed_if.so Edit /etc/pam.d/gdm Login in as a regular user and open a Terminal (Applications > System Tools > Terminal) and su to root: $ su - Change the file /etc/pam.d/gdm [continue...]

Access Windows Shares in Linux

Scenario / Question: How do I permanently mount a windows share on my linux machine Solution / Answer: Make sure you have the needed packages installed Use mount command with the smbfs setting Secure your username and password for accessing the windows share Make sure you have the smbfs and [continue...]

Linux LVM Extend on Software RAID Partition

Scenario / Question: How do I extend my LVM to include another RAID Array partition Solution / Answer: Create a new Physical Volume Extend the Volume Group Extend the Logical Volume Resize the File System to the new size Display the current Physical Volumes: # pvdisplay --- Physical volume --- [continue...]

Linux adding and sharing a hot spare device in software RAID

Scenario / Question: How do I add a hot spare to my existing RAID Arrays and also have it shared among the RAID Arrays Solution / Answer: Use mdadm to hot add the new drive partition to the RAID Array Configure mdadm.conf to include “spare-group” setting Configure mdadm to run in [continue...]

Linux Software RAID 1 Array How to Manual Setup

Scenario / Question: Setup a RAID 1 Array in an existing system using two new hard drives. Solution / Answer: Check the Partition Table on the new drives and create a RAID partition. Create a new RAID 1 Array using the newly created partitions Create mdadm.conf configuration file for the RAID [continue...]

Linux APC UPS with apcupsd

Scenario / Question: How do I install apcupsd APC UPS software on my linux machine Solution / Answer: Obtain the apcupsd software from www.apcupsd.org and configure based on your type of APC UPS Download apcupsd software: The software can be found on sourceforge.com located here . We will be [continue...]

Replacing Failed Raid Drive and Grub Install

Scenario / Question: First drive /dev/sda or /dev/hda failed in a RAID 1 configuration and now system will not boot. System booting but only getting a prompt that shows grub and a flashing cursor. Prevent system from crashing on reboot if first drive in RAID Array fails. Solution / Answer: Use [continue...]

« Previous PageNext Page »