Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Trying to add Partitions

Reply  
Thread Tools
bigoli's Avatar
Junior Member with 29 posts.
 
Join Date: Apr 2005
Location: Alabama
Experience: Intermediate
02-Jun-2005, 09:11 AM #1
Trying to add Partitions
I would like to add more Extended partitions, but neither fdisk or cfdisk will let me. I get the following when I try to add partitions.



Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1051 8442126 c W95 FAT32 (LBA)
/dev/hda2 1052 2071 8193150 5 Extended
/dev/hda3 * 2072 2454 3076447+ 83 Linux
/dev/hda5 1052 1115 514048+ 82 Linux swap
/dev/hda6 1116 1498 3076416 83 Linux
/dev/hda7 1499 2071 4602591 83 Linux

Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l <- I enter an 'l'
No free sectors available

Command (m for help): v
38732963 unallocated sectors <- I assume this means 'free'


What is wrong here!

Thanks.

James Oliver
CouchMaster's Avatar
Senior Member with 3,365 posts.
 
Join Date: May 2003
Location: West Texas
Experience: n00b
02-Jun-2005, 11:21 AM #2
Big-K's Avatar
Distinguished Member with 6,954 posts.
 
Join Date: Nov 2003
Location: Kansas
Experience: Advanced
02-Jun-2005, 12:16 PM #3
DiskDrake is the only one I've ever used that's been able to succesfully resize a partition(if you only have one partition thats the sort of thing you'll need).
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
03-Jun-2005, 12:41 AM #4
I think the problem is in your extended partition (/dev/hda2). You've specified that it ends at cylinder 2071, and you've created filesystems that take up all of this space (the last one being /dev/hda7 which ends on cylinder 2071). This means that you cannot add additional filesystems in this extended partition.

So what if you created another extended partition, perhaps one that began on cylinder 2072 and continued until the end of the disk (this is the 38732963 unallocated sectors, BTW)? Well, you could -- but it will have to be /dev/hda4, since that is the only primary partition slot that is still available. You might try creating another primary partition (/dev/hda4) using 2072 for the beginning cylinder and 4865 for the end cylinder, which effectively uses the rest of the disk. Then try changing the type (ID) of the partition to extended. If this works, you should then be able to use fdisk/cfdisk to create as many filesystems in this new extended partition as you need.

If it doesn't work, you may still have some alternatives. You could, as Big-K suggests, resize your extended partition, and specify the ending cylinder between 2072 and 4865 (inclusive). Unfortunately, neither fdisk nor cfdisk allow you to do this (Xenix, anyone?!? ), so you will need another utility to accomplish this (unless, of course, you are willing to edit the partition table manually). You might also see if Windoze will create this extended partition for you (or even, dare I say it?! -- DOS fdisk). I haven't tried to use Windoze/DOS to create a second extended partition (so I can't vouch for the results) but it's at least worth investigating.

Hope this helps.
__________________
The slowest component still sits at the keyboard.
bigoli's Avatar
Junior Member with 29 posts.
 
Join Date: Apr 2005
Location: Alabama
Experience: Intermediate
04-Jun-2005, 01:47 PM #5
codejockey:

Thanks. I believe you're right about the extended partitions.

You've given me something to think about. I could delete partitions in the order hda3(after move existing data to another disk), hda7, hda6, hda5, and hda2 - then remake partition hda2, an Extended partition all the way to cylinder 4865. Then I could define partitions hda5, hda6, and hda7 as using the same cylinders as before. I think that may work. I'll have to think about it. There may be some formating issues I haven't considered.

James Oliver
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:46 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.