Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-03-2003, 11:38 PM
|
#1
|
Member
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639
Rep:
|
formating / partitioning a new hard drive
i have been trying to partition my new hard drive in linux, but for some reason its not being recognized...
[atlantis@localhost atlantis]$ ls /dev/hd*
/dev/hda@ /dev/hda2@ /dev/hda6@ /dev/hda8@ /dev/hdd@
/dev/hda1@ /dev/hda5@ /dev/hda7@ /dev/hdc@
the hard drive should be /dev/hdb .... anyways, im new to linux, and have never formatted or partitioned a hard drive in linux before. i thought i could just use fdisk but there is no /dev/hdb so now im stuck, and dont know what to do.
|
|
|
12-04-2003, 12:42 AM
|
#2
|
Member
Registered: Oct 2003
Distribution: Ubuntu "Hoary" - The best distro around by a long shot.
Posts: 116
Rep:
|
Try "fdisk /dev/hdb", or in Mandrake, try using diskdrake (I think that's what it's called, it's Mandrake's partitioning tool and is very friendly).
|
|
|
12-04-2003, 01:09 AM
|
#3
|
Member
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639
Original Poster
Rep:
|
disk drake doesnt see that there is a second drive... and
[root@localhost atlantis]# fdisk /dev/hdb
Unable to open /dev/hdb
my linux doesnt detect hdb... but windows does.
|
|
|
12-04-2003, 02:35 PM
|
#4
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
Just a guess: Based on your listing, I think your second drive is being detected, but it's appearing as hdd. Try running: fdisk /dev/hdd and see if that's your second drive.
On one of my boxes the second drive is hdb, on the other it's hdd. I don't know if this will help but it's worth a try. Also, as an alternative to fdisk you might also want to try cfdisk. Their purposes are the same but personally I prefer cfdisk. In any case the commands you're running are the right ones. -- J.W.
|
|
|
12-04-2003, 03:39 PM
|
#5
|
Member
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639
Original Poster
Rep:
|
it shouldnt be, i have a cdrom drive as my secondary slave.. which would be wehre hdd would be... but anyways i tried mounting and didnt work... and fdisk doesnt dettect it as a drive
|
|
|
12-04-2003, 03:55 PM
|
#6
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
Well, that's odd. Are all the devices jumpered correctly, and are the power and data cables seated securely? If you go into your BIOS, does the second drive appear? Assuming the answer is Yes to all these items, then I'm likewise puzzled as to why it isn't showing up. The commands you're running are correct, and it should be detected. -- J.W.
|
|
|
12-04-2003, 05:04 PM
|
#7
|
Member
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639
Original Poster
Rep:
|
yes, the answer to all of those are yes... the even weirder thing is that windows detects it... and even weirder is that in mandrake control center, it shows 2 hard drives, but when you click config tool, it opens up disk drake, but with only 1 hd
|
|
|
12-04-2003, 06:54 PM
|
#8
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
Sorry - you've stumped me. I wish I had an answer for you, but this is baffling to me. I'm not familiar with diskdrake, but if the control center shows 2 drives, then you should be able to access them both. Hopefully someone with superior knowledge can help out. -- J.W.
|
|
|
12-05-2003, 01:15 AM
|
#9
|
LQ Newbie
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5
Rep:
|
Lets look at this . Motherboards typically have two IDE channels channel 0 and channel 1.(numbering starts with 0 when talking about computers) IDE channel 0 master is allocated HDA for primary and HDB for slave. IDE channel 1 is allocated HDC <- for primary and HDD for slave. Did you daizy-chain off of your boot drive with the new disk? Or the CDROM? If you hooked up to the CDROM, the new disk is /dev/hdc.
|
|
|
12-05-2003, 02:42 AM
|
#10
|
Member
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639
Original Poster
Rep:
|
no... i understand how all this stuff works... and my 2nd hard drive is the slave of my primary ide channel. so, my primary hard drive is the master of that same channel... my 2nd hard drive is /dev/hdb
|
|
|
12-05-2003, 02:53 AM
|
#11
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
This is just more of the same....
What does "cfdisk -P s" show?
|
|
|
12-05-2003, 11:11 AM
|
#12
|
LQ Newbie
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5
Rep:
|
Oops, </newbie mode> sorry. A couple of things to try;
temporarily connect the new drive on the secondary channel master/alone.
(checking to see if you need to add some device entries in /dev) Avoid using Cable Select. (I don't suggest using this jumper setting at any time) See if you can access the drive as /dev/hdc then. With brand new drives either use fdisk or cfdisk with the -z option. Use the command line tools to limit the number of variables in your problem.
|
|
|
12-05-2003, 02:03 PM
|
#13
|
Member
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639
Original Poster
Rep:
|
First Last
# Type Sector Sector Offset Length Filesystem Type (ID) Flags
-- ------- -------- --------- ------ --------- ---------------------- ---------
1 Primary 0 16852184 63 16852185 Win95 FAT32 (LBA) (0C) Boot (80)
2 Primary 16852185 117226304 0 100374120 Extended (05) None (00)
5 Logical 16852185 48307454 63 31455270 Win95 FAT32 (LBA) (0C) None (00)
6 Logical 48307455 79762724 63 31455270 Linux (83) None (00)
7 Logical 79762725 111217994 63 31455270 Linux (83) None (00)
8 Logical 111217995 117226304 63 6008310 Linux swap (82) None (00)
[root@localhost atlantis]#
|
|
|
12-05-2003, 02:30 PM
|
#14
|
Member
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639
Original Poster
Rep:
|
in themandrake control center, its shows this
Model: ?6Y120P0
Vendor: ?Maxtor
Bus: ?ide
Channel: ?secondary
New devfs device: ?/dev/ide/host0/bus0/target1/lun0/disc
Old device file: ?/dev/hdb
Media class: ?hd
but when i click config, that whole device is not there... and the files /dev/hdb and /dev/ide/host0/bus0/target1/lun0/disc do not exist
|
|
|
12-05-2003, 05:50 PM
|
#15
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
Okay, this is your drive (I am guessing).
I do not know anything about SATA drives. Do you need to set a jumper or something? Are they seen as a different device? This model says it is ATA or SATA. (???)
If the fdisk programs are not finding the drive, something is "whacky" with the hardware config.
|
|
|
All times are GMT -5. The time now is 06:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|