Mounting hard drive from Linux Live CD
Did something stupid, and messed up my /etc/fstab by putting barrier=0 as an option to to my root directory. So, I booted from a Linux Live CD. My Linux distributor is Centos.
Did fdisk -l, and see /dev/sda being 1500 GB and assume it is my HD. It shows /dev/sda1 (which evidently does not end on cylinder boundary), and /dev/sda2. It also shows /dev/dm-0 and /dev/dm-1, and says both do not contain a valid partition type.
I mount sda1, and think it is the /boot of my hard drive, and cannot get to /etc/fstab and fix it.
I then try to mount sda2, but get "mount: /dev/sda2 already mounted or /mnt/sda busy". So, I try to umount /dev/sda2, but am told it is not mounted.
I then do mount, and see /dev/mapper/live-rw (the CD), /proc, /sys, /dev/pts, /dev/shm, and /proc/sys/fs/binfmt_misc. No sda2.
Can anyone help?
Last edited by NotionCommotion; 07-01-2013 at 11:09 AM.