Friday, April 11, 2014

Linux -- boot hangs "Mounting Cifs Filesystems"

While booting the Linux, you can encounter a hang problem if you have cifs or nfs mounts defined in your /etc/fstab file..
Like this;

The problem can be an unreachable network drive or a cifs share that requires a password.
If it is a password problem, you can try pressing Enter multiple times and wait. Maybe pressing the Enter key can make the linux to skip the cifs mount , as the cifs host will reject the multiple failed login attempts..
Anyways, if you cant boot your linux and want to edit your fstab file even if you cant boot properly..
Follow the steps below;

While booting, press ESC in the grub menu

choose the desired boot line and press 'e’'to edit that entry

Add "single" (with a space in front of it)kernel parameter to the end of the kernel line ; kernel /vmlinuz-blabla ro root=/blabla blabla single

Press enter to apply the changes and press b to boot in single user mode.

After booting in single user , check the / root filesystem , if it s not mounted rw, then execute the following to remount it read-write; mount -n -o remount,rw /

Now , you can edit/fix your fstab file , and reboot your machine when it s ready.

Note that; you can alternatively use rw init=/bin/bash kernel argument for doing the same job...

Awarded TOP 60 Oracle Blog

About Me

Erman Arslan is currently working as “Applications and Database
Operations Manager” and “Leading Oracle Consultant” for one of the
biggest Oracle Partner Company in Turkey.

He is a “Principle Apps
Dba”, “Oracle-certified Linux” and Certified Exadata Admin” with lots
of field experience in several Oracle projects implemented in several
sectors.

He studied Computer Engineering and received an MBA in istanbul
Turkey. He is a blogger who has written about Oracle Technologies
(“Erman Arslan’ Oracle Blog”) since
2013.

Arslan is the author of the book "Practical Oracle E-Business Suite" (Apress 2016).

Arslan also answers the questions of his readers and provides
support for their problems in his Oracle forum. (“Erman Arslan’s Oracle
Forum").

In addition to the administration and implementation works,
Arslan has developed applications for helping the Oracle Dbas in routine
administration works such as backup and recovery, deployments and performance.

As part of the consultancy work, Arslan has done several Oracle environment healthchecks and general
recoverability assessments in critical customer environments.

Arslan has completed several EBS migrations, Core Database migrations and replatforming projects. He
also played part as the Apps DBA Lead in 6 EBS 12.2 projects, which have gone live in 2015 and in 2016.
As part of the Apps Dba, Core Dba and Engineered Systems support responsibilities, he has managed
more than 15 Critical Customer Production Environments (mostly EBS, but also including Exadata, Oracle
Database Appliance, SSO, OID, and Weblogic Application Servers as well).

Arslan also has worked as DB
SME in very critical assesment and migration projects which are done by EMC in Banking Sector.