mounting repair file system remount linux


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //go to grub loader, press ESC, then highlight linux, click e to edit, then click e on the kernel line to edit again and add the word single to the end. ENTER then b to boot in single user mode. Once at command prompt.
  2.  
  3. mount -o remount,ro /dev/sdx //to go to read only
  4. e2fsck -fy /dev/sdx //to repair file system
  5. mount -n -o remount,rw /dev/sdx //to return to read write mode

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.