1

I cant login to Ubuntu.

The splash screen stuck after checking file system. I used "storage device manager" (pySdm) to mount drives at boot time and also changed some options in it (which I can't remember now).

Since then Ubuntu (12.04) is not starting.

Anwar
  • 76,649
aditya
  • 25

2 Answers2

1

If your problem is the the new drives you added, maybe you can boot into root, you can see this question How do I boot into a root shell? , edit /etc/fstab and check if there is anything wrong with the new disks.

If you don't find anything wrong, create a backup of the file (to be safe) and remove the new added disks entries, just make sure not to remove your Ubuntu partitions.

If you don't find anything wrong, try posting the contents of the file here maybe you can get some help with it.

Hope this helps

j0N45
  • 182
  • i'm completely newbee and i cant open fstab in shell prompt. @jON45 – aditya Aug 08 '12 at 08:12
  • Did you manage to do the step and fall into a root shell? If your problem is the editor you can use pico to edit the file. just do "pico /etc/fstab" (don't forget to create a backup of the file "cp /etc/fstab /etc/fstab.backup") – j0N45 Aug 08 '12 at 08:14
  • i got fstab.pls hlp me with bcpping the file. – aditya Aug 08 '12 at 08:30
  • error writing /etc/fstab.backup: read-only file system @jON45 – aditya Aug 08 '12 at 08:40
  • just do this "mount -n -o remount / " and it should be read write – j0N45 Aug 08 '12 at 08:51
  • /etc/fstab: static file system information.

    proc /proc proc nodev,noexec,nosuid 0 0 entry for /dev/sda3 : uuid=917d1cad-a914-47ee-a9e2-4e3d2025285a /ext2 errors=remount-ro,user 0 1

    – aditya Aug 08 '12 at 09:02
  • Please remove the "entry for" text, and give a space here "/ ext2". Save, close, and run "sudo mount -a" to check for errors. If any error, please post it here, don't reboot your computer if there was any error. – j0N45 Aug 08 '12 at 09:15
  • i got permission denied error and then matrix like screen /usr/bin/gettext.sh: line 90: /usr/bin/envsubst : permission denied. – aditya Aug 08 '12 at 09:22
  • can you please try and remove the "/dev/sda3 :" and just keep the "uuid=917d1cad-a914-47ee-a9e2-4e3d2025285a / ext2 errors=remount-ro,user 0 1" and run "mount -a"? – j0N45 Aug 08 '12 at 09:31
  • once again redo the activities frm begin. mount -n -o remount / pico /etc/fstab bash: /usr/bin/pico: permission denied – aditya Aug 08 '12 at 09:38
  • And you are in a root shell? Do you see some thing like this root@... ? – j0N45 Aug 08 '12 at 09:44
  • root@DELL-PC:~# – aditya Aug 08 '12 at 09:48
  • it's strange you don't have permission to access the fstab being root. I'm sorry but I can't help you without seeing it, I would be just guessing. Please copy the backup back to file "cp /etc/fstab.backup /etc/fstab". – j0N45 Aug 08 '12 at 09:53
  • i am not able to backup the file because of read only file systém even after "mount -n -o remount /" – aditya Aug 08 '12 at 09:57
  • is there any alternativě way to get write permissions? – aditya Aug 08 '12 at 10:04
  • you can add full read write permissions to the file by doing "chmod 0666 /etc/fstab" this is the command that changes the permissions in linux and unix – j0N45 Aug 08 '12 at 10:22
  • i got crazy again read only file system. afraid that my disk is failing. – aditya Aug 08 '12 at 10:28
1

Thanks to jON45 for his time. I've fixed fstab by logging as live user and editing fstab. the code used to login are here

sudo mkdir /media/mount<br>
sudo mount /dev/sd__ /media/mount<br>
sudo vi /media/mount/etc/fstab<br>

i must say that im a hero/computer geek in school. thanks to Jnlopes. webs to fix fstab,

https://help.ubuntu.com/community/Fstab?

Repairing the FSTAB

aditya
  • 25
  • You can just do as the answer in here, https://unix.stackexchange.com/a/44033/14720v, says. Probably no need for Live CD. – Mohamed Bana Dec 06 '19 at 15:59