Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New kernel - problem with booting on a laptop [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Manolo567
n00b
n00b


Joined: 14 Aug 2005
Posts: 16

PostPosted: Mon Sep 11, 2006 8:28 pm    Post subject: New kernel - problem with booting on a laptop [SOLVED] Reply with quote

Hi guys,
I have a MaxData laptop (Eco 4000 IW) and I have just installed Gentoo 2006.1 from a live CD with a kernel from liveCD. I wanted to set up a new kernel - 2.6.17.13 - I downloaded and compiled it. However, at boot time, some weird things comes up and the system crashes:
Code:

Checking root filesystem...
fsck.ext3: No such file or directory while trying to open /dev/sda5
/dev/sda5:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

Filesystem couldn't be fixed :(
Give root password for maintenance (or type Control-D to continue)


I know that there are a few topics of that kind but I did not find an answer.

Here is my fstab to make sure that /dev/sda5 is really an ext3, not ext2:
Code:

/dev/sda2    /boot    ext2    defaults       1 2
/dev/sda3    none            swap            sw              0 0
/dev/sda5    /    ext3    defaults       0 1
/dev/sda6    /home    ext3    defaults       0 0
none        /proc     proc    defaults          0 0
none        /dev/shm  tmpfs   defaults          0 0


And here is my grub.conf, I tried several configurations of it, this is the only one that works:
Code:

default 0
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,1)
kernel /kernel-genkernel-x86-2.6.17-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 doscsi
initrd /initramfs-genkernel-x86-2.6.17-gentoo-r7

title=Linux 2.6.17.13 - Gentoo 2006.1
root (hd0,1)
kernel /boot/linux-2.6.17.13 root=/dev/hda5


title=Possible Windows P1
rootnoverify (hd0,0)
makeactive
chainloader +1

The new kernel is of course Linux 2.6.17.13 - Gentoo 2006.1.

Any help will be appreciated - thanks in advance :)


Last edited by Manolo567 on Tue Sep 12, 2006 10:57 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54813
Location: 56N 3W

PostPosted: Mon Sep 11, 2006 8:57 pm    Post subject: Reply with quote

Manolo567,

The good news is that your root filesystem actually mounted. The kernel line in grun does that.

Boot uo to the prompt and give the root password. You cannot do any damage, since everything is read only.
Look in /dev are your sda nodes there ?
Have a look round generally - is everything there?

udev went through a period of doing this.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Manolo567
n00b
n00b


Joined: 14 Aug 2005
Posts: 16

PostPosted: Mon Sep 11, 2006 9:30 pm    Post subject: Reply with quote

Fstab is exactly the same as in the system. The /dev is pretty much the same except that instead of sda nodes it contains hda nodes. The /home directory is empty. And I forgot to mention: the system still runs perfectly on the previous kernel from a liveCD.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54813
Location: 56N 3W

PostPosted: Mon Sep 11, 2006 9:40 pm    Post subject: Reply with quote

Manolo567,

When you configured the new kernel, how did you do it ?

So this
Code:
kernel /kernel-genkernel-x86-2.6.17-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 doscsi
works and this
Code:
kernel /boot/linux-2.6.17.13 root=/dev/hda5
does not ?
Note the sda5 in the one that works and the hda5 in your kernel line.

Which SATA driver are you using in your kernel ?
The depreciated one under the IDE branch or the SCSI ones under SCSI low level device drivers ?

It looks like you have a SATA hard drive.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Manolo567
n00b
n00b


Joined: 14 Aug 2005
Posts: 16

PostPosted: Mon Sep 11, 2006 10:19 pm    Post subject: Reply with quote

Yes, the genkernel works and the other one does not. I saw the real_root=/dev/sda5 option and I tried to get it to work with my kernel but it did not want to, with such config it did not even boot the kernel, giving me an error message. I'm not sure if this is what you mean but here is a part of my .config:
Code:

#
# Parallel IDE high-level drivers
#
CONFIG_PARIDE_PD=m
# CONFIG_PARIDE_PCD is not set
CONFIG_PARIDE_PF=m
# CONFIG_PARIDE_PT is not set
# CONFIG_PARIDE_PG is not set

#
# Parallel IDE protocol modules
#
# CONFIG_PARIDE_ATEN is not set
# CONFIG_PARIDE_BPCK is not set
# CONFIG_PARIDE_BPCK6 is not set
# CONFIG_PARIDE_COMM is not set
# CONFIG_PARIDE_DSTR is not set
# CONFIG_PARIDE_FIT2 is not set
# CONFIG_PARIDE_FIT3 is not set
# CONFIG_PARIDE_EPAT is not set
# CONFIG_PARIDE_EPIA is not set
# CONFIG_PARIDE_FRIQ is not set
# CONFIG_PARIDE_FRPW is not set
# CONFIG_PARIDE_KBIC is not set
# CONFIG_PARIDE_KTTI is not set
# CONFIG_PARIDE_ON20 is not set
# CONFIG_PARIDE_ON26 is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_SX8=y
# CONFIG_BLK_DEV_UB is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set

#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
CONFIG_BLK_DEV_IDECS=m
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
CONFIG_IDE_TASK_IOCTL=y

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_CS5535 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_IT821X is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
CONFIG_BLK_DEV_VIA82CXXX=y
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set

#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
# CONFIG_SCSI_PROC_FS is not set

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set

#
# SCSI Transport Attributes
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set

#
# SCSI low-level drivers
#
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set


What options am I supposed to check in the krenel if my disk is SATA ?
Back to top
View user's profile Send private message
tomi.e
n00b
n00b


Joined: 24 Aug 2006
Posts: 68
Location: Slovenia

PostPosted: Mon Sep 11, 2006 10:34 pm    Post subject: Reply with quote

CONFIG_SCSI_SATA
Code:
Device Drivers->
  SCSI device support->
    SCSI low level drivers->
       <*> Serial ATA (SATA) support

and also the config for your southbridge (SATA controler)...
_________________
silence kills the revolution
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54813
Location: 56N 3W

PostPosted: Mon Sep 11, 2006 10:41 pm    Post subject: Reply with quote

Manolo567,

Code:
# CONFIG_BLK_DEV_IDE_SATA is not set
is good, this is the obsolete SATA driver that makes SATA drives appear as /dev/hdX.

Code:
# CONFIG_SCSI_SATA is not set
is a part of your problem. This option opens a new menu
Code:
          <*> Serial ATA (SATA) support                                           
  │ │            < >   AHCI SATA support                                 
  │ │            < >   ServerWorks Frodo / Apple K2 SATA support     
  │ │            < >   Intel PIIX/ICH SATA support                 
  │ │            < >   Marvell SATA support (HIGHLY EXPERIMENTAL)     
  │ │            < >   NVIDIA SATA support                                   
  │ │            < >   Pacific Digital ADMA support                                 
  │ │            < >   Pacific Digital SATA QStor support                   
  │ │            < >   Promise SATA TX2/TX4 support                     
  │ │            < >   Promise SATA SX4 support                                     
  │ │            <*>   Silicon Image SATA support                         
  │ │            < >   Silicon Image 3124/3132 SATA support           
  │ │            < >   SiS 964/180 SATA support                           
  │ │            < >   ULi Electronics SATA support               
  │ │            < >   VIA SATA support                                 
  │ │            < >   VITESSE VSC-7174 / INTEL 31244 SATA support   
You must choose your SATA chipset as built in there. Then your kernel can see your drive, so root=/dev/sda5 should work for your kernel too. lspci will show you what chipset you have. The sample above is mine.

I think that /dev/hda may be your CDROM
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Manolo567
n00b
n00b


Joined: 14 Aug 2005
Posts: 16

PostPosted: Tue Sep 12, 2006 10:57 am    Post subject: Reply with quote

Thanks, it helped :) Now the Internet is not working and the mouse refuses to behave properly but I think it is the matter of not compiling something in the kernel. Anyway, thanks a lot :)

EDIT:
Everything works perfectly as of now, thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum