LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2009, 04:29 PM   #1
jmaddy10
LQ Newbie
 
Registered: Nov 2009
Location: Virginia
Distribution: Ubuntu 8.04
Posts: 10

Rep: Reputation: 0
Upgrade or clean? That is the question...


Hello all!

I am new to the linux scene. I converted from my microsoft ways about two weeks ago and have been REALLY happy with the way that my Ubuntu distribution is working (even though I underestimated how much space I needed to partition.)

So, here's my problem(s). I partitioned only 2.3 Gigs for the linux side of things (I wanted to be conservative and not mess with Windows functionality.) I can't download anything to my computer! The memory says it's full. See below,
_________________________________________________________
fernando@fernando-laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 2.3G 2.2G 0 100% /
tmpfs 1003M 0 1003M 0% /lib/init/rw
varrun 1003M 92K 1003M 1% /var/run
varlock 1003M 0 1003M 0% /var/lock
udev 1003M 156K 1003M 1% /dev
tmpfs 1003M 512K 1002M 1% /dev/shm
lrm 1003M 2.4M 1000M 1% /lib/modules/2.6.28-11-!generic/volatile
overflow 1.0M 16K 1008K 2% /tmp
__________________________________________________________

When I try to clean it out with the "sudo apt-get autoclean" command in the terminal, it doesn't clean any space.

This creates two problems:

1) When I try logging into the Windows Vista partition, I'm sent to a screen that prompts me to: (a) clean the disk drive of recent additions, (b) return the CPU to its manufactures condition, or (c) different variations of a and b.

Should I worry about this? I can't download the software to run the dual-environments without more space.

2) I can't download the files necessary to upgrade to 9.10 (and consequentely partition 8 Gs).

I want to thank you in advance for you time!
 
Old 11-17-2009, 04:35 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
from man apt-get

Quote:
clean
clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and
/var/cache/apt/archives/partial/. When APT is used as a dselect(8) method, clean is run automatically. Those who do not use dselect will likely want to run
apt-get clean from time to time to free up disk space.

autoclean
Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be
downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option
APT::Clean-Installed will prevent installed packages from being erased if it is set to off.
Try
Code:
apt-get clean
 
Old 11-17-2009, 05:24 PM   #3
jmaddy10
LQ Newbie
 
Registered: Nov 2009
Location: Virginia
Distribution: Ubuntu 8.04
Posts: 10

Original Poster
Rep: Reputation: 0
____________________________________________________
fernando@fernando-laptop:~$ sudo apt-get clean
[sudo] password for fernando:
Sorry, try again.
[sudo] password for fernando:
fernando@fernando-laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 2.3G 2.2G 0 100% /
tmpfs 1003M 0 1003M 0% /lib/init/rw
varrun 1003M 108K 1003M 1% /var/run
varlock 1003M 0 1003M 0% /var/lock
udev 1003M 156K 1003M 1% /dev
tmpfs 1003M 400K 1002M 1% /dev/shm
lrm 1003M 2.4M 1000M 1% /lib/modules/2.6.28-11-generic/volatile
overflow 1.0M 240K 784K 24% /tmp
__________________________________________________
Okay, I did the apt-get clean command and then ran another diagnostic. Did I miss something?
 
Old 11-17-2009, 05:27 PM   #4
jmaddy10
LQ Newbie
 
Registered: Nov 2009
Location: Virginia
Distribution: Ubuntu 8.04
Posts: 10

Original Poster
Rep: Reputation: 0
I just ran the diagnostic again and I realized that the "overflow" category fluctuates from minute to minute. Is this normal?

root@fernando-laptop:/var/cache/apt/archives/partial# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 2.3G 2.2G 0 100% /
tmpfs 1003M 0 1003M 0% /lib/init/rw
varrun 1003M 108K 1003M 1% /var/run
varlock 1003M 0 1003M 0% /var/lock
udev 1003M 156K 1003M 1% /dev
tmpfs 1003M 400K 1002M 1% /dev/shm
lrm 1003M 2.4M 1000M 1% /lib/modules/2.6.28-11-generic/volatile
overflow 1.0M 304K 720K 30% /tmp
 
Old 11-17-2009, 05:39 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by jmaddy10 View Post
I partitioned only 2.3 Gigs for the linux side of things (I wanted to be conservative and not mess with Windows functionality.)
I don't see where you might have told us how big your whole drive is, how full the Windows partition is, nor whether your current goal is to try to make do with just 2.3GB for Linux or to fix that.

I don't know nearly enough about Ubuntu to say anything about trying to work with just 2.3GB of disk.

If you want to fix that and have enough free space in the Windows partition, it shouldn't be too hard.

I assume you have a Ubuntu liveCD that can be used for the key steps: expanding and maybe moving the Linux partition and if you need to move it reconnecting GRUB in the MBR.

You probably shrank the Vista partition once already to install Linux, so you know how (from within Vista) to shrink it further. Then use the liveCD to expand Linux.

If that is what you want to do, ask any specific questions you have on whatever parts of the process you don't fully understand.
 
Old 11-17-2009, 09:39 PM   #6
jmaddy10
LQ Newbie
 
Registered: Nov 2009
Location: Virginia
Distribution: Ubuntu 8.04
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnsfine View Post
I don't see where you might have told us how big your whole drive is, how full the Windows partition is, nor whether your current goal is to try to make do with just 2.3GB for Linux or to fix that.
Whole drive = 155 Gigs (give or take)
Window's Partition = 149 Gigs (give or take)


Okay, let me clear up my intentions (I'm being a little scatter-brained). I want to clear up enough space so I can download a partition editor (GNU Parted) and resize my partitions.

Quote:
Originally Posted by johnsfine View Post
I assume you have a Ubuntu liveCD that can be used for the key steps: expanding and maybe moving the Linux partition and if you need to move it reconnecting GRUB in the MBR.

You probably shrank the Vista partition once already to install Linux, so you know how (from within Vista) to shrink it further. Then use the liveCD to expand Linux.

Well, I actually installed Ubuntu from the program I installed on my USB drive. The process of installing the Ubuntu was very user friendly so I'm not sure how to partition the harddrive without the GUI.

Quote:
Originally Posted by johnsfine View Post
You probably shrank the Vista partition once already to install Linux, so you know how (from within Vista) to shrink it further. Then use the liveCD to expand Linux.
I can't follow these steps, but I see where you are going with this.

I need to clean out enough space so that I can download the partition editor (among other things) to allocate more space to Ubuntu.
 
Old 11-18-2009, 03:12 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
fdisk -l

(lowercase L) as root would be more informative about your actual partitions
 
Old 11-18-2009, 03:56 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Okay, let me clear up my intentions (I'm being a little scatter-brained). I want to clear up enough space so I can download a partition editor (GNU Parted) and resize my partitions.
Why don't you use a live cd ?
Puppy has gparted.

Free up space on the windows partition, defrag the partition, and shrink it using the live cd
Please don't forget to backup your data before proceeding.
 
Old 11-18-2009, 08:38 AM   #9
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by jmaddy10 View Post
I actually installed Ubuntu from the program I installed on my USB drive. The process of installing the Ubuntu was very user friendly so I'm not sure how to partition the harddrive without the GUI.
I'm not sure what that usb program was, but I think it was a usb version of a Ubuntu liveCD and I think it includes a GUI partition editor, so I think you can reuse that usb to resize the Linux partition and reconnect grub to the MSB.

Quote:
I need to clean out enough space so that I can download the partition editor (among other things) to allocate more space to Ubuntu.
You need to use a partition editor from outside of the current installed copy of Ubuntu. Vista can resize the running copy of itself. Linux can't.

You probably already have a partition editor in the installed copy of Ubuntu and you can't use it for this.

The easiest way is to use a partition editor while booted from usb or CD. Probably the usb installer for Ubuntu that you already have can do the job. Otherwise, it is probably easier (from where you are now) to download the right usb or CD image from inside Windows (and copy or burn to the right media).
 
Old 11-19-2009, 11:01 AM   #10
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,191

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
Download and create a CD of Insert Linux. This is a live CD distro especially created for rescue and repair. It will run from CD or RAM disk and includes Gparted. It's also got a text editor, browser (so you can look for help, if necessary), rootkit hunter, and the basic utilities.
 
Old 11-19-2009, 02:09 PM   #11
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Just in case...

If you run into trouble booting Vista, there are these to help you out of difficulty.

http://neosmart.net/dl.php?id=1
http://neosmart.net/blog/2008/window...disc-download/


It is advisable to use the Vista partitioner to change the Vista partitions. Many partitioners will shrink Vista, but not all will leave the resulting partition size and the size recorded in the Vista boot loader in correspondence. The difference causes Vista not to boot.

Remember to defragment Vista before moving the partition boundary. This tool will move data that the Vista defragmenter will not budge.

http://www.auslogics.com/disk-defrag/index.php

Here is a mini-guide that may be useful.

It is in no way to be construed as a promotion for, nor encouragement of, Ubuntu.

http://apcmag.com/how_to_dualboot_vi...lled_first.htm

Last edited by thorkelljarl; 11-19-2009 at 02:47 PM.
 
  


Reply

Tags
dual, environment, memory, partition, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clean Upgrade... mkisow Debian 4 07-16-2009 02:32 PM
Linux upgrade VS clean install max.gonzalez Linux - Newbie 2 04-02-2008 09:37 PM
upgrade from SUSE 10.2 to 10.3 RATHER THAN CLEAN INSTALL. Is it possible? mrmuckle SUSE / openSUSE 2 11-05-2007 04:16 PM
Upgrade vs. clean install of Mandrake 10? aweir14150 Mandriva 11 03-19-2004 05:30 PM
upgrade RH8 to RH9 - upgrade or clean install PAB Linux - General 0 03-13-2004 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 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