Skip to main content
Commonmark migration
Source Link

Using live USB/CD : (using recovery mode)

  1. Boot from live usb/cd and open terminal.

  2. Use gparted or fdisk -l to identify elementary OS partition from the list.

    The partition is just something like /dev/sda1

  3. Mount this somewhere (Be sure to select correct partition)

     sudo mount /dev/sda10 /mnt
    

Note :

  • . In my system elementary OS partiton is /dev/sda10, replace it with yours.

  • . If you have a lvm partiton, you need to mount it to /mnt/


  1. Now run the following command as it is:

     for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d; done
    
  2. Now become root of system,

     sudo chroot /mnt
    
  3. Set the password for the account:

     passwd [user_name]
    
  4. Now reboot

    Imgur

Imgur

source here

Using live USB/CD : (using recovery mode)

  1. Boot from live usb/cd and open terminal.

  2. Use gparted or fdisk -l to identify elementary OS partition from the list.

    The partition is just something like /dev/sda1

  3. Mount this somewhere (Be sure to select correct partition)

     sudo mount /dev/sda10 /mnt
    

Note :

  • . In my system elementary OS partiton is /dev/sda10, replace it with yours.

  • . If you have a lvm partiton, you need to mount it to /mnt/


  1. Now run the following command as it is:

     for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d; done
    
  2. Now become root of system,

     sudo chroot /mnt
    
  3. Set the password for the account:

     passwd [user_name]
    
  4. Now reboot

Imgur

source here

Using live USB/CD : (using recovery mode)

  1. Boot from live usb/cd and open terminal.

  2. Use gparted or fdisk -l to identify elementary OS partition from the list.

    The partition is just something like /dev/sda1

  3. Mount this somewhere (Be sure to select correct partition)

     sudo mount /dev/sda10 /mnt
    

Note :

  • . In my system elementary OS partiton is /dev/sda10, replace it with yours.

  • . If you have a lvm partiton, you need to mount it to /mnt/


  1. Now run the following command as it is:

     for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d; done
    
  2. Now become root of system,

     sudo chroot /mnt
    
  3. Set the password for the account:

     passwd [user_name]
    
  4. Now reboot

    Imgur

source here

added 80 characters in body
Source Link
Ravan
  • 7.9k
  • 6
  • 36
  • 71

Using live USB/CDUsing live USB/CD : :(using recovery mode)

  1. Boot from live usb/cd and open terminal.

  2. Use gparted or fdisk -l to identify elementary OS partition from the list.

    The partition is just something like /dev/sda1

  3. Mount this somewhere (Be sure to select correct partition)

     sudo mount /dev/sda10 /mnt
    

Note :

  • . In my system elementary OS partiton is /dev/sda10, replace it with yours.

  • . If you have a lvm partiton, you need to mount it to /mnt/


  1. Now run the following command as it is:

     for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d; done
    
  2. Now become root of system,

     sudo chroot /mnt
    
  3. Set the password for the account:

     passwd [user_name]
    
  4. Now reboot

Imgur

source here

Using live USB/CD :

  1. Boot from live usb/cd and open terminal.

  2. Use gparted or fdisk -l to identify elementary OS partition from the list.

    The partition is just something like /dev/sda1

  3. Mount this somewhere (Be sure to select correct partition)

     sudo mount /dev/sda10 /mnt
    

Note :

  • . In my system elementary OS partiton is /dev/sda10, replace it with yours.

  • . If you have a lvm partiton, you need to mount it to /mnt/


  1. Now run the following command as it is:

     for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d; done
    
  2. Now become root of system,

     sudo chroot /mnt
    
  3. Set the password for the account:

     passwd [user_name]
    
  4. Now reboot

Imgur

source here

Using live USB/CD : (using recovery mode)

  1. Boot from live usb/cd and open terminal.

  2. Use gparted or fdisk -l to identify elementary OS partition from the list.

    The partition is just something like /dev/sda1

  3. Mount this somewhere (Be sure to select correct partition)

     sudo mount /dev/sda10 /mnt
    

Note :

  • . In my system elementary OS partiton is /dev/sda10, replace it with yours.

  • . If you have a lvm partiton, you need to mount it to /mnt/


  1. Now run the following command as it is:

     for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d; done
    
  2. Now become root of system,

     sudo chroot /mnt
    
  3. Set the password for the account:

     passwd [user_name]
    
  4. Now reboot

Imgur

source here

Source Link
Ravan
  • 7.9k
  • 6
  • 36
  • 71

Using live USB/CD :

  1. Boot from live usb/cd and open terminal.

  2. Use gparted or fdisk -l to identify elementary OS partition from the list.

    The partition is just something like /dev/sda1

  3. Mount this somewhere (Be sure to select correct partition)

     sudo mount /dev/sda10 /mnt
    

Note :

  • . In my system elementary OS partiton is /dev/sda10, replace it with yours.

  • . If you have a lvm partiton, you need to mount it to /mnt/


  1. Now run the following command as it is:

     for d in dev sys run proc; do sudo mount --bind /$d /mnt/$d; done
    
  2. Now become root of system,

     sudo chroot /mnt
    
  3. Set the password for the account:

     passwd [user_name]
    
  4. Now reboot

Imgur

source here