Welcome to the Linux Foundation Forum!

root user login denied

Dear All,

Hi I am Pruthwiraj.I have installed Centos 5.5 in my laptop.Now it is unable to login as root user as harddisk is full.Harddisk capacity of my laptop is 320 gb.How to resolve this issue ?

Regards:

Pruthwiraj

Comments

  • Posts: 6
    Hi there,

    Boot on a live Linux distro (with CD or usb) and mount your hard drive :
    1. mkdir /mnt/hdd
    2. mount /dev/sda3 /mnt/hdd
    3. mkdir /mnt/hdd/boot
    4. mount /dev/sda1 /mnt/hdd/boot
    5. chroot /mnt/gentoo /bin/bash
    6. source /etc/profile
    7. export PS1="(chroot) $PS1"

    Once that executed, you will be able to got a shell with a real environement, meaning that in case you run a Live Linux distro based on debian (ubuntu live for example) but your disto is Fedora, you will be able to yum or any other stuff of fedora.

    Of course, you have to replace sda3 / sda1 by your own partition (try a fdisk /dev/sda then input the letter p for look your partition list)

    In my Example, sda1 is the boot partition and sda3 the root one.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training