LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-07-2010, 03:15 PM   #1
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Rep: Reputation: 16
Stopping automatic disc check in debian


Hello All,

Whenever my debian based server is rebooted 35 times it does an automatic disc check. When it does this and completes the disc check it doesn't properly establish network comms and I can't get in using SSH and I can't even ping the server.

If I reboot again, it operates as normal but the problem is that the server is remote to me and I need to travel to the site when this occurs.

Any help to turn this automatic feature off would be appreciated.

Thanks
Anubis.
 
Old 09-07-2010, 04:04 PM   #2
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Original Poster
Rep: Reputation: 16
Hi All,

I've been to the site and I've noticed that in the boot it shows:

SIOCSIFFLAGS Cannot allocate memory
Failed to bring up eth0

This only occurs when the server has rebooted with the automatic disc check, as soon as I rebooted it again, it proceeded normally and brought up eth0.

I've searched for SIOCSIFFLAGS but not found anything definitive.

Thanks
Anubis.
 
Old 09-07-2010, 04:08 PM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
off hand I am not sure how to stop the process. It sounds like something is amiss and perhaps in addition to looking for a work-around, we could look at why this is happening. I did some searching on this problem and found this this on the ubuntu site, which may be relevant given that it is a debian variant: https://wiki.ubuntu.com/KarmicKoala/ReleaseNotes

Specifically, look at the part labeled Login screen presented before optional filesystems are mounted. It says that recent versions attempt to complete the core boot process before all the drives are mounted and if there is a problem that this can cause a failure to mount. Without additional details regarding what is happening when your system fails and needs to be rebooted, this sounds like a possibility.

In any case, when this happens, do you get any sort of error message or other piece of information that could explain why you can't login?

(edit: posted before I saw your first reply)

Last edited by Noway2; 09-07-2010 at 04:09 PM. Reason: updated information
 
Old 09-07-2010, 06:21 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I'd guess, you are using an ext3 file system.

You could use a file system, not behaving that way,
e.g. JFS, ReiserFS.

..
 
Old 09-07-2010, 07:40 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I cannot recommend disabling the boot-time filesystem checks -- they're done for a reason. If you really want to do so, edit /etc/fstab and change the last (sixth) field on each line to "0". (Typically "1" for /, and "2" for other systems to be checked at boot.)
 
Old 09-10-2010, 07:01 AM   #6
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Original Poster
Rep: Reputation: 16
Hi Matir & All,

@Matir,
Thanks for the reply. I would like to keep the fs checking on, but while the network errors on boot, I can't afford it. Is there any reason you could think why I get the "SIOCSIFFLAGS Cannot allocate memory" after a disc check? It seems really strange as it doesn't occur on a normal boot.

@All,
Thanks for your replies and help in solving this issue. I think I'll go with Matir's solution until I find a solve for the nic issue.

Thanks
Anubis.
 
Old 09-10-2010, 11:41 AM   #7
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Run a check of your disks. You will probably need to unmount the drive first and may need to do so from a LiveCD. Rule out this as a potential problem. If there is a disk failure, it could be an indication of problems to come. You should also look at your logs, such as dmesg to see if you are having IO issues with your drive. As I mentioned in my previous post, in modern versions, volumes may not mount if the disk check fails which can cause things like your network interface to not come up. I read this while searching for "SIOCSIFFLAGS Cannot allocate memory".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disable disc check EAD Linux - Newbie 2 03-17-2006 12:58 AM
Automatic E-mail check siggiae Slackware 2 04-29-2005 10:49 AM
How to check if disc is too scratched? sutley Linux - Software 5 03-27-2005 05:52 AM
automatic updates check ilnli Slackware 4 01-03-2005 01:10 PM
Stopping Automatic Loading luigidrummer Linux - Software 1 08-27-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration