LinuxQuestions.org
Visit Jeremy's Blog.
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 07-03-2006, 07:09 PM   #1
thebiggiantmouse
Member
 
Registered: May 2006
Location: Da Bronx
Distribution: Arch Linux, Sackware, Gentoo
Posts: 255

Rep: Reputation: 31
problem with slackware install on dual hardrive system


here is the problem. i downloaded slackware linux 10.2 from this site. i was trying to install it to my secondary harddrive /dev/hdb however slackware isnt recognizing it at all and keeps trying to install to my primary harddrive dev/hdb. any suggestionshttp://www.linuxquestions.org/questions/showthread.php?t=459011&page=2
 
Old 07-03-2006, 07:22 PM   #2
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 32
Question

Quote:
Originally Posted by thebiggiantmouse
i was trying to install it to my secondary harddrive /dev/hdb however slackware isnt recognizing it at all and keeps trying to install to my primary harddrive dev/hdb.
The only question I would have for you is whether or not you have partitioned /dev/hdb with fdisk or cfdisk before entering into the setup program. Without more info I would only have to assume that setup is looking for the available linux partitions and can only find them /dev/hda. I'm also assuming that /dev/hda is the primary drive and /dev/hdb is the drive to which you attempting to install Slackware.

Also... I don't know your whole situation... but for thoroughness I'll have to ask if this is a new hard drive or has this been there before?

Keep us informed.
 
Old 07-04-2006, 08:28 AM   #3
thebiggiantmouse
Member
 
Registered: May 2006
Location: Da Bronx
Distribution: Arch Linux, Sackware, Gentoo
Posts: 255

Original Poster
Rep: Reputation: 31
hey thanx for responding bill i will do my best to answer your questions. first hda 1 is the primary and the available linux partition is on hdb and yes i am attempting to install to hdb. this is not a new harddrive. i have been running a dual harddrive system with fedora on dev/hdb and windows on dev/hda. finally i was attempting to partition with cfdisk..i hope this can help you help me...thanx again
 
Old 07-05-2006, 02:19 AM   #4
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 32
Lightbulb cfdisk

Quote:
Originally Posted by thebiggiantmouse
i have been running a dual harddrive system with fedora on dev/hdb and windows on dev/hda. finally i was attempting to partition with cfdisk..
Cool.

If fedora is still run-able, then hopefully the following will solve your problem!

Firstly... cfdisk assumes that you're going to manipulate /dev/hda if nothing else is defined. In your case, you would be calling
Code:
cfdisk /dev/hdb
If that is not what you have been calling, then your problem is most likely solved.
-------------------------------------------
Quote:
Originally Posted by thebiggiantmouse
hda 1 is the primary and the available linux partition is on hdb
I get the idea that there are other things on hdb that you don't want to touch. In that case, the following might not be something you want to do, as you will lose everything on the drive. But... if cfdisk just won't work and you're desperate, you can try calling:
Code:
cfdisk -z /dev/hdb
It basically ignores the existing partition table when it opens up the drive; working from a "zeroed table" (hence the -z option). So when you write your partition table, it simply overwrites whatever is already there... without "caring" about what exists. I understand some people have had minimal success with this... but I don't see why you would need to do this. If you decide to do this, make sure you make partitions to cover your whole drive so that it overwrites everything. And make sure you have a backup of whatever is there... it will be lost as I don't see any way of finessing this.

There is the distant possibility that this might not be enough to get you there. Since Fedora has been installed on that disk, then the fedora installer must not have played too much with the drive geometry. If you're stuck you can give it a shot... or google around for a less intrusive process (but this is all I found).

If cfdisk doesn't work:
Go into Fedora or use a LiveCD. Call:
Code:
fdisk -l /dev/hdb
as root and you will get the drive geometry. The important values that you will need are the number of heads and the number of sectors/track. Then as root:
Code:
hdparm -I /dev/hdb
and you'll get (among other things) the amount of heads and sectors per track straight from the disk itself.
Compare those to the output of fdisk.
If you do indeed need to change those values you can do so from the install by calling:
Code:
fdisk -H 16 -S 63 /dev/hdb
My hard drive has 16 heads and 63 sectors per track. Obviously substitute your values from hdparm for mine. I cannot stress enough that you NEED to have the proper values. Then you should be able to get into cfdisk and do the partitioning.

If cfdisk works but you cannot partition:
When you get into cfdisk you can hit
Code:
g
from the main menu to see the drive geometry and change it if you need to. It's not a visible option, but it's there. Consult the [Help] screen to see what key options are available. Use the values from hdparm.

Apparently drive geometry can be found in the BIOS as well.

I don't see why you would need to do ANY of that because fedora ran fine beforehand. In fact... I personally would look wherever I could for a different solution; but I couldn't find very much on it. I included it just in case you might need it. Plus, fedora is a "newer" distro and might have had workarounds for that type of thing built into its installer that slackware does not. You can also try it if you get to the setup program and it doesn't recognize /dev/hdb.

If all that drive geometry stuff is as unappealing to you as it is to me, then by all means take the time and look for something else... I couldn't find or offer anything more than what I've posted. (And yes, I've done this geometry stuff with another computer for a completely different problem; but it's apparently a solution should a partitioning tool not find a hard disk.) With that being said, you shouldn't have to do any of it if Windows has control over any part of that drive... and it works.

Couple other things:
Cfdisk and fdisk do the same thing especially for what you're doing. I understand that fdisk has some limitations as it is a very basic tool, but I hear about fdisk as superior in a sense that it can do what it does in a variety of environments, which is why it's a standard. It doesn't matter because for your needs it's just as good but harder to use. Anyway... I'm trying to say that if cfdisk gives you smack then ditch it and try fdisk before you give up. Plus, if BOTH cfdisk and fdisk don't work, then you know something is up. I would try re-burning the Slack ISOs.

Also... to appease the Slackware gods, you'll want to make sure that before you write the partition table, that the Swap partition is of type 82, and the rest of them are of type 83. This way you'll KNOW that the setup tool should be recognizing them. You probably know this... but I'm covering my behind.

I hope cfdisk /dev/hdb is all you need. I'm not sure I can help any further than this without living on google for half a day.

Good Luck!

Last edited by zetabill; 07-05-2006 at 02:21 AM.
 
Old 07-05-2006, 12:00 PM   #5
thebiggiantmouse
Member
 
Registered: May 2006
Location: Da Bronx
Distribution: Arch Linux, Sackware, Gentoo
Posts: 255

Original Poster
Rep: Reputation: 31
zetabill thanx a bunch. i have done what you suggested and i am now a slacker. and no hdb contained nothing i did not want to touch....it contained my fedora linux i now wanted to tryout slackware
 
Old 07-05-2006, 06:44 PM   #6
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 32
Excellent. Glad that everything worked out for you!

I used Fedora exclusively before I switched to Slackware as well. It is truly an excellent choice. I don't use anything else right now... and I most likely will not go back to Fedora unless I have no other option or I'm paid for it.

And the support on the slack forum here is unequivocal.

Have fun and don't give up!
 
  


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
dual booting with external hardrive michaelkc Linux - Newbie 40 08-24-2007 11:05 PM
Slackware 10.1 on a sata hardrive YellowDogMACMAN Linux - Hardware 7 02-08-2005 04:01 PM
Dual Hardrive Booting suse 9.1 & XP Odin5578 SUSE / openSUSE 2 11-01-2004 03:13 AM
Preparing a system to dual boot Slackware 9.1 and Windows 98 keldivac Linux - Newbie 1 04-14-2004 07:27 PM
Re-install XP on Dual Boot System marktin Linux - Newbie 2 03-30-2004 09:49 AM

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

All times are GMT -5. The time now is 04:31 AM.

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