How do I mount a root partition in Linux?

How do I mount a root partition in Linux?
Answer
Please note that you can usually boot into RecoveryMode and run the passwd command directly.
  1. Boot the Ubuntu Live CD.
  2. Press Ctrl-Alt-F1.
  3. sudo mount /dev/sda1 /mnt.
  4. If you created a custom partition layout when installing Ubuntu you have to find your root partition using the fdisk utility. …
  5. sudo chroot /mnt.
22 мар. 2016 г.
 

Tìm kiếm

Back
Top