Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-16-2004, 10:34 PM   #1
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Rep: Reputation: 15
Need help. Got virus and now stuck at start up.

Will is seem I got a virus from a networked hard drive.
My linux box is now stuck in the stratup mode.
The virus was Win32pa. I have unplugged my network cable and am in the middle of virus scan one win98. Once its completed I start on win98 on the other machine.
But for right now here is my problem.
Linux RH8.0 is stuck in the start up mode asking me the following:

It wants me to run fsck

Here is what is says on the screen:

Checking root filesystem
/contains a file system with errors, check forced
inode 16737 has imagic flag set.

( i.e. without -a or -p)
*****An error occurred during the file system check
**** Drop you to a shell: the stem will reboot.
**** when you leave the shell
Give root password for maintance
(or type Control-D for normal startup):

At this time I entered my root pass word.
It replied with :

(Repair file system ) #1

What is it asking me to type in ? I know it starts with

fsck ( but what comes next????)
Old 04-16-2004, 10:41 PM   #2
Registered: Mar 2004
Location: Iraq, Baghdad
Posts: 32

Rep: Reputation: 15
It's dropping you to a maint shell. Try

fsck /dev/hda

That is assuming that your main HD is ide. Replace the hda with whatever device is your primary hd that your root partition is based on.

Old 04-17-2004, 02:54 AM   #3
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
This problem sometimes occur when your linux box isn't shut down properly.
The fsck utility is the equivalent of scandisk in windows.
Normally this program is able to run without intervention by the user, but sometimes like in this case it can't be absolutely certain what to do.

You will get a few questions along the way when running fsck. Almost all the time the standard reply will do. This manual check is a safety precaution from the system to make sure how to do.
Old 04-17-2004, 01:04 PM   #4
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Moved: This thread is more suitable in Linux General and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 04-17-2004, 03:04 PM   #5
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,075

Rep: Reputation: 203Reputation: 203Reputation: 203
get a copy of tomsrtbt or mulinux and use it to fsck your linux partion with "fsck -Asa /dev/hdxx" where xx is the harddeive and the partion of your linux file system
IF you have win2000 or XP use mulinux insted there is a bug in windblows that messes up the system when floppys larger than 1.44M are read
I say use tomsrtbt or mulinux because there is some kind of problem that fsck needs to have the file system unmounted to fix and can't do it with the filesystem mounted read olny or it would have fixed it at boot up

Last edited by rob.rice; 04-17-2004 at 03:09 PM.
Old 04-17-2004, 05:23 PM   #6
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Thanks to everyone I was able to do the fsck and get back in.
I was not sure about some of the questions it asked me but I quessed right.

Additional question can a windows virus cause problems thru a network connection like I have?

1 linksys 5 way hub
1 win98 box
1 linux box

I some how got Win32 OPAS. I have AVAST running on the win98 box.
This is the second time I have gotten this virus in the last month. I have a feeling it is on something I am using. Anyhow can it mess up linux to?

Because I had the 2 boxes running and everything was ok then everything stopped. Both win98 and linux, when I rebooted the win98 box informed me that I have the virus. I promply had it take care of it. However when I went to boot the linux box this is when I got the above problem.
Was this just coincedces or did it mess with the linux box?

Any way thanks for the help again.
Old 04-17-2004, 05:33 PM   #7
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Windows viruses are harmless to linux. Once the virus hits the linux box it is dead - it can't even run to email itself to other users (the only way it could spread is if you intentionally email it to windows users).
Old 04-17-2004, 07:18 PM   #8
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The only way a windows virus can harm a linux box is if you have a dual boot system win/linux, then it can mess up your harddisk.
Old 04-17-2004, 07:52 PM   #9
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 63
Unfortunately, the only way you can be sure that you will not be affected by Windows virri is to not run Windows. As Ugge mentioned above, the only possible way that your Linux partitions were affected is that the virus fiddles with your harddrive. To me this seems unlikely, but not impossible. You could always ensure that you only connect to any kind of network when running Linux... effectively remove any means of entry for Windows virii. Or just remove Windows
Old 04-17-2004, 09:35 PM   #10
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,075

Rep: Reputation: 203Reputation: 203Reputation: 203
boot sector viruses are still out there even if you don't run windows you can still get a boot sector virus by booting from an infected dos boot disk (most likely some one else booting your computer from such a disk trying to get around your pass word)
Old 04-18-2004, 02:25 PM   #11
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I would also suggest using ext3 file system. This is less sensitive to sudden shutdowns which make recovery very easy. Do tune2fs -j /dev/hdxy .
Old 11-04-2007, 11:15 PM   #12
LQ Newbie
Registered: May 2007
Location: Denver
Posts: 7

Rep: Reputation: 0
i was getting a similar error about "a file system with errors, check forced" and getting booted into "maintenance mode" during an openSUSE 10.3 install today. just running fsck at the command line with no other parameters got me past it. thanks!
Old 11-06-2007, 07:38 PM   #13
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262
Clue 'ya... it wasn't "a virus."

It was a corrupted filesystem (or what might have been one ... one must err on the side of caution...). Nothing more.
Old 11-06-2007, 08:11 PM   #14
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Ubuntu, Mint
Posts: 975

Rep: Reputation: 40
I agree with the corrupt file system. But isn't it possible a virus could be executed through wine? Most likely the virus would need to be manually executed, either intentional or not. At this stage, it could conceivably freeze the computer (wine has frozen my computer a few times), forcing the OP to reset, and cause the file system to corrupt.

Am I right, or am I right?


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE won't start, gets stuck at Starting Services cellist Linux - Software 2 12-21-2007 02:16 PM
synaptic upgrade-now start up is stuck-root@tty1[~]# whoszed Linux - Newbie 2 11-27-2005 05:09 PM
I'm stuck on getting X to start frontier1 Arch 9 01-03-2004 03:43 PM
I'm stuck on getting X to start in Arch frontier1 Linux - Software 3 12-15-2003 08:55 AM
stuck in start up RDW Linux - Software 1 03-27-2002 07:09 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:50 AM.

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