How do I use chroot in Ubuntu?

Bảo Vy

Member
How do I use chroot in Ubuntu?
Answer
Recover Grub
  1. Boot the Ubuntu Live CD.
  2. Press Ctrl-Alt-F1.
  3. Find the partition where your /boot directory is (normally the root partition) check the previous tip for that.
  4. sudo mount /dev/sda1 /mnt.
  5. sudo chroot /mnt.
  6. grub.
  7. find /boot/grub/stage1 (will output a partition name like (hd0,3) )
  8. root (hd0,3)
22 мар. 2016 г.
 

Tìm kiếm

Back
Top