View previous topic :: View next topic |
Author |
Message |
gabo Tux's lil' helper
Joined: 24 Aug 2004 Posts: 134 Location: Lyon, France
|
Posted: Sat Nov 06, 2004 11:38 pm Post subject: [fdisk] how can I safely modify my partitions ? |
|
|
Hello !
I have my hdd splitted into 4 partition :
Code: | /dev/hda1 * 1 4331 34788726 7 HPFS/NTFS
/dev/hda2 5738 5746 72292+ 83 Linux
/dev/hda3 5747 5871 1004062+ 82 Linux swap / Solaris
/dev/hda4 5872 7296 11446312+ 83 Linux |
I'd like to split the first one (which hosts windows as you guessed :p ) into
two partition, in order to have a fat32 partition available both to win and
linux.
My new partition table would looks like (fdisk launched, but not yet
commited) :
Code: | /dev/hda1 * 1 5737 46082421 5 Extended
/dev/hda2 5738 5746 72292+ 83 Linux
/dev/hda3 5747 5871 1004062+ 82 Linux swap / Solaris
/dev/hda4 5872 7296 11446312+ 83 Linux
/dev/hda5 1 1581 12699319+ 0 empty
/dev/hda6 1582 5737 33383038+ 0 empty |
My first question : is it possible to have the first partition as active, even
if it's an extented partition ? ( there's a warning when I set the first partition active)
My second question : I recently emerged latest baselayout and it
changed my system using udev I think, but i'm not sure :
/dev/hda became /dev/ide/host0/bus0/target0/lun0/disc/.
(i had to change that in grub.conf in order to make my gentoo boot again)
Code: | gabo dev # ll hd*
lr-xr-xr-x 1 root root 32 nov 6 18:10 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x 1 root root 33 nov 6 18:10 hda1 -> ide/host0/bus0/target0/lun0/part1
lr-xr-xr-x 1 root root 33 nov 6 18:10 hda2 -> ide/host0/bus0/target0/lun0/part2
lr-xr-xr-x 1 root root 33 nov 6 18:10 hda3 -> ide/host0/bus0/target0/lun0/part3
lr-xr-xr-x 1 root root 33 nov 6 18:10 hda4 -> ide/host0/bus0/target0/lun0/part4
lr-xr-xr-x 1 root root 30 nov 6 18:10 hdc -> ide/host0/bus1/target0/lun0/cd |
When I try to setup grub :
Code: | gabo boot # grub-install --root-directory=/boot /dev/hda
/dev/ide/host0/bus0/target0/lun0/disc does not have any corresponding BIOS
drive. |
What can I do ? Do I have to change my active partition and tell it to grub ?
Why grub install doesn't work anymore ?
Thanks a lot ! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Sat Nov 06, 2004 11:57 pm Post subject: |
|
|
gabo,
You will need to reinstall windows if you go ahead with that partition layout. An extended partition is just a container for logical partions, you cannot put any data into it.
You may mark the extended partition active buut it won't have the effect you want.
Windows will kick and scream and sulk unless you put it in /dev/hda1 too.
I would shrink /dev/hda1 and leave windows on it.
Delete /dev/hda2 which looks like /boot
Delete /dev/hda3 which as swap, is eady to recreate.
This leaves /dev/hda1 at the front of the drive to keep Windows happy, /dev/hda4 at the end of the drive and all the free space in the middle, from shrinking /dev/hda1 and deleting /dev/hda2 and /dev/hda3.
Create an extended partition to use all the space, it can be either /dev/hda2 or /dev/hda3, it doesn't matter.
Now create three new partitions,
/dev/hda5 for /boot
/dev/hda6 for <swap>
/dev/hda7 for FAT32
This leves a gap in the partition table but that doesn't matter. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gabo Tux's lil' helper
Joined: 24 Aug 2004 Posts: 134 Location: Lyon, France
|
Posted: Sun Nov 07, 2004 12:30 am Post subject: |
|
|
Thank you !
My windows partition is already shrunk. I first, i wanted to created a fifth partition, but ... there's only four slots available
It was the reason why I decided to create an extended partition. I know that it's a container, in my previous exemple, hda5 and hda6 would have been logical partition.
Anyway, even if I'm used to installing windows, your solution I far better. I'll try this tomorrow. |
|
Back to top |
|
|
|
|
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
|
|