| View previous topic :: View next topic |
| Author |
Message |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Tue Jan 11, 2005 8:46 am Post subject: SATA - PROBLEM SOLVED !!!!!!!!!!!!! |
|
|
hugh, i hope this will be the last post to bother people on the forum with my installation problems. Well, wheh i start UNiversal LIveCD, it doesn`t recognize my SATA drive. So i had to reboot and to load gentoo kernel with doataraid and noapic option. After that i had to load sata_nv driver and my disk was recognized. When i issued fdisk /dev/sda command, i saw that there were partitions created for my XP (which i was using before i decided to put also Gentoo on the machine). I followed the handbook and created /boot, /, and swap partitions and saved changes to the partitions table. Everything else with the instalation went well, except my reboor after finishing installation. Grub loader shows me the list of OS, and i have options for Gentoo and for WinXP, BUT i can start WinXP without any problems, and when i try to start Gentoo i get the kernel panic message "VFS: Couldn`t mount..." Please append correct root boot option...."
Now,
grub recognizes only fd0 and hd0 disks when in command prompt on boot. No sd0 drive.
My grub conf looks like this:
timeout 30
default 0
title=Gentoo
root (hd0,2)
kernel /boot/kernel-my version root=/dev/sda4
title=WinXP
rootnoverify (hd0,0)
makeactive
chainloader +1
My partition table is like this:
/dev/sda1 - ntfs WinXP
/dev/sda2 - ntfs
/dev/sda3 - boot
/dev/sda4 - /
/dev/sda5 - ext (win95...)
/dev/sda6 - swap
So, after reading all this, is there anubody who could help me with this issue????
One more thing to mention, because i`m not sure if it matters or not, while creating my partitions using fdisk, /dev/sda3 and /dev/sda6 were created as primary partitions, while /dev/sda6 was created as extendedd one.
Thanks in advance!!
Last edited by dacha_san on Mon Jan 24, 2005 11:02 am; edited 1 time in total |
|
| Back to top |
|
 |
Gherald Veteran


Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Tue Jan 11, 2005 8:50 am Post subject: |
|
|
have you tried running grub manually:
# grub
and then:
grub> root (hd<TAB>
By <TAB> I mean the tab key, of course. It should present you with a list... |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Tue Jan 11, 2005 8:53 am Post subject: |
|
|
| freeix wrote: | have you tried running grub manually:
# grub
and then:
grub> root (hd<TAB>
By <TAB> I mean the tab key, of course. It should present you with a list... |
Yes i did, and it only shows me fd0 and hd0 as available disks. That is why i don`t know what to do. My drive is SATA and partitions are /dev/sda... |
|
| Back to top |
|
 |
Gherald Veteran


Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Tue Jan 11, 2005 10:04 am Post subject: |
|
|
Oh sorry, I misread your post completely. Have you not tried root=/dev/hd[efgh]4 ?
If you have and they don't work, post the output of:
| Code: | fdisk -l
grep SATA /usr/src/linux/.config |
|
|
| Back to top |
|
 |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Tue Jan 11, 2005 10:11 am Post subject: |
|
|
Hi!
| Quote: | | BUT i can start WinXP without any problems |
=====> kernel compiled without sata support for your mobo! Put-it in hard!!! |
|
| Back to top |
|
 |
markkuk Guru

Joined: 29 Nov 2002 Posts: 446
|
Posted: Tue Jan 11, 2005 3:51 pm Post subject: |
|
|
| dacha_san wrote: | | Yes i did, and it only shows me fd0 and hd0 as available disks. That is why i don`t know what to do. My drive is SATA and partitions are /dev/sda... |
GRUB device naming doesn't depend on Linux device names. GRUB hd0 is your SATA drive. Re-check your partition layout, this doesn't make any sense: | dacha_san wrote: | /dev/sda1 - ntfs WinXP
/dev/sda2 - ntfs
/dev/sda3 - boot
/dev/sda4 - /
/dev/sda5 - ext (win95...)
/dev/sda6 - swap
...
/dev/sda3 and /dev/sda6 were created as primary partitions, while /dev/sda6 was created as extendedd one. |
/dev/sda6 is a logical partition, the extended partition that contains all the logical partitions must be a primary partition (one of sda1-sda4). |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Tue Jan 11, 2005 6:38 pm Post subject: |
|
|
| Enlight wrote: | Hi!
| Quote: | | BUT i can start WinXP without any problems |
=====> kernel compiled without sata support for your mobo! Put-it in hard!!! |
I compiled Kernel with support for my SATA. I use Nvidia. Any other idea? |
|
| Back to top |
|
 |
Gherald Veteran


Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Tue Jan 11, 2005 8:08 pm Post subject: |
|
|
| Please start by posting the output of those 2 commands I mentioned. Direct information is always helpful. |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Tue Jan 11, 2005 9:29 pm Post subject: |
|
|
| freeix wrote: | | Please start by posting the output of those 2 commands I mentioned. Direct information is always helpful. |
Here it is.
fdisk -l :
/dev/sda1 - HPFS/NTFS
/dev/sda2 - W95 Ext`d (LBA)
/dev/sda3 -83 - Linux (boot)
/dev/sda4 -83 - Linux
/dev/sda5 -82 - Linux swap
grep SATA /usr/src/linux/.config
#CONFIG_BLK_DEV_IDE_SATA is not set
CONFIG_SCSI_SATA=y
#CONFIG_SCSI_SATA_SVW is not set
CONFIG_SCSI_SATA_NV=y
#CONFIG_SCSI_SATA_PROMISE is not set
#CONFIG_SCSI_SATA_SX4 is not set
#CONFIG_SCSI_SATA_SIL is not set
#CONFIG_SCSI_SATA_SIS is not set
CONFIG_SCSI_SATA_VIA=y
#CONFIG_SCSI_SATA_VITESSE is not set
Sorry fo not posting this earlier, was busy on the job.thanks in advance for help!! |
|
| Back to top |
|
 |
r3tude n00b

Joined: 12 Jan 2005 Posts: 18
|
Posted: Wed Jan 12, 2005 11:37 am Post subject: |
|
|
I have the same problem but I noticed that when I boot with the live CD my SATA drive is detected as sda1,2,3 etc but when i finished installation it then picked it up as hdc1,2,3. i altered the grub root=/dev/sda3 to hdc3.
this gets rid of the VFS error btu still wont boot because all my configuration files are wrong using "sda" and now my filesystem will only mount read only.
I don't exactly know how SATA works with linux but did it at one point rely on SCSI emulation, I don't know if enabling SATA for my chipset in effect changed the way the drives are recognised.
Any ideas why this happened.
also when configuring grub and it asks for HD format of hd0,0 i presumed it read differently so my configuration of grub didnt use say sd,0,0 could this have altered my driive/partition names from sda to hdc. |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Wed Jan 12, 2005 1:40 pm Post subject: |
|
|
| r3tude wrote: | I have the same problem but I noticed that when I boot with the live CD my SATA drive is detected as sda1,2,3 etc but when i finished installation it then picked it up as hdc1,2,3. i altered the grub root=/dev/sda3 to hdc3.
this gets rid of the VFS error btu still wont boot because all my configuration files are wrong using "sda" and now my filesystem will only mount read only.
I don't exactly know how SATA works with linux but did it at one point rely on SCSI emulation, I don't know if enabling SATA for my chipset in effect changed the way the drives are recognised.
Any ideas why this happened.
also when configuring grub and it asks for HD format of hd0,0 i presumed it read differently so my configuration of grub didnt use say sd,0,0 could this have altered my driive/partition names from sda to hdc. |
Well, i`m not quite sure about this problem. I`ve tried many different options such as hda,hdb,hdc,hdd,hdg,hdh as somebody has menitoned on the forum, but nothing helped me.
If i boot from LiveCD my sata is not recognized before i load module sata_nv `modprobe sata_nv`. After this my drive is beeing recognized sa /dev/sda. If i find a solution i will emmediately post it here, to help someone else avoiding problems that i had. |
|
| Back to top |
|
 |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Wed Jan 12, 2005 2:28 pm Post subject: |
|
|
as said problem comes from kernel!!!
1) first hard disk (in order of boot sequence in BIOS) is always hd0 for Grub, wether SATA or not
2) Edit : didn't saw the fdisk -l result, partitions are great!
==> kernel 2.6.x + nforce = sda
3) no hd sata support in your kernel, only the controller's one!!!
# | Quote: | | CONFIG_BLK_DEV_IDE_SATA is not set |
4)
| Quote: | CONFIG_SCSI_SATA_NV=y
#CONFIG_SCSI_SATA_PROMISE is not set
#CONFIG_SCSI_SATA_SX4 is not set
#CONFIG_SCSI_SATA_SIL is not set
#CONFIG_SCSI_SATA_SIS is not set
CONFIG_SCSI_SATA_VIA=y |
Nforce chipset or via chipset??? chose!
Last edited by Enlight on Wed Jan 12, 2005 2:46 pm; edited 5 times in total |
|
| Back to top |
|
 |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Wed Jan 12, 2005 2:33 pm Post subject: |
|
|
Just a tip :
When you boot on the live-cd do
copy it on a sheetpaper and keep it near your eyes to compile kernel
ps: pm me if my english is to bad to be understood!  |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Wed Jan 12, 2005 3:41 pm Post subject: |
|
|
| Enlight wrote: | as said problem comes from kernel!!!
1) first hard disk (in order of boot sequence in BIOS) is always hd0 for Grub, wether SATA or not
2) Edit : didn't saw the fdisk -l result, partitions are great!
==> kernel 2.6.x + nforce = sda
3) no hd sata support in your kernel, only the controller's one!!!
# | Quote: | | CONFIG_BLK_DEV_IDE_SATA is not set |
4)
| Quote: | CONFIG_SCSI_SATA_NV=y
#CONFIG_SCSI_SATA_PROMISE is not set
#CONFIG_SCSI_SATA_SX4 is not set
#CONFIG_SCSI_SATA_SIL is not set
#CONFIG_SCSI_SATA_SIS is not set
CONFIG_SCSI_SATA_VIA=y |
Nforce chipset or via chipset??? chose! |
Got your message and i think a get the point of everything. Will try this tonight and post my result. Thank you very much for your effort! Don`t worry about your English, as far as i`m conserned, it`s completely ok to understand. |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Wed Jan 12, 2005 5:01 pm Post subject: |
|
|
| Enlight wrote: | as said problem comes from kernel!!!
1) first hard disk (in order of boot sequence in BIOS) is always hd0 for Grub, wether SATA or not
2) Edit : didn't saw the fdisk -l result, partitions are great!
==> kernel 2.6.x + nforce = sda
3) no hd sata support in your kernel, only the controller's one!!!
# | Quote: | | CONFIG_BLK_DEV_IDE_SATA is not set |
4)
| Quote: | CONFIG_SCSI_SATA_NV=y
#CONFIG_SCSI_SATA_PROMISE is not set
#CONFIG_SCSI_SATA_SX4 is not set
#CONFIG_SCSI_SATA_SIL is not set
#CONFIG_SCSI_SATA_SIS is not set
CONFIG_SCSI_SATA_VIA=y |
Nforce chipset or via chipset??? chose! |
hugh, i`m getting crazy more and more.Tried everything you`ve said, but the problems are still there.
Here are new details:
fdisk -l :
/dev/sda1 - HPFS/NTFS
/dev/sda2 - W95 Ext`d (LBA)
/dev/sda3 -83 - Linux (boot)
/dev/sda4 -83 - Linux
/dev/sda5 -82 - Linux swap
After recompiling the kernel (kernel-2.6.9)
grep SATA /usr/src/linux/.config
CONFIG_BLK_DEV_IDE_SATA =y
CONFIG_SCSI_SATA=y
#CONFIG_SCSI_SATA_SVW is not set
CONFIG_SCSI_SATA_NV=y
#CONFIG_SCSI_SATA_PROMISE is not set
#CONFIG_SCSI_SATA_SX4 is not set
#CONFIG_SCSI_SATA_SIL is not set
#CONFIG_SCSI_SATA_SIS is not set
#CONFIG_SCSI_SATA_VIA is not set
#CONFIG_SCSI_SATA_VITESSE is not set
But the error still remains;
VFS: Cannot open root device "sda4" or unknown-block (8,4)
Please append a correct "root=" boot option
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (8,4)
Any other ideas what i should do.Please help !!!  |
|
| Back to top |
|
 |
Gherald Veteran


Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Wed Jan 12, 2005 5:19 pm Post subject: |
|
|
actually AFAIK,
CONFIG_BLK_DEV_IDE_SATA =y
and
CONFIG_SCSI_SATA=y
are seperate... one will name SATA drives /dev/hd[e-h], the other as /dev/sd[a-d]
so you have to try the /dev/hd[e-h]4 as well.
It's too bad there's no clear standard.
What you could do is boot this kernel temporarily to a root partition on a spare IDE drive, then use fdisk -l to see if your kernel can actually see the SATA drive, and troubleshoot things that way. |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Wed Jan 12, 2005 5:43 pm Post subject: |
|
|
| freeix wrote: | actually AFAIK,
CONFIG_BLK_DEV_IDE_SATA =y
and
CONFIG_SCSI_SATA=y
are seperate... one will name SATA drives /dev/hd[e-h], the other as /dev/sd[a-d]
so you have to try the /dev/hd[e-h]4 as well.
It's too bad there's no clear standard.
What you could do is boot this kernel temporarily to a root partition on a spare IDE drive, then use fdisk -l to see if your kernel can actually see the SATA drive, and troubleshoot things that way. |
mmmm, i tried , but nothing. it is still the same. I cannot believe that i cannot solve this problem. thanks for your effort |
|
| Back to top |
|
 |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Jan 13, 2005 12:10 am Post subject: |
|
|
mmm... a problem never comes alone! what filesystem do you use? did you set its support in kernel settings
| Quote: | CONFIG_BLK_DEV_IDE_SATA =y
and
CONFIG_SCSI_SATA=y |
damn seems my kernel was (rebuilding all my system yet!) running with both...maybe this could explain a non fatal error I had
It was like | Code: | ERROR ... calling "UNLINK" ...
ERROR ... calling "UNLINK" ... [ok] |
EDIT isn't VFS SWAP's filesystem, look if there is a VFS support that you could enable. |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Thu Jan 13, 2005 3:05 pm Post subject: |
|
|
[quote="Enlight"]mmm... a problem never comes alone! what filesystem do you use? did you set its support in kernel settings
| Quote: | CONFIG_BLK_DEV_IDE_SATA =y
and
CONFIG_SCSI_SATA=y |
damn seems my kernel was (rebuilding all my system yet!) running with both...maybe this could explain a non fatal error I had
It was like | Code: | ERROR ... calling "UNLINK" ...
ERROR ... calling "UNLINK" ... [ok] |
Hi , tried what you`ve said, but the problem is stil there.
repartitioned my HDD, and new look is as follows:
fdisk -l :
/dev/sda1 - HPFS/NTFS
/dev/sda2 - Linux swap
/dev/sda3 -83 - Linux (boot)
/dev/sda4 -83 - Linux
After recompiling the kernel (kernel-2.6.9)
grep SATA /usr/src/linux/.config
CONFIG_BLK_DEV_IDE_SATA =y
CONFIG_SCSI_SATA=y
#CONFIG_SCSI_SATA_SVW is not set
CONFIG_SCSI_SATA_NV=y
#CONFIG_SCSI_SATA_PROMISE is not set
#CONFIG_SCSI_SATA_SX4 is not set
#CONFIG_SCSI_SATA_SIL is not set
#CONFIG_SCSI_SATA_SIS is not set
#CONFIG_SCSI_SATA_VIA is not set
#CONFIG_SCSI_SATA_VITESSE is not set
But the error still remains;
VFS: Cannot open root device "sda4" or unknown-block (8,4)
Please append a correct "root=" boot option
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (8,4)
I use ext2 for boo, and ext3 for /.
I mean, while preparing the partitions i issued these two commands:
mke2fs /dev/sda3
mke2fs -j /dev/sda4
Hugh, i hope i will not loose my hope  |
|
| Back to top |
|
 |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Jan 13, 2005 3:20 pm Post subject: |
|
|
could you post the result of
| Code: | grep SCSI /usr/src/linux/.config [quote]
and your fstab please[/quote] |
|
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Thu Jan 13, 2005 3:25 pm Post subject: |
|
|
| Enlight wrote: | could you post the result of
| Code: | grep SCSI /usr/src/linux/.config [quote]
and your fstab please[/quote] |
|
sure, i need 5 min to do that |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Thu Jan 13, 2005 4:09 pm Post subject: |
|
|
| dacha_san wrote: | | Enlight wrote: | could you post the result of
| Code: | grep SCSI /usr/src/linux/.config [quote]
and your fstab please[/quote] |
|
sure, i need 5 min to do that |
Here it is:
grep SCSI /usr/src/linux/.config
#CONFIG_BLK_DEV_IDESCSI =y
# SCSI device support
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
#SCSI support type (disk , tape, CDROM)
#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
# SCSI low level drivers
CONFIG_SCSI_3W_9XXX=y
#CONFIG_SCSI_ACARD 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 = y
#CONFIG_SCSI_ADVANSYS is not set
CONFIG_SCSI_SATA=y
#CONFIG_SCSI_SATA_SVW is not set
#CONFIG_SCSI_ATA_PIIX is nor set
CONFIG_SCSI_SATA_NV=y
#CONFIG_SCSI_SATA_PROMISE is not set
#CONFIG_SCSI_SATA_SX4 is not set
#CONFIG_SCSI_SATA_SIL is not set
#CONFIG_SCSI_SATA_SIS is not set
CONFIG_SCSI_SATA_VIA=y
#CONFIG_SCSI_SATA_VITESSE is not set
#CONFIG_SCSI_BUSLOGIC is not set
#CONFIG_SCSI_CPQFCTS is not set
#CONFIG_SCSI_DMX3191D is not set
#CONFIG_SCSI_EATA is not set
#CONFIG_SCSI_EATA_PIO is not set
#CONFIG_SCSI_FUTURE_DOMAIN is not set
#CONFIG_SCSI_GDTH is not set
#CONFIG_SCSI_IPS is not set
#CONFIG_SCSI_INITIO is not set
#CONFIG_SCSI_INIA100 is not set
#CONFIG_SCSI_SYM53C8XX_2 is not set
#CONFIG_SCSI_IPR is not set
#CONFIG_SCSI_PCI2000 is not set
#CONFIG_SCSI_PCI2220I is not set
#CONFIG_SCSI_QLOGIC_ISP is not set
#CONFIG_SCSI_QLOGIC_FC is not set
#CONFIG_SCSI_QLOGIC_1280 is not set
CONFIG_SCSI_QLA2XXX=y
#CONFIG_SCSI_QLA21XX is not set
#CONFIG_SCSI_QLA22XX is not set
#CONFIG_SCSI_QLA2300 is not set
#CONFIG_SCSI_QLA2322 is not set
#CONFIG_SCSI_QLA6312 is not set
#CONFIG_SCSI_QLA6322 is not set
#CONFIG_SCSI_QLADC395X is not set
#CONFIG_I20_SCSI is not set
#CONFIG_USB_HPUSBSCSI is not set
and my /etc/fstab file looks like this;
dev/sda3 /boot ext2 defaults, noatime 1 1
dev/sda4 / ext3 noatime 0 0
dev/sda2 none swap sw 0 0
dev/cdroms/cdrom0 /mnt/cdrom so9660 noauto,ro 0 0
#NOTE: The next line is critical for boot!!
none /proc proc defaults 0 0 |
|
| Back to top |
|
 |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Jan 13, 2005 5:53 pm Post subject: |
|
|
CONFIG_SCSI_AIC79XX = y : can't remember but i suppose you don't need it
you can set the via scsi off
I'm just wondering a thing, as far as I remember my mobo nf7-s2 has got mcpt-s controller but nf7-s rev 2.0 have mcpt with a sata controller added, could you check about this?
Try lsmod when booting on the live cd and we should be fixed about what sata support we need here! |
|
| Back to top |
|
 |
dacha_san Tux's lil' helper


Joined: 26 Dec 2004 Posts: 82
|
Posted: Thu Jan 13, 2005 6:54 pm Post subject: |
|
|
[quote="Enlight"]CONFIG_SCSI_AIC79XX = y : can't remember but i suppose you don't need it
you can set the via scsi off
I'm just wondering a thing, as far as I remember my mobo nf7-s2 has got mcpt-s controller but nf7-s rev 2.0 have mcpt with a sata controller added, could you check about this?
Try lsmod when booting on the live cd and we should be fixed about what sata support we need here |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Jan 13, 2005 8:54 pm Post subject: |
|
|
| yes but using ccache should make it faster. I just have a doubt, each time you compile you copy the new kernel in the /boot with its Systemmap like in the installation manual? and if you have more than one kernel on your /boot you edit grub.conf??? |
|
| Back to top |
|
 |
|