Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] SATA drive not mounted at boot
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
gpstefansson
n00b
n00b


Joined: 31 Oct 2006
Posts: 17

PostPosted: Fri Nov 10, 2006 1:27 pm    Post subject: [Solved] SATA drive not mounted at boot Reply with quote

Hi all,

I have a 300GB sata drive for storage, using reiserfs. I want to mount the drive during boot but i get an error during boot saying:
Code:
mount: special device /dev/sda1 does not exist

Then i log on and mount the drive as root without any problems with:
Code:
mount /dev/sda1 /mnt/scsi1

I cant figure out why it is not mounting on boot. Here is my /etc/fstab line for the device:
Code:
/dev/sda1  /mnt/scsi1 reiserfs noatime,notail,user 0 0


dmesg | grep -i sata gives me:
Code:
sata_sis 0000:00:05.0: version 0.5
sata_sis 0000:00:05.0: Detected SiS 182 chipset
ata1: SATA max UDMA/133 cmd 0xEC00 ctl 0xE802 bmdma 0xDC00 irq 217
ata2: SATA max UDMA/133 cmd 0xE400 ctl 0xE002 bmdma 0xDC08 irq 217
scsi0: sata_sis
ata2: SATA link down (SStatus 1)
scsi1: sata_sis


This is probably some typo in fstab or something, but Im not seeing it. Hope anyone has any suggestions.

Thanks,
gps
_________________
Gentoo 2.6.17-r8 x86_64 running on:
Asus K8S-MX motherboard, 1GB Kingston DDR400, AMD Sempron 2600+ Processor, nVidia GeForce 6200 Graphics card.


Last edited by gpstefansson on Sun Nov 12, 2006 1:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
bugg_tb
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 282
Location: Leeds, UK

PostPosted: Fri Nov 10, 2006 2:54 pm    Post subject: Reply with quote

I used sata as a primary drive, firstly make sure you've got all the kernel drivers installed, although it would appear you have as it seems to detect it.

mine replies

Code:
sata_sis 0000:00:05.0: version 0.5
sata_sis 0000:00:05.0: Detected SiS 180/181 chipset in SATA mode
ata1: SATA max UDMA/133 cmd 0xA000 ctl 0xA402 bmdma 0xB000 irq 17
ata2: SATA max UDMA/133 cmd 0xA800 ctl 0xAC02 bmdma 0xB008 irq 17
ata1: SATA link up 1.5 Gbps (SStatus 113)
scsi0 : sata_sis
ata2: SATA link down (SStatus 0)
scsi1 : sata_sis



but then straight after it returns

Code:
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 sda4 < sda5 >

As its part of the scsi sub system.


Also watch out becasue USB memory sticks/ipods etc pop up as sd* so if you've got one plugged in it may be detected before the hdd
HTH

Tom
_________________
Remember, even at a Mensa convention someone is the dumbest person in the room!
Back to top
View user's profile Send private message
gpstefansson
n00b
n00b


Joined: 31 Oct 2006
Posts: 17

PostPosted: Sat Nov 11, 2006 12:42 pm    Post subject: Reply with quote

bugg_tb wrote:
... firstly make sure you've got all the kernel drivers installed, although it would appear you have as it seems to detect it.

As I said, I am able to mount the drive manually, but it is not happening at boot. If I am able to mount it, then I would assume that no kernel drivers are missing? Correct me if I am wrong here.
I checked the kernel config suggested in the Hardware SATA wiki and my config is the same.

Any advice appreciated.
gps
_________________
Gentoo 2.6.17-r8 x86_64 running on:
Asus K8S-MX motherboard, 1GB Kingston DDR400, AMD Sempron 2600+ Processor, nVidia GeForce 6200 Graphics card.
Back to top
View user's profile Send private message
no_hope
Guru
Guru


Joined: 23 Jun 2003
Posts: 482

PostPosted: Sat Nov 11, 2006 2:55 pm    Post subject: Reply with quote

are you sure that everything SATA-related in your kernel is built-in and is not a module?
Back to top
View user's profile Send private message
bugg_tb
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 282
Location: Leeds, UK

PostPosted: Sat Nov 11, 2006 4:18 pm    Post subject: Reply with quote

yeah it does look like its loading the module after it tries to boot the drive, make sure you have them compiled into the kernel and not as modules.

Fstab should read something like,

/dev/sda1 /mnt/scsi1 resiserfs defaults 0 0

But you dont seem to have any typos so I can only attribute it to a kernel/module problem, but its not a config error as it works later, hell I bet once you've booted if you tried mount /dev/sda1 as root it'll mount just fine :D if thats the case then you have to check the kernel modules.

On mine I've got Intel, SIS and VIA installed into the kernel and the rest as modules.

HTH

Tom
_________________
Remember, even at a Mensa convention someone is the dumbest person in the room!
Back to top
View user's profile Send private message
gpstefansson
n00b
n00b


Joined: 31 Oct 2006
Posts: 17

PostPosted: Sat Nov 11, 2006 9:06 pm    Post subject: Reply with quote

Ok, this seems to be related to my kernel config. When I look closer at my configuration I see that there are some discrepancies from the suggestions in the Hardware SATA wiki, mentioned above. Here is my config:

Code:
Device Drivers  --->
  SCSI device support  --->
    <*> SCSI device support
    <*>   SCSI disk support
    <M>   SCSI generic support <<not needed!>>

The SCSI generic support is a module in my kernel but built-in in the wiki. I do not load this module in the /etc/modules.autoconfig.d/kernel-2.6 file. The SCSI low-level drivers are as follows:
Code:
Device Drivers --->
  SCSI device support --->
    SCSI low-level drivers --->
     [*] Serial ATA (SATA) support
     <M>   ServerWorks Frodo / Apple K2 SATA support (EXPERIMENTAL)
     <M>   Intel PIIX/ICH SATA support
     <M>   NVIDIA SATA support
     <M>   Promise SATA TX2/TX4 support
     <M>   Promise SATA SX4 support
     <M>   Silicon Image SATA support
     <M>   SiS 964/180 SATA support
     <M>   VIA SATA support
     <M>   VITESSE VSC-7174 SATA support

My motherboard (Asus K8S-MX) has the SiS 760GX and SiS 965L chipsets, so according to the wiki, I should be using the SiS 964/180 SATA support. I have not been loading this module in the /etc/modules.autoconfig.d/kernel-2.6 file but I tried it just now (added the line "scsi_sata_sis" to the file), and it made no difference. I use this drive only for data storage so according to the wiki I should not have to build the driver into the kernel.


So what do you guys suggest? Should I rebuild my kernel with the driver built in or should I do something else? Am I adding the driver correctly to the kernel-2.6 file or what?

Thanks for the help,
gps
_________________
Gentoo 2.6.17-r8 x86_64 running on:
Asus K8S-MX motherboard, 1GB Kingston DDR400, AMD Sempron 2600+ Processor, nVidia GeForce 6200 Graphics card.
Back to top
View user's profile Send private message
hektik02
n00b
n00b


Joined: 26 Mar 2004
Posts: 9

PostPosted: Sun Nov 12, 2006 9:33 am    Post subject: Reply with quote

try editing your fstab to /dev/evms/sda1
Back to top
View user's profile Send private message
gpstefansson
n00b
n00b


Joined: 31 Oct 2006
Posts: 17

PostPosted: Sun Nov 12, 2006 10:33 am    Post subject: Reply with quote

hektik02 wrote:
try editing your fstab to /dev/evms/sda1

I have no folder named /dev/evms on my system and as I said in the first post, I am able to mount the drive just fine with
Code:
mount /dev/sda1 /mnt/scsi1

so Im guessing that /dev/sda1 this is the way to go. I will likely try to rebuild the kernel with the module built-in and see if that works.

thanks, gps
_________________
Gentoo 2.6.17-r8 x86_64 running on:
Asus K8S-MX motherboard, 1GB Kingston DDR400, AMD Sempron 2600+ Processor, nVidia GeForce 6200 Graphics card.
Back to top
View user's profile Send private message
gpstefansson
n00b
n00b


Joined: 31 Oct 2006
Posts: 17

PostPosted: Sun Nov 12, 2006 1:11 pm    Post subject: Problem solved! Reply with quote

I rebuilt the kernel with the modules I discussed above built into it, and now my SATA drive is mounted at boot time without problems.
Thanks for the help!
_________________
Gentoo 2.6.17-r8 x86_64 running on:
Asus K8S-MX motherboard, 1GB Kingston DDR400, AMD Sempron 2600+ Processor, nVidia GeForce 6200 Graphics card.
Back to top
View user's profile Send private message
bugg_tb
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 282
Location: Leeds, UK

PostPosted: Sun Nov 12, 2006 2:15 pm    Post subject: Reply with quote

yeah your problem was it was loading the modules after it tried to mount the drive so the system didn't know where to look for /dev/sda1
_________________
Remember, even at a Mensa convention someone is the dumbest person in the room!
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