There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming hard drive hardware hdmi internet laptop malware memory monitor motherboard music network obp operating system printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Mistake in partition

Reply  
Thread Tools
namenotfound's Avatar
Computer Specs
Senior Member with 3,003 posts.
 
Join Date: Apr 2005
Location: New York
Experience: no man can be my equal
27-Nov-2007, 12:34 AM #1
Mistake in partition
I made a mistake when trying to partition my hard drive, and now I only have 4GBs of hard drive space instead of what I'm supposed to have (over 60GB)

How can I reverse the partition?

Using the Ubuntu 7.10 distribution of Linux
Elvandil's Avatar
Computer Specs
Moderator with 48,924 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
27-Nov-2007, 01:41 AM #2
Enlarge the partition using gparted from Ubuntu's bootable CD.
namenotfound's Avatar
Computer Specs
Senior Member with 3,003 posts.
 
Join Date: Apr 2005
Location: New York
Experience: no man can be my equal
27-Nov-2007, 05:30 PM #3
Quote:
Originally Posted by Elvandil
Enlarge the partition using gparted from Ubuntu's bootable CD.
How?

And what I mean is, it's saying I only have 4GB left out of my total hard drive space which is 80GB (it shows a max of 80 with only 4 being free).

But it used to show a max a 80 with 70 free.

So it seems that somehow I filled up most of the hard drive with nothing.
__________________
404: Name Not Found
Don't PM me questions, that's what posts are for
My Favorite Editors: Windows: Crimson Editor | Mac: Fraise | Linux: gPHPEdit
Elvandil's Avatar
Computer Specs
Moderator with 48,924 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
27-Nov-2007, 05:39 PM #4
That is different. But take a look at the drive with gparted, anyway, and you may get an idea about what has happened.

Has the dricve been used before? If not, you may want to check the jumpers to be sure that a size-limiting jumper wasn't misplaced.
RobLinux's Avatar
Computer Specs
Member with 417 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
27-Nov-2007, 11:22 PM #5
This is an interesting one, can you run "sudo fdisk -l" in a terminal/console window. Copy the text of the partitions here if it's not obvious to you whats wrong.

You may still have the space available, it's just in several partitons, rather than 1 for swap, and a huge parition containing most of disk. In that case you may find it simpler to make filesystems in those empty partitions, rather than grow what you have already.
namenotfound's Avatar
Computer Specs
Senior Member with 3,003 posts.
 
Join Date: Apr 2005
Location: New York
Experience: no man can be my equal
28-Nov-2007, 09:54 PM #6
Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd2e1d2e1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7876    63263938+  83  Linux
/dev/sda2            9554        9729     1413720    5  Extended
/dev/sda5            9554        9729     1413688+  82  Linux swap / Solaris
Elvandil's Avatar
Computer Specs
Moderator with 48,924 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
28-Nov-2007, 10:48 PM #7
Well, the drive isn't full. I'd start over, but since your system partition looks OK, I'm sure that someone will tell you how to re-create your swap/extended partition wihout having to reinstall the OS. Your partition table must look very unusual . Probably just using gparted and deleting those partitions and recreating them would do it.
__________________
Microsoft MVP
異驚の界世 ˇpןɹoʍ ǝɥʇ ɟo sɹǝpuoʍ ǝɥʇ ɟo ǝuo sı ǝpoɔıun ʞuıɥʇ ı
RobLinux's Avatar
Computer Specs
Member with 417 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
29-Nov-2007, 12:03 AM #8
That looks like you have from 1-7876 as /, and 9554-9729 as swap. So there's a gap.
There should be lots of space in /, you should just have everything in 1 pot.

So most likely you have created a very big file by accident somewhere if it is full. To check :

$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb5 489900 173308 316592 36% /
udev 2075820 168 2075652 1% /dev

You should see something like above a lot of free space. If you don't, find the huge file!

find . -size +100M -ls { prints out files > 100 MB in size }

If you see nothing, do same but replace '.' above to '/'.


But I think what you mean is that you wanted to install '/' into 7877-9553
and to have 1-7876 left unused. Having all Linux on the "wrong end" of the disk.

The problem with your scheme is it's best to have the later parts of disk in an extended partition, with logical partitons.

It's easy to delete the partitions, if you can make sure they're unused. But whilst I could fix this, and move '/' on the disk with just 1 reboot (freeing 1st part of disk), explaining to you how to do this safely is tough.

So if you just want make '/' smaller, you can boot the Live CD, delete the swap & extended partition, and then try the resize option. Then create a swap partiton again. If you want to move it to end of disk start over. But this time, delete all the disk partitions first.

To guide the installer, chose expert mode and for simplicity sake use some dummy place holders, something like :

sda1 Linux ext2 /boot { 80 MB, mark it as the boot partition }
sda2 { Reserved for Windows if you might want to boot it there later }
sda3 Extended - whole rest of disk
sda5 { Place Holder taking you to 70GB used}
sda6 / { 8GB, 8600 - 9599 }
sda7 swap { 2GB. 9600 - 9729 }

Don't bother formatting the unused partitions. The /boot partition is physical to fit in with PC standards.

Last edited by RobLinux; 29-Nov-2007 at 12:21 AM..
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:13 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.