Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
resolving issue of vps using rescue system

How To Resolving Issue of VPS Using Rescue System
#1
Login to Rescue System & Run fdisk -l


Code:
root@rescue:~# fdisk -l



Quote:Disk /dev/sda: 524 MB, 524288000 bytes
207 heads, 18 sectors/track, 274 cylinders
Units = cylinders of 3726 * 512 = 1907712 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e4444

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         263      487424   83  Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 32, 33) logical=(0, 113, 15)
Partition 1 has different physical/logical endings:
     phys=(60, 206, 18) logical=(262, 37, 18)

Disk /dev/sdb: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d77c6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        6267    50331648   83  Linux
/dev/sdb2            6267        6528     2096128   82  Linux swap / Solaris

In the above output /dev/sda is having 524MB Space which is belong to rescue system and /dev/sdb is your VPS HDD where sdb1 is Linux Partition and sdb2 is Swap
So we need to mount our sdb1(Linux Partition in /mnt directory) s run the command

Code:
root@rescue:~# mount /dev/sdb1 /mnt

Change the directory to /mnt

Code:
root@rescue:~# cd /mnt/
root@rescue:/mnt# ls


Quote:bin   dev  home  lost+found  mnt  proc  sbin     srv  tmp  var
boot  etc  lib   media       opt  root  selinux  sys  usr

Note:
1. If you have fstab related issue then you can resolve them by editing fstab file using command

Code:
root@rescue:/mnt# nano /mnt/etc/fstab

Sample Output:

Quote:LABEL=root        /             ext4     defaults,errors=remount-ro 1 1
none             /dev/shm      tmpfs   defaults                    0 0
/dev/sda2        swap       swap       defaults        0 0


2. If you have resolver related issue you can resolve them by editing resolv.conf using command

Code:
root@rescue:/mnt# nano /mnt/etc/resolv.conf

Resolvers (If you don't know your DC resolvers then use Google resolver ):
nameserver 8.8.8.8
nameserver 8.8.4.4

3. If you have Grub/Boot related ssue then you can resolve them by editing grub.conf using command

Code:
root@rescue:/mnt# nano /mnt/etc/grub.conf

Sample Output:

Quote:default=0
timeout=10
title CentOS (2.6.32-431.5.1.el6.i686)
  root (hd0,0)
  kernel /boot/vmlinuz-2.6.32-431.5.1.el6.i686 root=LABEL=root ro crashkernel=auto
  initrd /boot/initramfs-2.6.32-431.5.1.el6.i686.img
title vmlinuz-2.6.32-431.el6.i686
  root (hd0,0)
  kernel /boot/vmlinuz-2.6.32-431.el6.i686 root=LABEL=root ro
  initrd /boot/initramfs-2.6.32-431.el6.i686.img

 
4. If you have issue related to Network that can be solve by editing your Ethernet Setting using command

Code:
root@rescue:/mnt# nano /mnt/etc/sysconfig/network-scripts/ifcfg-eth0

Sample Basic Ethernet Arguments:

Quote:DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.101
NETMASK=255.255.255.0
GATEWAY=192.168.0.1


5. If you want to repair your HDD then run the command

Code:
root@rescue:/mnt# fsck /dev/sdb1

fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/sdb1 is mounted.

WARNING!!!  The filesystem is mounted.   If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.

Do you really want to continue (y/n)?

If you press y then it will proceed further

Unmounting the partition

Code:
#umount /mnt/


Now reboot the system

Code:
#/sbin/reboot



Dinesh Kumar Mohanty
Ultra Web Solutions®
Bhubaneswar, Odisha, India.

UltratechHost - Your One Stop Offshore & Onshore Hosting Provider
Server Locations : Netherlands, Germany, Russia, Singapore & USA
Service Offers: Shared hosting | Reseller hosting | Cloud server | Dedicated server | VPS Hosting



Forum Jump:


Users browsing this thread: 1 Guest(s)