LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disk running out of space (https://www.linuxquestions.org/questions/linux-newbie-8/disk-running-out-of-space-740936/)

shaggy9 07-17-2009 11:51 PM

Disk running out of space
 
Hi,

I am New to Linux. I installed Oracle Enterprise Linux on my laptop. Now i am running out of space. Is there a way i can add other available space from my system.

#fdisk p-l

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/hda2 2612 4863 18089190 f W95 Ext'd (LBA)
/dev/hda5 2612 4198 12747546 7 HPFS/NTFS
/dev/hda6 4199 4211 104391 83 Linux
/dev/hda7 4212 4863 5237158+ 8e Linux LVM

# df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
4.0G 3.3G 561M 86% /
/dev/hda6 99M 12M 82M 13% /boot
tmpfs 202M 0 202M 0% /dev/shm


thank you

paulsm4 07-18-2009 12:04 AM

It sounds like you've got a multi-boot system, a 40GB drive (which really isn't very much to begin with, if you're running Vista or something) ... and you decided to give Linux 4GB (a mere 10%) of your drive.

Maybe if you've got enough free space, you can go into Windows disk manager and reduce the size of your Windows partition (giving Linux + Oracle at least 20GB, or something a bit more reasonable).

Otherwise, if you can't free up space from Windows, then perhaps you might consider a bigger HD.

shaggy9 07-18-2009 08:52 AM

thank you paulsm4 for your reply. I used to run windows XP previously and want to remove it completely. I do not have a dual boot now. Is there a way I can format the other 34 GB and allocate the space to Linux.

Please let me know if i can do this from the Linx itself.

paulsm4 07-18-2009 12:27 PM

Hi -

If you wanted to preserve Windows, I'd highly recommend doing it from Windows Disk Manager.

Ideally, maybe you can just run the "install" CD, and reformat the entire disk. If you can afford to start from scratch, that's definitely the easiest/fastest way.

However, if you merely want to reclaim space, you can use Linux "gpartd":

http://www.dedoimedo.com/computers/gparted.html

shaggy9 07-20-2009 09:44 AM

Thank you for the advice. I do not want to preserve Windows. I think i will try the GParted thing first and if i am not able to do that i will go ahead and start from scratch and reinstall Linux again.


All times are GMT -5. The time now is 02:18 PM.