View previous topic :: View next topic |
Author |
Message |
OverLordTed n00b
Joined: 25 Dec 2002 Posts: 14 Location: Texas
|
Posted: Sat Dec 28, 2002 3:35 pm Post subject: Problems with Hard Drive Names |
|
|
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 |
|
|
hhaamu Apprentice
Joined: 23 Aug 2002 Posts: 253 Location: Finland
|
Posted: Sat Dec 28, 2002 3:39 pm Post subject: |
|
|
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 |
|
|
hhaamu Apprentice
Joined: 23 Aug 2002 Posts: 253 Location: Finland
|
Posted: Sat Dec 28, 2002 3:42 pm Post subject: |
|
|
... 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 |
|
|
OverLordTed n00b
Joined: 25 Dec 2002 Posts: 14 Location: Texas
|
Posted: Sat Dec 28, 2002 9:39 pm Post subject: ok... |
|
|
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 |
|
|
noff Guru
Joined: 11 Nov 2002 Posts: 388 Location: College Park, Maryland
|
Posted: Sat Dec 28, 2002 10:12 pm Post subject: |
|
|
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 |
|
|
wuschel Apprentice
Joined: 27 Dec 2002 Posts: 177 Location: Rodenbach, Germany
|
Posted: Sat Dec 28, 2002 10:58 pm Post subject: |
|
|
@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 |
|
|
hhaamu Apprentice
Joined: 23 Aug 2002 Posts: 253 Location: Finland
|
Posted: Sun Dec 29, 2002 11:36 am Post subject: |
|
|
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 |
|
|
|