SSH the server in rescue mode
1. Create a directory “test” inside /mnt
# cd /mnt
# mkdir test
2. Mount the root partition on /mnt/test:
In order to identify the root partition we have to proceed as follows:
run
# fdisk -l
* As we know that usually in servers the default root partition is of 10-20GB we can identify the root partition easily by checking the size of “md1″ or “md2″
*Note commonly small size partition is the one
Now after identifying the root partition Run the command:
# mount /dev/rootpartition /mnt/test/
(replace “rootpartition” with “md1″ or md2″, whichever is the actual root partition)
3. Now chroot into the root partition :
# chroot /mnt/test/ (This makes us the root user of the server)If you will reboot the server again you have mount the / partition.
No comments:
Post a Comment
Do Write about the Blog and Welcome to the world where open source is every thing :-)