LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make room in partition? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-room-in-partition-717300/)

markg 04-06-2009 08:24 PM

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

linus72 04-06-2009 08:44 PM

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

Quakeboy02 04-06-2009 09:33 PM

Have you tried running "apt-get clean" to clear out the archives directory of the Etch files? That should give you enough space.

markg 04-06-2009 09:38 PM

Quote:

Originally Posted by Quakeboy02 (Post 3500679)
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.


All times are GMT -5. The time now is 11:16 AM.