Linux - GeneralThis 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
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.
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.
I recently re-installed RedHat 7.1, and allowed the install to automatically create the partitions. Now, when I do cfdisk, I see that there is 276mb of unallocated 'Logical' free space. This is only a 3gb drive, so I'd like to reclaim this space. Can you give me specific instructions on how (if possible) to do this? Saying simply 'use fdisk' won't help me, if you know what I mean....
this greatly depends on your partitions and how they are on the disk
if the free space is adjacent to the partition you want to add it to then you can do it. if it's not then you would have to delete partitions between the two.
post your partition info
[root@microdot /root]# fdisk /dev/hda
The number of cylinders for this disk is set to 2432.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 255 heads, 63 sectors, 2432 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 804 6458098+ 7 HPFS/NTFS
/dev/hda2 805 811 56227+ 83 Linux
/dev/hda3 812 2432 13020682+ 5 Extended
/dev/hda5 812 1334 4200966 83 Linux
/dev/hda6 1335 1367 265041 82 Linux swap
/dev/hda7 1368 2432 8554581 7 HPFS/NTFS
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Boot Primary Linux ext2 [/boot] 53.68
hda5 Logical Linux ext2 [/] 2493.78
hda6 Logical Linux swap 404.62
Logical Free Space 276.63
(sorry about the formatting, it looked fine when I posted it...)
So, it looks like the swap partition is between the one I want to enlarge (/) and the free space. Is it safe to pull down the swap partition, resize the / partition and then create the swap again? I have a 333mhz, with 256mb RAM, and I don't think I've ever seen the swap space utilized.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.