Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-07-2010, 03:15 PM
|
#1
|
Member
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143
Rep:
|
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.
|
|
|
09-07-2010, 04:04 PM
|
#2
|
Member
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143
Original Poster
Rep:
|
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.
|
|
|
09-07-2010, 04:08 PM
|
#3
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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
|
|
|
09-07-2010, 06:21 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
I'd guess, you are using an ext3 file system.
You could use a file system, not behaving that way,
e.g. JFS, ReiserFS.
..
|
|
|
09-07-2010, 07:40 PM
|
#5
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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.)
|
|
|
09-10-2010, 07:01 AM
|
#6
|
Member
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143
Original Poster
Rep:
|
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.
|
|
|
09-10-2010, 11:41 AM
|
#7
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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".
|
|
|
All times are GMT -5. The time now is 03:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|