Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can re-edit /etc/fstab by booting the live DVD and mount your drive. Here is an example on how to do this.

Boot from the live DVD and open a terminal as root. First use fdisk -l to identify your partitions.

This example is from a system that uses default partitioning of Fedora 19.

[root@localhost ~]# fdisk -l

Disk /dev/mapper/live-rw: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/live-osimg-min: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0003948c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    41943039    20458496   8e  Linux LVM

Disk /dev/mapper/fedora-swap: 2164 MB, 2164260864 bytes, 4227072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-root: 18.8 GB, 18782093312 bytes, 36683776 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Mount the root partition.

mkdir /mnt/root
mount /dev/mapper/fedora-root /mnt/root

Edit /etc/fstab with vi.

vi /mnt/root/etc/fstab

Reboot and you should be good to go.

/sbin/shutdown -r now

If you need to restore Grub then please see my answer for question 34772 (this is a link) on how to restore Grub with a default Fedora 19 installation.