LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-01-2003, 10:56 PM   #1
fury
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat 9
Posts: 3

Rep: Reputation: 0
How to tell which hard drive is which in linux?


Hi all. I'm tryin to setup my partitions for Redhat9 and during installation redhat said "Cannot allocation partition tables." Redhat said it can fix this problem though but it would result in loss of all information off of /dev/hda. I was wondering 2 things.

1. Can I setup the partitions some other way? Partition magic gives me the same problem, auto partition from redhat doesnt work, and disk druid gives me that error above.

2. Can I find out which hard drive is /dev/hda/ from Windows XP or anywhere else? I don't want to accidentally erase my storage partition thinking that it's my windows partition.

Thanks for your help.
 
Old 10-01-2003, 11:20 PM   #2
Rick485
Member
 
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
hda would be your first hard drive. If you have a second hard drive it would be hdb. I also use both Red Hat 9 and Partition Magic. I am not sure if I understand how you currently have your system configured. Most new computers usually come configured with just one partition all of which is set aside for Windows. When you run Partition Magic does it just show one partition? Does it show any free space which is unallocated? Also does it say that you have just one hard drive?

If there is not any free space then you would need to reduce the size of the Windows partition to create some free space. Once you have some free space you can then create one or more partitions for Linux. Or if you do not want to alter your Windows partition you could add a second hard drive and put Linux on that.

I have resized partitions of various types using Partition Magic although I do not have any experience with Windows XP. On my computer I have only used Windows 2K, Windows ME, PC DOS 2000 and several versions of Linux. I have resized patitions with Windows ME and Windows 2K so I assume it would also be OK to resize a Windows XP partition. By the way, how big is your hard disk?
 
Old 10-01-2003, 11:39 PM   #3
187807
Member
 
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
Re: How to tell which hard drive is which in linux?

Quote:
Originally posted by fury
1. Can I setup the partitions some other way? Partition magic gives me the same problem, auto partition from redhat doesnt work, and disk druid gives me that error above.
From what I know, linux devices are listed as follows:

/dev/hda = Master device on Primary IDE channel (IDE0);
/dev/hdb = Slave device on Primary IDE channel (IDE0);
/dev/hdc = Master device on Secondary IDE channel (IDE1);
/dev/hdd = Slave device on Secondary IDE channel (IDE1).

If you are (as you say) using WinXP then I would strongly discourage using any linux partitioning utility UNLESS you are installing on: 1) empty partition(s) which you have already made available, OR 2) a drive which you wish to dedicate totally to linux (thus leaving WinXP alone on another drive).

The reason for this is the NTFS file system which you may (or may not) be running. Partition Magic is a good way to (relatively) safely resize NTFS (or FAT) partitions to ensure that you don't lose data.


Quote:
2. Can I find out which hard drive is /dev/hda/ from Windows XP or anywhere else? I don't want to accidentally erase my storage partition thinking that it's my windows partition.
Well, how many hard drives are in your system? If you only have one, chances are it is /dev/hda. If this is the drive you want to install to, you will need to allocate space for it (this can be done by Partition Magic...I'm unfamiliar with the errors you say PM is throwing you). The most important bit of information you can provide is how your system is set up. That is, how many hard drives do you have? How are they partitioned? How many CDROM drives to you have? When you are running the RH install, what devices does it give you the option of installing to (assuming you've just got IDE devices, it will only list the hard drives as /dev/hdX). How many devices does it present to you? /dev/hda, /dev/hdb, /dev/hdc, /dev/hdd?

Quote:
Thanks for your help.
No problem as for the help (if I've been any). I've currently got five OSs (XP, 98, Deb, Slack 9.0 and Slack 9.1) booting off of two hard drives.

Just trying to figure out what your situation is so we can offer more definitive help.

Cheers,
Bob
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
access external hard drive linux partition on linux and vice versa garyozzy Linux - Newbie 2 08-03-2005 07:11 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 02:47 AM
boot from floppy drive then insall linux redhat9 from HARD DRIVE Shiraz Ahmed Linux - Software 0 08-23-2004 06:11 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM


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