LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2005, 07:27 PM   #1
junwen
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Rep: Reputation: 0
Problem with fdisk


I have 2 harddrives, but when I type fdisk sda, the hd I want to install my linux, then p for the list, I only see hdb, my second drive, sda contains windows xp, how do I get it to show up?
 
Old 02-18-2005, 07:57 PM   #2
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
did you try fdisk /dev/sda?

also, you should make sure the drive isn't mounted before you do this. is linux installed on your other drive? check /etc/fstab and if you see any entries with /dev/sda then make sure to unmount them before you run fdisk.

Last edited by mcd; 02-18-2005 at 07:59 PM.
 
Old 02-19-2005, 10:35 AM   #3
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
hmmm

Are you sure your first hd is /dev/sda then it is a SCSI hard drive. And if it is then it's a little weird (I think) that you other hd is on /dev/hdb instead of /dev/hda

You can also use the more friendly cfdisk. It works as fdisk but is much easier from my point of view.
 
Old 02-19-2005, 07:33 PM   #4
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
also, why do you want to partition a drive with windows xp on it? fdisk will destroy any data on the disk. if you want to save anything, use something like partion magic.
 
Old 02-19-2005, 09:56 PM   #5
Mr. Hill
Member
 
Registered: Feb 2005
Location: Pepperland
Distribution: Arch Wombat, FreeBSD Current, OpenBSD 3.7
Posts: 238

Rep: Reputation: 30
Had the same problem sort of, enraged me so much I gave up on Slackware for about 3 days and then I slowly crawled back to Slack and forced myslef to sit through the whole install until Slack was on. It worked.

Try cfdisk, easier to use in my opinion. Then try "cfdisk /dev/hdb" NOTE: The "hdb" is only an example, put whatever drive you need to in that place is need be. You should now have access to it, delete whatever you need to, enter "New" and write to the new. Now go to setup. Assuming you want to use your entire drive that's what you would do, if not do not delete anything just create a new partition.

Do not put anything on your Win drive or you will lose it. Get a hard drive just for Linux, hd are cheap these days for a small 5-10 gig. You already noted that you have two discs so I dunno what's going on. Basically you need to know what drive you want Linux on, then type "cfdisk /dev/....." as I said before.


BTW, a little tid-bit of personal info would be that my master drive is "hda" and my slave is "hdb", I'm not saying yours has to be this way I'm just telling you what I have. I dunno where you're getting sda.

Last edited by Mr. Hill; 02-19-2005 at 10:02 PM.
 
Old 02-20-2005, 04:32 PM   #6
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
He wrote he had a sata harddrive so maybe that's why he's got sda. I have ordinary ide so I also got hda and hdb...
 
Old 02-20-2005, 04:34 PM   #7
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
ehh, never mind that, he didn't write that at all! =) but, if he doesn't have both IDE hds it could be the reason
 
Old 02-20-2005, 06:09 PM   #8
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
/dev/sda is a scsi hard drive. nothing strange about that. i'm just curious why his ide drive would be hdb instead of hda, but maybe that's determined by master/slave state, and maybe his ide drive is the slave. that's what i assumed, anyway.
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
Problem with fdisk Tinku Linux - General 14 11-11-2005 09:44 AM
Problem using command fdisk -l ? AkshatBhandari Linux - Newbie 2 03-17-2005 01:36 PM
fdisk problem bosewicht Linux - Newbie 2 06-11-2004 08:48 PM
Problem using fdisk? cgsm Linux - Newbie 1 08-23-2003 09:05 PM


All times are GMT -5. The time now is 08:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration