LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 11-15-2001, 04:06 PM   #1
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
reclaiming free space


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....

Thanks in advance.
 
Old 11-16-2001, 12:05 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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

Command (m for help):
 
Old 11-16-2001, 10:40 AM   #3
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Original Poster
Rep: Reputation: 15
here is what cfdisk /dev/hda gives me:


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.

Thanks again for your help, I appreciate it.
 
Old 11-17-2001, 08:29 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you can unmount and delete the swap partition, grow the / partition and create a new swap partition at the end.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reclaiming Linux drive space for windows sleeves Linux - Newbie 12 11-14-2004 04:04 PM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:19 AM.

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
Open Source Consulting | Domain Registration