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-14-2005, 08:56 PM   #1
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Rep: Reputation: 16
mounting 2nd (sata) hard drive on 10.1


Hello, another question, but how would I mount a 2nd hard drive (which is Sata, WD 250Gig)? I tried doing mount /dev/sdb /mnt/blah but it would say that there was no block device found. I also tried hdb. I tried different letters to both sdx and hdx parts yet nothing worked.

i'm using stock bare.i 2.4.x kernel on a 80Gig ATA drive. It already has 2 NTFS partitions on it, all detected during the install, but the Sata drive wasn't detected. Do I have to load any modules, since I heard that's what I would have to do.

The Sata drive already has a NTFS partition with media and stuff, and it worked fine and was detected on SuSE 9.3. My motherboard is Intel D865Perl with the 865G chipset.

All help appreciated, thanks.

PS: I also tried the LQ Wiki but it had nothing on Sata drives. Also, fdisk -l gives me nothing

Last edited by rob0t; 08-14-2005 at 09:19 PM.
 
Old 08-14-2005, 10:34 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Does your kernel support SATA drives? If it is, you should get some reference about it on boot (check that info with dmesg).
The kernel that supports SATA and comes with Slackware is called sata.i. You could add that kernel or compile one by yourself with sata support.

Last edited by gbonvehi; 08-14-2005 at 10:36 PM.
 
Old 08-14-2005, 11:08 PM   #3
Basel
Member
 
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319

Rep: Reputation: 30
Hi,

You need the sata.i kernel to read SATA HD. If you have bare.i kernel installed then do the following after booting Slackware CD1

Code:
# mkdir /mnt/hd && mkdir /mnt/cdrom
# mount -o rw /dev/sda1 /mnt/hd
# mount -o r /dev/hdc /mnt/cdrom
# cp /mnt/cdrom/kernels/sata.i/bzImage /mnt/hd/boot/vmlinuz
# zcat /mnt/cdrom/kernels/sata.i/System.map.gz > /mnt/hd/boot/System.map
# cp /mnt/cdrom/kernels/sata.i/config /mnt/hd/boot/config
# chroot /mnt/hd
# /sbin/lilo -v
You can refer to the following post for more info
http://www.linuxquestions.org/questi...hreadid=345631
 
Old 08-15-2005, 02:19 PM   #4
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Oh cool, I reinstalled Slackware (had nothing on it but tons of dependency failures) and I chose the sata.i kernel and guess what? It worked! I can finally mount the sata drive. Thanks a bunch.
 
Old 08-15-2005, 02:24 PM   #5
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Also, one more thing, when editing fstab do I put "1 0"

here's my fstab:

/dev/hda5 swap swap defaults 0 0
/dev/hda6 / reiserfs defaults 1 1
/dev/hda1 /c ntfs ro 1 0
/dev/hda2 /f ntfs ro 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


so I would put "1 0" just like the other partitions on the other drive?

Here's my mtab by the way: /dev/hda6 / reiserfs rw 0 0
proc /proc proc rw 0 0
/dev/hda1 /c ntfs ro 0 0
/dev/hda2 /f ntfs ro 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/sda1 /mnt/g ntfs rw 0 0


/dev/sda1 being that new drive and it has "0 0"

Thanks

Last edited by rob0t; 08-15-2005 at 02:26 PM.
 
Old 08-15-2005, 03:33 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
To see what you should put on 5th and 6th fstab fields read: man fstab
That should explain their meaning.
 
Old 08-15-2005, 04:05 PM   #7
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Thanks, it works
 
  


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
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM
Mounting a SATA hard drive ozymandias Linux - Newbie 3 08-14-2005 02:35 PM
mounting 2nd hard drive on ibm T41 with redhat 9.0 sefzik Linux - Laptop and Netbook 12 09-06-2004 09:56 PM
Problem mounting ext3 filesystem on 2nd Hard Disk judgedeath2 Linux - Hardware 2 08-16-2004 09:43 AM
Mounting 2nd Hard Drive kurtsimons Linux - Hardware 3 08-30-2003 09:55 PM

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

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