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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-07-2005, 03:04 AM
|
#1
|
LQ Newbie
Registered: Nov 2004
Posts: 5
Rep:
|
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.
|
|
|
01-07-2005, 03:23 AM
|
#2
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
01-07-2005, 03:27 AM
|
#3
|
LQ Newbie
Registered: Nov 2004
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
01-07-2005, 04:01 AM
|
#4
|
LQ Newbie
Registered: Nov 2004
Posts: 5
Original Poster
Rep:
|
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!
|
|
|
01-07-2005, 04:18 AM
|
#5
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
All times are GMT -5. The time now is 06:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|