LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-06-2009, 09:24 PM   #1
markg
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
How to make room in partition?


Hi all,

I want to know how to move data from one partition to another, delete the source partition, and ensure that all the key directories mount correctly on reboot.

I am a Newbie running a dual boot laptop running Debian Etch (currently). I want to upgrade to Lenny, and have carried out the necessary changes to my apt sources list. However when I do a apt-get dist-upgrade I get the following error (at the end of a list of successful package updates):

E: You don't have enough free space in /var/cache/apt/archives/.

After checking available space on that partition I can see that there is 908.23 Mb free.

How do I go about moving the data in that partition to another, delete the old partition, grow the new one, and then re-map the etc/fstab so that they all mount on reboot?

Regards, Mark
 
Old 04-06-2009, 09:44 PM   #2
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Wow, that's some heavy stuff-
Can't you just remove the files you want with a USB, boot into
Ubuntu live CD or another, move and resize partitions using Gparted
and then install Lenny and then put your files back in?

tell us the output of "df -h" in a terminal on the partition you want to upgrade(the one your gonna erase).

Code:
bz@bz-desktop:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              17G   13G  2.5G  84% /
varrun                443M  112K  442M   1% /var/run
varlock               443M     0  443M   0% /var/lock
udev                  443M   92K  442M   1% /dev
devshm                443M   12K  443M   1% /dev/shm
lrm                   443M   39M  404M   9% /lib/modules/2.6.24-23-generic/volatile
gvfs-fuse-daemon       17G   13G  2.5G  84% /home/bz/.gvfs
/dev/sdf1             1.9G   57M  1.9G   3% /media/disk
Code:
bz@bz-desktop:~$ sudo fdisk -l
[sudo] password for bz: 

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800200

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3533    28378791   83  Linux
/dev/sda2   *        3534        5670    17165452+  83  Linux
/dev/sda3            5671       10979    42644542+  83  Linux
/dev/sda4           10980       19457    68099535    5  Extended
/dev/sda5           14931       19457    36363127+   b  W95 FAT32
/dev/sda6           10980       11690     5711044+  83  Linux
/dev/sda7           11691       12921     9887976   83  Linux
/dev/sda8           12922       14601    13494568+  83  Linux
/dev/sda9           14602       14930     2642661   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdf: 1999 MB, 1999568384 bytes
255 heads, 63 sectors/track, 243 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007934f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1   *           1         243     1951866    6  FAT16
bz@bz-desktop:~$

And then tell us the output of "fdisk -l" try as root.above

Last edited by linus72; 04-06-2009 at 09:47 PM.
 
Old 04-06-2009, 10:33 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Have you tried running "apt-get clean" to clear out the archives directory of the Etch files? That should give you enough space.
 
Old 04-06-2009, 10:38 PM   #4
markg
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by Quakeboy02 View Post
Have you tried running "apt-get clean" to clear out the archives directory of the Etch files? That should give you enough space.
Thanks very mmuch QuakeBoy02! - that worked fine. no need to do the heavy rework on my partitions.
 
  


Reply

Tags
fstab, move, partitioning, resize


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
How to make room for Linux with a single NTFS partition frznchckn Linux - Newbie 8 03-02-2007 12:51 PM
LXer: How-To Resize Your Windows Partition To Make Room For Linux LXer Syndicated Linux News 0 12-15-2005 10:01 PM
Resizing primary partition to make room for a linux distro Bakoulou Linux - Newbie 5 12-13-2005 08:02 AM
no more room in partition! jnev Linux - General 7 09-21-2005 09:58 PM
Repartitioning Debian partition to make room for another distro? microsoft/linux Debian 9 04-18-2005 02:09 PM


All times are GMT -5. The time now is 03:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration