-1

etc/fstab accidentally edited or deleted, I don't know. Please someone help me to solve this. I am new to Ubuntu.

General error mounting filesystem.
A maintenance shell will now be started.
CONTROL-D will terminate this shell and reboot the system

More info:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 
255 heads, 63 sectors/track, 121601 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes 
Sector size (logical/physical): 512 bytes / 4096 bytes 
I/O size (minimum/optimal): 4096 bytes / 4096 bytes 
Disk identifier: 0x0005a46f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1 *             1       74697   599999489    5  Extended Partition 1 does not start on physical sector boundary. 
/dev/sda2           75195      100094   200000512   83  Linux 
/dev/sda3           74697       75195     3999744   82  Linux swap / Solaris 
/dev/sda4          100094      121602   172761088   83  Linux 
/dev/sda5               1       31124   249999360   83  Linux
/dev/sda6           31124       62248   249999360   83  Linux 
/dev/sda7           62248       64738    19998720   83  Linux 
/dev/sda8           64738       69717    39999488   83  Linux 
/dev/sda9           69718       74573    38999040   83  Linux 
/dev/sda10          74573       74697      998400   83  Linux
karel
  • 122,292
  • 133
  • 301
  • 332
Poke
  • 1
  • 3

1 Answers1

0

To solve ur problem you need a ubuntu live usb/cd . boot into ubuntu from cd/usb and open terminal and command blkid note UUID no of your ubuntu partition and swap. if your ubuntu and swap partitions dont show up then mount them and try again.

after noting uuid no's go to your ubuntu partition and go to etc/ and create a empty document named fstab

copy the below two line starting with uuid in that fstab

UUID=xxxx / ext4 errors=remount-ro 0 1

replace the above xxxx with your noted UUID no of ubuntu partition

UUID=xxxx none swap sw 0 0

replace this xxxx with swap uuid no

and after that reboot

still no good then boot into ubuntu live usb once more and install boot-repair and run boot repair

i hope that helps

Sudheer
  • 5,213