There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer blue screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel firefox firefox 3 game hard drive hardware internet internet explorer itunes laptop linux malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems ram router slow sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Mistake in partition


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,200 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
26-Nov-2007, 11:34 PM #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
Moderator with 29,581 posts.
 
Join Date: Aug 2003
Location: Vermont
27-Nov-2007, 12:41 AM #2
Enlarge the partition using gparted from Ubuntu's bootable CD.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,200 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
27-Nov-2007, 04: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 |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
Elvandil's Avatar
Moderator with 29,581 posts.
 
Join Date: Aug 2003
Location: Vermont
27-Nov-2007, 04: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
Senior Member with 383 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
27-Nov-2007, 10: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
Distinguished Member with 2,200 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
28-Nov-2007, 08: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
Moderator with 29,581 posts.
 
Join Date: Aug 2003
Location: Vermont
28-Nov-2007, 09: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
Windows Shell/User
RobLinux's Avatar
Computer Specs
Senior Member with 383 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
28-Nov-2007, 11:03 PM #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 : 28-Nov-2007 11:21 PM.
Closed Thread

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.


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 help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


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 03:56 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.