There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Trying to add Partitions


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
bigoli's Avatar
Junior Member with 29 posts.
 
Join Date: Apr 2005
Location: Alabama
Experience: Intermediate
02-Jun-2005, 08: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
Distinguished Member with 3,340 posts.
 
Join Date: May 2003
Location: West Texas
Experience: n00b
02-Jun-2005, 10:21 AM #2
Big-K's Avatar
Distinguished Member with 6,883 posts.
 
Join Date: Nov 2003
Location: Kansas
Experience: Advanced
02-Jun-2005, 11:16 AM #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
02-Jun-2005, 11:41 PM #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, 12: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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are Off
Refbacks are Off

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 12:08 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.