LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-06-2004, 10:52 PM   #1
tcma
Member
 
Registered: Aug 2004
Distribution: gentoo, Fedora Core
Posts: 54

Rep: Reputation: 15
create several partitions between hda1 and hda3


This is my disk partitions.
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/hda1 * 1 1559 12522636 7 HPFS/NTFS
/dev/hda3 3985 3997 104422+ 83 Linux
/dev/hda4 3998 7296 26499217+ f W95 Ext'd (LBA)
/dev/hda5 3998 7166 25454961 83 Linux
/dev/hda6 7167 7296 1044193+ 82 Linux swap

How do I create several partitions (one for FAT32 and the rest for a new linux installation) between hda1 and hda3?
 
Old 09-06-2004, 11:20 PM   #2
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
The easiest way without using fdisk, ntfsresize, etc is to get boot it from www.terabyteunlimited.com . Create the boot disk and boot from it. At the menu, hit escape or cancel (don't remember which) and proceed to the partition work dialog.

The interface should be very intuitive, so you should be able to repartition without much trouble. However, I wouldn't recommend that you create an ancient FAT32 file system unless you really need to have write access to some files from both Windows and Linux. There are drivers that can write to Ext2/Ext3 from windows albeit unsafely, and NTFS write access should eventually end up in Linux.

Caveat:

Windows doesn't like moved or resized partitions. Symptoms that I've experienced are hanging during uninstalls and windows hanging before the login screen. Before you boot windows XP on a partition that has been moved or resized, you need to do what the boot it manual says: clear some boot signatures and delete the keys in HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices.
 
Old 09-07-2004, 01:48 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
You can only create 1 partition between hda1 and hda3 i.e. hda2. That is because there is the only remaining free primary partition ID available. In addition your extended partition is also completely allocated and so your unable to create additional logical partitions.

To create more then one partition you will need to resize the extended partition. parted or QTparted are the linux utilities for resizing and moving partitions.
 
Old 09-07-2004, 09:08 AM   #4
tcma
Member
 
Registered: Aug 2004
Distribution: gentoo, Fedora Core
Posts: 54

Original Poster
Rep: Reputation: 15
To clarify my understanding:
First I create one partition between hda1 and hda3 i.e. hda2 with some free space left (x).
Then resize hda3, hda4, hda5 and hda6 to use the free space x.
Finally create the new partitions hda7, etc.

Quote:
Originally posted by michaelk
You can only create 1 partition between hda1 and hda3 i.e. hda2. That is because there is the only remaining free primary partition ID available. In addition your extended partition is also completely allocated and so your unable to create additional logical partitions.

To create more then one partition you will need to resize the extended partition. parted or QTparted are the linux utilities for resizing and moving partitions.
 
Old 09-07-2004, 09:31 AM   #5
igu
Member
 
Registered: Jan 2003
Distribution: Fedora, Gentoo, SUSE, Mandriva
Posts: 127

Rep: Reputation: 15
Quote:
Originally posted by bobwall
Windows doesn't like moved or resized partitions. Symptoms that I've experienced are hanging during uninstalls and windows hanging before the login screen. Before you boot windows XP on a partition that has been moved or resized, you need to do what the boot it manual says: clear some boot signatures and delete the keys in HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices.
This is quite weird. What do you use for partitioning? I'm using QTParted or ntfsresize and never experienced the problems you described :-o
 
Old 09-07-2004, 10:58 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
You want to resize hda4 i.e. the extended partiton to encompass the free space that way you can create more then one partition.
 
Old 09-07-2004, 11:00 AM   #7
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
The only partition tools I've used are fdisk, ntfsresize, and boot it. When I deleted the recovery partition on my desktop (the first one @ 5gigs) and slided the windows one to the front of the disk, Windows XP hung at the login screen. I had to slide the file system back and then delete those keys and clear the boot signatures before sliding it back again.

The same thing happens when I shrunk the Windows boot partition. I don't think you get this problem when you enlarge a windows partition.
 
Old 09-15-2004, 12:18 PM   #8
igu
Member
 
Registered: Jan 2003
Distribution: Fedora, Gentoo, SUSE, Mandriva
Posts: 127

Rep: Reputation: 15
I see. When partitions are moved or rearranged then the described problems can happen, I agree.

When partitions are resized then they aren't moved (start position stays the same, at least for QTParted and ntfsresize) but the partition order can change if it's done on a logical partition by e.g. fdisk, you use. In these cases you can fix the partition order by entering the expert menu and using the 'f'' command (fix partition order).

Last edited by igu; 09-15-2004 at 12:22 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how many partitions should I create? Necronomicom Slackware - Installation 14 06-28-2004 09:12 PM
moving hda3>hda1 repartition rh9 wolfe2554 Linux - Software 0 05-13-2004 02:08 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 05:12 PM
hda1, hda2 and hda3.. partitioning order concoran Linux - Software 4 10-16-2003 12:26 AM
RH9 How many partitions can I create? oracsol Linux - Newbie 1 09-25-2003 03:35 PM


All times are GMT -5. The time now is 05:31 PM.

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