Posts

Steps to rectify the Corrupted MBR on RHEL 5 & 6

Restore MBR in Linux Boot into the Rescue mode. boot:linux rescue Select language, keyboard and skip finding the installation Make a temporary mount point /vxvm and mount the root partition on it. mkdir /vxvm mount -t ext3 /dev/sda1 /vxvm [ where /dev/sda1 is the root partition ] If the disk has a separate boot partition mount it on /vxvm/boot mount -t ext3 /dev/sda2 /vxvm/boot [where /dev/sda2 is the boot partition] Recreate the master boot record (MBR) on the root disk. For the GRUB boot loader : Check contents of /boot/grub/menu.lst or /boot/grub/grub.conf or /etc/grub.conf are correct Use the /vxvm/sbin/grub command to enter into the grub menu to recreate the MBR on the disk # /vxvm/sbin/grub grub> root (hd0,1) grub> setup (hd0) grub> quit

restore default system permissions on Red Hat, CentOs, Fedora accidentally used chmod 777 /

How to restore default system permissions on Red Hat, CentOs, Fedora I recently came across a system which had some directories set to 777(recursively), the sysadmin needed to install an application and changed all the permissions!!!! a mess, I didn't know where to start, but one of my colleagues pointed that rpm has a parameter called --setperms and --setugids. I created a one liner that does the job, it takes time but It works !!!!! 1) To reset uids and gids on files and directories : for u in $(rpm -qa); do rpm --setugids $u; done 2) To permissions on files and directories for p in $(rpm -qa); do rpm --setperms $p; done # ll /etc/ssh/ # chmod 600 /etc/ssh/ssh_host_rsa_key # chmod 600 /etc/ssh/ssh_host_dsa_key # service sshd restart

Uninstalling a Software through Group Policy

On the Windows Taskbar, click Start > Programs > Administrative Tools > Group Policy Management . The version of Windows that you use may display All Programs instead of Programs in the Start menu. In the Group Policy Management window, in the console tree, expand the domain, expand Computer Configuration , expand Software Settings , right-click Software Installation , and then click Properties . On the Advanced tab, check Uninstall this application when it falls out of the scope of management , and then click OK . In the right pane, right-click the software package, and then click Remove . In the Remove Software dialog box, check Immediately uninstall the software from users and computers , and then click OK . Close the Group Policy Object Editor window, and then close the Group Policy Management window. The software uninstalls when the client computers are restarted.

Troubleshooting Event ID: 333

Image
 Issue With Microsoft Windows Server 2003, you get the following events and the server performance may be degraded: Type: Error Date: Date Time: Time Event ID: 333 Source: Application Popup User: N/A Computer: MachineName Description: An I/O operation initiated by the Registry failed unrecoverably. The Registry could not read in, or write out, or flush, one of the files that contain the system's image of the Registry. Additional symptoms that you might see with this event are the following: Performance issues with the SQL databases. Issues with cluster resources going offline. File/Print server performance issues. Login issues where you get insufficient memory errors and profile load issues. Complete server hang. SQL server error logs may rep...

Not enough server storage is available to process this command

Image
0x8007046A When Copying a Large File Warning : This post deals with editing the registry. If you don’t know what that is stop right here & ask someone else to help you. Using the registry editor incorrectly can cause serious problems that may require you to reinstall Windows. Use the registry editor at your own risk. When copying a large file from Windows Server 2003 to Windows Server 2008 R2 you may receive an error that says, “Error 0x8007046A: Not enough server storage is available to process this command.” If you try to copy the same file to a USB hard drive on the Windows Server 2003 box you get a similar error that says, “Cannot copy filename : Insufficient system resources exist to complete the requested service.” To resolve this create the following registery entry on the Windows Server 2003 box & reboot the server. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters] “IRPStackSize”=dword:00000015 If ...

How to enable dotnet framework feature in Windows2012 Server

Image
If you have an application that you want to run on Windows Server 2012  that requires the .NET Framework 3.5, you will most likely run in to a problem when trying to install it. If you are trying to install .NET Framework 3.5 from the  Server Manager  GUI, you will see this when installing the feature: “Do you want to specify an alternate source path? One or more installation selections are missing source files…” To solve this, you can either: 1. Go to a command prompt and enter this: dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess Note: Source should be the Windows installation disc. In my case, this was located on D: 2. Go down to “Specify an alternate source path” and enter “d:\sources\sxs” as the path. Now you should see this under your Features list:

Enable Telnet Client Windows 2008 and Windows 2012 server

Install Telnet Client on Windows Server 2008 R2 or Windows Server 2008 On Windows Server 2008, you can use the Role Management tool to install optional components. To install Telnet Client on Windows Server 2008 R2 or Windows Server 2008 Start Server Manager. Click Start , right-click Computer , and then click Manage . If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue . In the Features Summary section, click Add features . In the Add Features Wizard , select Telnet Client , and then click Next . On the Confirm Installation Options page, click Install . When installation finishes, on the Installation Results page, click Close .