Linux rescue mode 06/21/2010

TO show how to use linux rescue mode, 
I think it is better use video. 
here is my thoughts for the destroy and recover plan.
Destroy :
1. change grub.conf make it wrong
2. delete kernel files make it not bootable
3. change inittab make it reboot all the way
4. change fstab and make it not working at all
1.use rescue mode boot the linux, type in linux rescue
2. mount the / disk, fix inittab and fstab.
3. mount the boot disk, fix the grub.conf, reinstall the kernel files
for details, please check the video.
Categories: Linux
continue nis + nfs to make remote home dir
06/20/2010roliuckLeave a comment
This one is continue the work of  NIS:ypserv and yp bind setup
Now We will make the remote client can login with their home dir.
first , we have to make some extra work to distinguish the remote user and local user
On server create a dir for remote user
mkdir /home/rhome
now we can copy the user`s folder from /home to /home/rhome, and use usermod -d /home/rhome/tony tony to change tony`s home dir to /home/rhome/tony for example
vim /etc/exports
add following line
/home/rhome *(rw)
:wq save and quit
now start nfs on server
service nfs start
now goes to client side and make a auto mount file for remote user
mkdir /home/rhome
vim /etc/auto.master
add following line
/home/rhome   /etc/auto.rhome
vim /etc/auto.rhome
add following:
&     fstype=nfs    :/home/rhome/&
service autofs restart
now try to login in again, 
you will see after login there is no warning anymore cheers!

About Lei

I am an IT specialist with over 10 year experience - years on Automation, on-Premise or Azure.

I am happy to develop however never want be a full time developer. Only do what I have to do. If it has to be PowerShell,HTML, PHP, CSS, C#, VBS or JS, front end or backend, so be it, doesn't matter!

Spent years with Windows, SCCM, SharePoint, SQL and Exchange servers. For last several years, I have been actively working under On Premise > Azure environment.


Current Certificates:
    Microsoft® Certified-
  • -Enterprise Administrator
  • -Database Administrator
  • -SharePoint Administrator
  • -Administering and Deploying SCCM 2012
Red Hat Certified Technician
ITIL V3 Foundation - Practitioner

Working on Azure Certificates now and hopefully they can stop upgrading their questions one day! GIVE ME A BREAK!

Contact Lei

Name *
Email *
Comments *

Traffic since 10/08/2016

This week13
This month2086

Visitor Info

  • IP:
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online