Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with Hard Drive Names
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
OverLordTed
n00b
n00b


Joined: 25 Dec 2002
Posts: 14
Location: Texas

PostPosted: Sat Dec 28, 2002 3:35 pm    Post subject: Problems with Hard Drive Names Reply with quote

I am having a problem with the assigned names of the hard drive...When I partitioned my hard drive it said that the first partition was hda1 the second hda5 and the third hda6. This comes to be a problem when following the intructions and seeing that they use hda2 and hda3. I assumed these were my hda 5 and 6 with different names. But then I looked in my /dev folder and came upon the fact that there are 5 names listed for hard drive:

hda
hda1
hda2
hda5
hda6

This thoroughly confused me. Could some1 please tell me if this is normal and if it isnt can some1 please assisst me in finding out how to change teh names of the partitions. Also, I was wondering if anyone knew which were primary adn which were the logical drives. And finnally could some1 let me know what the command is to completely format a hard disk.

Thank You in advance
Back to top
View user's profile Send private message
hhaamu
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 253
Location: Finland

PostPosted: Sat Dec 28, 2002 3:39 pm    Post subject: Reply with quote

The primary partitions are hda1-hda4. The logical partitions are hda5-hda64 (or something like that).

/dev/hda is your hard disk. /dev/hda1 is the partition you wanted to create as /dev/hda1. /dev/hda2 is the extended partition, where all your logical partitions reside (don't touch this one). You can't have any logical partitions without an extended partition (which takes one space in the primary partitions).

And no, you can't change the numbering of your partitions unless you change their physical position on the disk.

I hope someone else can explain this more clearly.
Back to top
View user's profile Send private message
hhaamu
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 253
Location: Finland

PostPosted: Sat Dec 28, 2002 3:42 pm    Post subject: Reply with quote

... And the command to format your hard disk is:

Code:
dd if=/dev/zero of=/dev/hda


If you want to destroy completely your data, then do a
Code:
for a in 1 2 3 4 5; do dd if=/dev/random of=/dev/hda; done
dd if=/dev/zero of=/dev/hda
Back to top
View user's profile Send private message
OverLordTed
n00b
n00b


Joined: 25 Dec 2002
Posts: 14
Location: Texas

PostPosted: Sat Dec 28, 2002 9:39 pm    Post subject: ok... Reply with quote

Well now that I understand which hard drives are which should I still use hda3 and hda2 where it says to in the installation or should I replace it with hda5 and hda6?
Back to top
View user's profile Send private message
noff
Guru
Guru


Joined: 11 Nov 2002
Posts: 388
Location: College Park, Maryland

PostPosted: Sat Dec 28, 2002 10:12 pm    Post subject: Reply with quote

In the installation guide hda1 is /boot hda2 is swap hda3 is /
so in the instructions wherever hda1 is listed use what ever partition is your /boot partition.

If you are wiping the drive you will want to pay attention to the size guidelines listed when you make your new partitions. You may also want to add a /home partition to easy future reinstalls.
_________________
What Larry was saying is that if you make it too easy for programmers, then poor programmers will be able to do things best left to good programmers, and will inevitably do them poorly. Everyone will suffer in the long term as a result." - Tom Chance
Back to top
View user's profile Send private message
wuschel
Apprentice
Apprentice


Joined: 27 Dec 2002
Posts: 177
Location: Rodenbach, Germany

PostPosted: Sat Dec 28, 2002 10:58 pm    Post subject: Reply with quote

@hhaamu:
Why should he 'zero' his partitions?
I think, after partitioning mkfs is good enough, isn't it?

@OverLordTed:
It's not so important what partitions you create: hda1 or hda2 or hdax or some (described in chapter "6. Partition Configuration").
In chapter "7. Mount Partitions" you'll learn to mount the partitions in your host-linux-system.

If you use the partitions i.e. hda5 and hda6 you can mount them to your gentoo-dir and/or swap.
The commands for this case (example):
mount /dev/hda5 /mnt/gentoo
swapon /dev/hda6

wuschel
Back to top
View user's profile Send private message
hhaamu
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 253
Location: Finland

PostPosted: Sun Dec 29, 2002 11:36 am    Post subject: Reply with quote

wuschel wrote:

Why should he 'zero' his partitions?
I think, after partitioning mkfs is good enough, isn't it?


Well, OverLordTed asked how to *completely* format a hard disk. Besides, when you do a mkfs with a partition, you can easily recover most of the data.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum