LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-11-2007, 04:27 PM   #1
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Rep: Reputation: 15
Problems with 2nd hard drive...


Hi,

Question 1...

I installed a 2nd hard drive on my Slackware box, it shows up in the BIOS during boot, and shows up if I do LSDEV, but does not show up in CFDISK. It was previously a 200gig "slave" drive for a Win2k box formatted with NTFS, what do I need to do to make it show up?


Question 2...

I do not care what is currently on the drive and would like to reformat it as Linux, once I get this drive to work I want to put in a 3rd drive then RAID the two together through a Promise 100meg ATA IDE card into a 400gig drive. This worked perfectly fine through this card on a Win2k pro box with two 200gig drives, I assume this is doable in Slackware, anyone know how?
 
Old 05-11-2007, 04:46 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
So, that's just an ATA drive right ? Try just fdisk if cfdisk won't see it. What kernel are you booting BTW ?
 
Old 05-12-2007, 02:31 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
cfdisk assumes you want to access /dev/hda. To use cfdisk to access other drives, just specify them
Code:
cfdisk /dev/hdb
 
Old 05-12-2007, 08:15 AM   #4
cowyn
Member
 
Registered: Oct 2006
Location: Hangzhou, China
Distribution: Slackware
Posts: 49

Rep: Reputation: 15
try "fdisk -l".
 
Old 05-14-2007, 07:39 PM   #5
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks (all three of you) for replying...

Kernel = v 2.4.31 (Slackware 10.2)

CFDISK /DEV/HDC/ brought it up in CFDISK and is displaying as the full 200gig drive.

FDISK -l (lowercase L) brought up all this:

===============================================================
root@linuxserver:~# fdisk -l

Disk /dev/hdc: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 24792 199141708+ 83 Linux

Disk /dev/hda: 13.5 GB, 13578485760 bytes
255 heads, 63 sectors/track, 1650 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1528 12273628+ 83 Linux
/dev/hda2 1529 1650 979965 5 Extended
/dev/hda5 1529 1650 979933+ 82 Linux swap
root@linuxserver:~#
===============================================================

How do I format this drive and make it auto-mount when the PC boots up?
 
Old 05-15-2007, 11:16 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
If cfdisk sees it, use it to delete the old partitions, and make new ones to suit your needs. At least one root partition and one swap. The root partition should be of a regular linux firesystem, like ext3, XFS, JFS, reiserfs. The swap should be of type linux swap. You can also make a home partiton similar to the root partition, but for your stuff.

Try the slackbook in my sig. Also try shilo's site.

Last edited by H_TeXMeX_H; 05-15-2007 at 11:17 AM.
 
Old 05-15-2007, 11:39 AM   #7
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Quote:
and make it auto-mount when the PC boots up?
all you need is:
$man fstab
#vi /etc/fstab
 
Old 05-16-2007, 06:40 PM   #8
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks for the replies...

Turns out the 200gig drive I was trying to use was bad, CFDISK kept giving "A fatal error has occurred", FDISK would work with it but I'm not sure why.

It also kept displaying an error about something being busy or in use when I tried to mount it, MKFS did not work either. Win2k had initially had a problem with a humongous amount of bad sectors which I thought I had under control, but it was a used drive someone gave me, guess now I know why.

Drive was yanked, a spare 80gig was installed, MKFS worked on the first try using EXT2 as a file system, gave it a mount point and stuck it in FSTAB, rebooted, drive mounts itself, but is coming up as 69.x gigs free space which is more space that I really wanted to loose, Windows isn't even that bad, is there another way to format it without loosing so much space?
 
Old 05-17-2007, 04:08 AM   #9
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I don't know which file system formatting gives you most free space (I believe you can easily find such info on the net), but you can really try ext3 or reiserfs.
 
  


Reply



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
Re install of fedora core 6 on 2nd hard drive causing problems phipper Linux - Newbie 9 01-07-2007 02:01 PM
Problems installing Fedora/Mandriva on 2nd hard drive! drbongo LinuxQuestions.org Member Success Stories 0 05-10-2006 05:12 AM
2nd hard drive neo.sarcastic Linux - Hardware 4 09-22-2003 11:22 PM
2nd hard drive jarrodatt Linux - Hardware 1 11-12-2002 02:31 AM
2nd Hard drive problems richard22 Linux - Hardware 4 09-19-2002 06:32 AM

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

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