LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2005, 03:04 AM   #1
silverpearl
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Rep: Reputation: 0
linux partition problems


hey all! i'm having trouble creating new paritition with my redhat 9

here is the printout of the fdisk

# fdisk -l /dev/hda

Disk /dev/hda: 4327 MB, 4327464960 bytes
255 heads, 63 sectors/track, 526 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 461 3598560 83 Linux
/dev/hda3 462 526 522112+ 82 Linux swap

I want to create another partition. when i do fdisk on /dev/hda, it says i dont have any free sectors, which is fair enough. then i tried to do fdisk /dev/hda2 to see if i can make up a new partition from there. im not sure whether u r allowed to do that, as to me it looks like im tryin to resize?

anyhow, since this paritition is online, linux asked to be reboot to make the new partition active. before reboot, i printed the partition table and it showed the below

Device Boot Start End Blocks Id System
/dev/hda2p1 1 13 104391 83 Linux


after reboot, i thaught i need to created a file system on the partition. when i executed mke2fs /dev/hda2p1, it said device doesnt exist!

what am i doing wrong here? pls excuse my ignorance, im new to all this stuff. TIA

Last edited by silverpearl; 01-07-2005 at 03:18 AM.
 
Old 01-07-2005, 03:23 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Ok, the entire physical drive in your machine is labeled as hda, hdb, hdc, or whatever. When you see hda1, hda2, or hda3 for example, those refer to partitions within the same hard drive.

When you tried to create a partition on /dev/hda and it said you had no more sectors, that meant all of the space on that hard drive was used. Changing to /dev/hda2 won't change that, because it's still part of the same hard drive. In fact, I'm not sure why fdisk even allowed you to do that. You would be trying to create a partition within a partition, and to my knowledge, that's not possible.

You will need to either:
1. Install a new hard drive and create one or more partitions on it
2. Resize your current partitions to make room for another one. Be aware that resizing typically means you will lose all data on partitions you change. There are tools that say they can resize a partition without data loss, but I've heard mixed reviews about all of them.
 
Old 01-07-2005, 03:27 AM   #3
silverpearl
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Original Poster
Rep: Reputation: 0
dark helment, thanks for the quick reply.

i was thinking the same aswell and just wanted someone to confirm that for me. thanks for ur tip
i will look in to the tools that will help me to resize.
 
Old 01-07-2005, 04:01 AM   #4
silverpearl
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Original Poster
Rep: Reputation: 0
dark helmet, could u pls suggest me some tools that u think had the most success in resizing and at the same time not too complicated to use
thanks champ!
 
Old 01-07-2005, 04:18 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I don't use them actually. I have heard "Partition Magic" mentioned a number of times, but it's a commercial tool.

Whenever I need to change my partition scheme, I simply make a backup copy. I use tar to store the partition's contents into a single file, burn it to a cd, change the partition, use a "rescue" CD (like Knoppix), and then extract the tarball(s) to the new partitions. I'd only try this is you're comfortable with your rescue system, and you're confident you won't forget anything important. Essentially it's the backup-reformat-restore routine.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition problems - Linux SW? timelord726 Linux - Software 11 08-12-2004 11:57 PM
Problems getting Linux running after partition shuffle Silvermink Linux - Newbie 4 10-27-2003 03:51 AM
Linux partition resize...grub problems pandasuit Linux - General 6 08-21-2003 12:04 AM
Problems with linux partition ... again ... havitush99 Linux - Software 1 02-16-2002 01:31 PM
Deleted Linux partition..big problems SeanH Linux - Software 3 08-20-2001 12:32 AM


All times are GMT -5. The time now is 06:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration