LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2011, 03:14 PM   #1
Virtuworks
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Rep: Reputation: 0
Help!! Server down


Intermediate Noob...got a client which rebooted one of their slackware servers and would not come up.

Server is stuck at Kernel panic - not syncing: VFS: unable to mount root FS.

I have booted into a live cd and mounted hdd1 but have not been able to get any further.

Any help is greatly appreciated.
 
Old 04-15-2011, 03:32 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Is it the first reboot of the server after install?

If yes, probably the support for the filesystem used for / ( the root filesystem) is not built in the kernel and no initrd is in use.

To find out, (I suppose hdd1 is mounted in the live cd as /mnt, otherwise adapt accordingly), please go back to us with the full output of following commands:
Code:
ls -l /mnt/etc/fstab
ls -l /mnt/boot
cat /mnt/etc/lilo.conf

Last edited by Didier Spaier; 04-15-2011 at 03:37 PM. Reason: Typo
 
Old 04-15-2011, 03:45 PM   #3
Virtuworks
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
Is it the first reboot of the server after install?

If yes, probably the support for the filesystem used for / ( the root filesystem) is not built in the kernel and no initrd is in use.

To find out, (I suppose hdd1 is mounted in the live cd as /mnt, otherwise adapt accordingly), please go back to us with the full output of following commands:
Code:
ls -l /mnt/etc/fstab
ls -l /mnt/boot
cat /mnt/etc/lilo.conf
fstab on hdd1 says no directory found, on hdd3 it gives me
-rw-r--r-- l root root Dec 23 2009 /mnt/hdd3/etc/fstab

Boot on hdd1 same thing and on hdd3:
Total 0

Lilo same on hdd1, nothing and hhd3:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
# Append any additional kernel parameters:
append=" vt.default_utf8=1"
boot = /dev/hdb

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 800x600x256
vga = 771
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb3
label = Linux
read-only
# Linux bootable partition config ends
 
Old 04-15-2011, 04:02 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
I am a little lost with the partitions names. Please give output of following command:
Code:
df -h
Then try to find out where is /etc/fstab

It should be in the directory where /dev/hdb3 is mounted, let's call it /dir for now; then give output of following commands (again, adapt accordingly)
Code:
cat /dir/etc/fstab
ls -l /dir/boot
 
Old 04-15-2011, 04:05 PM   #5
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
If I had to guess, I'd say that this is because your lilo has the root as /dev/hdb3 but, according to what you're saying above, it should be /dev/hdd3. You could try booting and passing 'root=/dev/hdd3'to your Slackware selection at the lilo prompt.

Adam

EDIT: You might have to edit the /etc/fstab on that root partition, too, to get it to boot properly.

Last edited by adamk75; 04-15-2011 at 04:09 PM.
 
Old 04-15-2011, 04:07 PM   #6
Virtuworks
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
I am a little lost with the partitions names. Please give output of following command:
Code:
df -h
Then try to find out where is /etc/fstab

It should be in the directory where /dev/hdb3 is mounted, let's call it /dir for now; then give output of following commands (again, adapt accordingly)
Code:
cat /dir/etc/fstab
ls -l /dir/boot
df -h

root@slax:/mnt/hdd3/etc# df -h
Filesystem Size Used Avail Use% Mounted on
aufs 300M 22M 278M 8% /
tmpfs 250M 0 250M 0% /dev/shm
/dev/hdc 201M 201M 0 100% /mnt/hdc
/dev/hdd1 47M 23M 21M 53% /mnt/hdd1
/dev/hdd3 5.0G 2.1G 2.7G 44% /mnt/hdd3
/dev/sda1 50G 8.0G 39G 18% /mnt/sda1
/dev/hdd1 47M 23M 21M 53% /mnt/hdd1

Here is fdisk just in case

root@slax:/mnt/hdd3/etc# fdisk -l

Disk /dev/hdd: 6442 MB, 6442450944 bytes
16 heads, 63 sectors/track, 12483 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x2c6bd964

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 97 48856+ 83 Linux
/dev/hdd2 98 2081 999936 82 Linux swap
/dev/hdd3 2082 12483 5242608 83 Linux


I don't see hdb3 anywhere.
 
Old 04-15-2011, 04:09 PM   #7
Virtuworks
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by adamk75 View Post
If I had to guess, I'd say that this is because your lilo has the root as /dev/hdb3 but, according to what you're saying above, it should be /dev/hdd3. You could try booting and passing 'root=/dev/hdd3'to your Slackware selection at the lilo prompt.

Adam
Already tried this. just says "no such image. [Tab] shows a list"...btw [Tab] doesn't show any list.
 
Old 04-15-2011, 04:11 PM   #8
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
So at the lilo prompt, you hit 'tab' and nothing happens?

Adam
 
Old 04-15-2011, 04:13 PM   #9
Virtuworks
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by adamk75 View Post
So at the lilo prompt, you hit 'tab' and nothing happens?

Adam
Correct.
 
Old 04-15-2011, 04:16 PM   #10
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Well according to your lilo.conf file, you should have one entry named Linux. What happens if you type out 'Linux root=/dev/hdd3' at the lilo prompt?

Adam
 
Old 04-18-2011, 10:26 AM   #11
Virtuworks
LQ Newbie
 
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Resolved...Server down.

Quote:
Originally Posted by adamk75 View Post
Well according to your lilo.conf file, you should have one entry named Linux. What happens if you type out 'Linux root=/dev/hdd3' at the lilo prompt?

Adam
This has been resolved. Thank you all for your help.

Issue was that lilo and fstab were pointing to hdb3 instead of hdd3. i have no idea why it changed but changing this resolved our issue.
 
  


Reply



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
Server configuration for small office server, which smtp, pop imap server and backup whitelinux Linux - Server 4 04-06-2010 11:26 AM
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 04:20 AM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:38 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