LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-01-2006, 11:36 AM   #1
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
sata mounting


Okay...this may have been beaten to death but I can't think of search queries to dig this one out.

I have a SATA drive which I use to store all my media, odd and ends etc. It is formatted with ext3. The root partition is on IDE drive. The motherboard has Nvidia nforce4 SATA chipset (sata_nv and libata).

Problem: Even though i've had /etc/fstab entry for this particular SATA drive, it would not mount. Gives me a generic error (can't recall exactly) during boot up. I'm at work right now so I'll post the error when i have access to my machine.

/etc/fstab:
Code:
/dev/sdb1 /mnt/store ext3 auto,users,rw 1 2
What I've done: I use a custom compiled kernel (v2.6.17.7). I've compiled the kernel with sata_nv as a module and as a built-in.

In both cases, I can mount the drive easily with mount /dev/sdb1 command as a regular user once the system starts up fully but not during the boot up.

I have also tried including sata_nv module in /etc/rc.d/rc.modules but it still won't mount at bootup. Works flawlessly when i mount as a regular user after system startup.

Now I also use Arch Linux and Debian AMD64 and both of them mount my sata drive at bootup without any problems.

May be I am missing some little detail that I need to know. This happened earlier as well when this same drive was partitioned as vfat to share data between Windows and Linux. The drive would not mount at boot but would mount easily once the system starts up. Please note that I don't use initrd with slack.

Any pointers would be greatly appreciated.

Thanks in advance,
Tux,
 
Old 08-01-2006, 11:50 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Is ext3 support built as a module or compiled in?
 
Old 08-01-2006, 11:57 AM   #3
extramedium
LQ Newbie
 
Registered: May 2006
Posts: 5

Rep: Reputation: 0
sata mounting

on which drive(S) is grub (or whichever bootloder(s) ) installed?

Which drive does the bios boot sequence check first?

Try editing the grub menu installed on the ide drive to include the both drives.
(@see man update-grub)

hth
~S~
 
Old 08-01-2006, 12:03 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,200

Rep: Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089
In addition:
Have you compiled the SCSI subsystem modules into the kernel too?
scsi_mod
mod_sd

It looks like these are modules which will load after the OS tries to mount the filesystem via fstab. The reason it works after system startup.

Last edited by michaelk; 08-01-2006 at 12:04 PM.
 
Old 08-01-2006, 12:05 PM   #5
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by ciotog
Is ext3 support built as a module or compiled in?
Yes...ext3 support is built-in. Root partition is ext3 as well.

Quote:
Originally Posted by extramedium
on which drive(S) is grub (or whichever bootloder(s) ) installed?

Which drive does the bios boot sequence check first?

Try editing the grub menu installed on the ide drive to include the both drives.
(@see man update-grub)
Sorry but I don't think grub has to do anything with that. My root partition boots fine.

Tux,
 
Old 08-01-2006, 12:12 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by michaelk
In addition:
Have you compiled the SCSI subsystem modules into the kernel too?
scsi_mod
mod_sd

It looks like these are modules which will load after the OS tries to mount the filesystem via fstab. The reason it works after system startup.
That maybe the case...I am not sure. I'll check this evening and report back. Thanks for catching that.

Later,
Tux,
 
Old 08-03-2006, 11:11 AM   #7
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Original Poster
Rep: Reputation: 62
Okay I've found the solution. Michealk, you were spot on about the scsi modules. They were getting loaded after the bootup but not during bootup. I had them compiled as modules while filesystem was built in the kernel. I made an initrd image with those modules and now the drive gets mount at boot. Thanks for your help.

Here's my what I did. I figured, scsi_mod, sd_mod, sg, libata and sata_nv modules were needed. I built an initrd with mkinitrd like this:

Code:
mkinitrd -c -m scsi_mod:sg:sd_mod:libata:sata_nv -k 2.6.17.7 -r /dev/hda3 -o /boot/initrd-2.6.17.7.img
Works perfectly now. Again, thanks for your help.

Tux,
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting SATA drives ricnoah Red Hat 7 06-30-2006 03:58 AM
Mounting USB SATA HD on Slackware 10.2 marshmellow Linux - Hardware 4 04-11-2006 01:51 PM
Problems on mounting USB SATA HD marshmellow Slackware 2 04-06-2006 10:06 AM
FC5 not mounting sata drive jtmillard Fedora 9 03-23-2006 05:46 PM
Mounting a SATA hard drive ozymandias Linux - Newbie 3 08-14-2005 02:35 PM

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

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