-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
  • someone help me to solve this – Poke May 15 '14 at 5:00
  • As said earlier, we need more info. What's the output of fdisk -l /dev/sda and how many hard drives do you have? – Louis Matthijssen May 15 '14 at 5:16
  • 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 – Poke May 15 '14 at 6:34
  • 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 – Poke May 15 '14 at 6:36
  • /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 – Poke May 15 '14 at 6:37
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

| improve this answer | |
  • same problem :- General error mounting filesystem. A maintenance shell will now be started. CONTROL-D will terminate this shell and reboot the system – Poke May 15 '14 at 6:55
  • boot from live usb/cd and try installing boot-repair here is how to do that howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot – Sudheer May 15 '14 at 7:01
  • now it's working properly when boots up it asking for password entering correct password it will bring me back to log in screen – Poke May 15 '14 at 7:29
  • did you use boot-repair – Sudheer May 15 '14 at 7:32
  • no i solve it from doing like this mount -t ext4 -o rw,remount /dev/sda1 / and echo "UUID=52e062e0-716c-4828-9bf1-05b93fdaef93 / ext4 errors=remount-ro 0 1" > /etc/fstab – Poke May 15 '14 at 7:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.