Author Topic: General error mounting filesystems  (Read 4050 times)

alecuba

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
General error mounting filesystems
« on: May 13, 2013, 02:33:07 pm »
HI
All was running fine until I perform a reboot of the server

Now I get thei error when starting up the server

General error mounting filesystems.
A maintenance shell will now be started.
CONTROL-D will terminate this shell and reboot the system
Give root password for maintenance
(or type control-D tp continue):

After entering the root password I get the following
bash: groups: command not found
root@(none):

Is there any way I can recover thsi system?
I have lots of data I would like to retrieve.

Thanks

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: General error mounting filesystems
« Reply #1 on: May 13, 2013, 03:51:32 pm »
Have a look at /proc/partitions. Check if every are mounted (mount), and try to fsck any of them

Would this help ?

alecuba

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: General error mounting filesystems
« Reply #2 on: May 13, 2013, 04:36:29 pm »
Hey Jbahillo

See attachments with detail of the commands

fsck keeps on asking to ignore errors in the inode, i guess same thing than when I run a recovery mode startup...
Any other ideas?
I have a backup of the Zentyal configuration online but I am afraid that if I have a disk issue that could return.

The configuration is a Raid 10 - 4 x 500GB
and a sata disk 500Gb
I have read some forums issues with the disk cables but I have already cover that part.

Thanks

alecuba

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: General error mounting filesystems
« Reply #3 on: May 13, 2013, 07:28:48 pm »
I booted from Gparted live Cd and fixed the corruption on the System disk with check disk
Now the issue is that Zentyal does not start
no Graphical interface anymore - just logon screen
SUDO is an unknow command
Zentyal service is not recogniced anymore
The Default Gateway is gone but setting it manualy makes the system to talk to the internet.
SSH service does not start
I have a backup of the configuration of this server, there is any way to restore this backup using command line?
Any tips are welcome

Thanks

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: General error mounting filesystems
« Reply #4 on: May 13, 2013, 08:24:14 pm »
Hello alecuba,

> SUDO is an unknow command
Did you typed "SUDO" or "sudo"?
Lower/Upper does matter...

> Zentyal service is not recogniced anymore
Have you tried using the following ?
Code: [Select]
sudo /etc/init.d/zentyal restart
If not, how did you restart the service ?

> SSH service does not start
Have you tried starting it manually ?

Best,

Marcus

alecuba

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: General error mounting filesystems
« Reply #5 on: May 13, 2013, 08:41:52 pm »
Hey Marcus
Thanks for the prompt reply
Indeed I have tried before all what you asked - attached the printscr of the results of each command

Thanks

Alex

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: General error mounting filesystems
« Reply #6 on: May 13, 2013, 10:55:51 pm »
Hello Alex,

According to your screenshot, sudo isn't required since you are already "root"

Can you do the following:
Code: [Select]
apt-get remove --purge ssh && apt-get install ssh
That should purge and reinstall your ssh server - once done you should be able to work from a remote desktop.

Side note
Make sure to add the "./" prefix when executing a script from the directory that you are in

e.g. (when you are in the /etc/init.d/ directory)
good
Code: [Select]
./ssh start
bad
Code: [Select]
ssh start
Best,

Marcus

alecuba

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: General error mounting filesystems
« Reply #7 on: May 14, 2013, 09:14:09 am »
Hey  Marcus

I get the following error when typing the command:
-bash: apt-get: command not found
I guess something is not right with Ubuntu at this point, System folders are there but somehow the OS does not recognize basic stuff.
Thanks

Alex

alecuba

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: General error mounting filesystems [SOLVED]
« Reply #8 on: May 23, 2013, 12:24:13 pm »
The good news is that my data was in a different HDD than the OS
I have re-installed Zentyal, installed the same Zentyal components I had before and restored a backup from my previous configuration
The only thing you have to do is to mount back the shares and there you go!
I think as best practices OS should be installed in a different HDD than data, this will save you lot's of headaches!
cheers