From: Ant on
Hello.

My very old Debian/Linux workstation/desktop box (first installed it on
9/24/2004 and kept it updated daily and only had one reinstall
(accidently ran fsck without unmounting a few years ago) -- still
amazing that it runs today) is unable to install the latest Kernel
(v2.6.32) Debian package due to free limited disk space in / (actually
/boot) partition:

$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 280003 173227 92320 66% /
tmpfs 1297724 0 1297724 0% /lib/init/rw
udev 10240 264 9976 3% /dev
tmpfs 1297724 0 1297724 0% /dev/shm
/dev/hda5 14421344 2759732 10929052 21% /home
/dev/hda6 4807056 3620424 942448 80% /usr
/dev/hda7 964500 721228 194276 79% /var
/dev/hda8 964500 17676 897828 2% /tmp
/dev/hda9 4807056 206076 4356796 5% /usr/local
/dev/hda11 47383396 19522168 25454292 44% /extra
/dev/hda12 918322 16452 852874 2% /others

(parted) p
Model: ST380011A (ide)
Disk /dev/hda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 296MB 296MB primary ext3
2 296MB 80.0GB 79.7GB extended
5 296MB 15.3GB 15.0GB logical ext3
6 15.3GB 20.3GB 5001MB logical ext3
7 20.3GB 21.3GB 1003MB logical ext3
8 21.3GB 22.3GB 1003MB logical ext3
9 22.3GB 27.3GB 5001MB logical ext3
12 27.3GB 28.3GB 1003MB logical ext3
10 28.3GB 30.7GB 2418MB logical linux-swap(v1)
11 30.7GB 80.0GB 49.3GB logical ext3

http://img98.imageshack.us/img98/6544/screenshot1qs.png for a screen
capture of GParted.

How can I resize my /'s /boot to get more free disk space without
getting another bigger HDD to copy over or reinstalling from scratch?
Can I use KNOPPIX v6.2.1 to do it or is it not possible? I used to use
PowerQuest's PartitionMagic for DOS and Windows to resize, but I wasn't
sure if this method works in Linux too.

Thank you in advnace. :)
--
"I once heard the survivors of a colony of ants that had been partially
obliterated by a cow's foot seriously debating the intention of the gods
towards their civilization" --Archy the Cockroach from Don Marquis'
"Archy and Mehitabel" book ("Certain Maxims of Archy" poem)
/\___/\
/ /\ /\ \ Phil./Ant @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Nuke ANT from e-mail address: philpi(a)earthlink.netANT
( ) or ANTant(a)zimage.com
Ant is/was listening to a song on his home computer: SYRSA - Syrsa -
Cythas - Eclipse (ID: 313433)
From: Lusotec on
Ant wrote:
> How can I resize my /'s /boot to get more free disk space without
> getting another bigger HDD to copy over or reinstalling from scratch?

The best advice I can give you is to make a *full* backup (you do have
backups right?), and then use LVM to partition your HDD and then restore the
system from the backups.

LVM is far more flexible than the legacy partition system and you can
allocate and extend storage for the various partitions as needed. This way
you avoid your current situation of having free storage but in the wrong
partitions.

Regards.

From: GangGreene on
Ant wrote:

> Hello.
>
> My very old Debian/Linux workstation/desktop box (first installed it on
> 9/24/2004 and kept it updated daily and only had one reinstall
> (accidently ran fsck without unmounting a few years ago) -- still
> amazing that it runs today) is unable to install the latest Kernel
> (v2.6.32) Debian package due to free limited disk space in / (actually
> /boot) partition:
>
> $ df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hda1 280003 173227 92320 66% /
> tmpfs 1297724 0 1297724 0% /lib/init/rw
> udev 10240 264 9976 3% /dev
> tmpfs 1297724 0 1297724 0% /dev/shm
> /dev/hda5 14421344 2759732 10929052 21% /home
> /dev/hda6 4807056 3620424 942448 80% /usr
> /dev/hda7 964500 721228 194276 79% /var
> /dev/hda8 964500 17676 897828 2% /tmp
> /dev/hda9 4807056 206076 4356796 5% /usr/local
> /dev/hda11 47383396 19522168 25454292 44% /extra
> /dev/hda12 918322 16452 852874 2% /others
>
> (parted) p
> Model: ST380011A (ide)
> Disk /dev/hda: 80.0GB
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
>
> Number Start End Size Type File system Flags
> 1 32.3kB 296MB 296MB primary ext3
> 2 296MB 80.0GB 79.7GB extended
> 5 296MB 15.3GB 15.0GB logical ext3
> 6 15.3GB 20.3GB 5001MB logical ext3
> 7 20.3GB 21.3GB 1003MB logical ext3
> 8 21.3GB 22.3GB 1003MB logical ext3
> 9 22.3GB 27.3GB 5001MB logical ext3
> 12 27.3GB 28.3GB 1003MB logical ext3
> 10 28.3GB 30.7GB 2418MB logical linux-swap(v1)
> 11 30.7GB 80.0GB 49.3GB logical ext3
>
> http://img98.imageshack.us/img98/6544/screenshot1qs.png for a screen
> capture of GParted.
>
> How can I resize my /'s /boot to get more free disk space without
> getting another bigger HDD to copy over or reinstalling from scratch?
> Can I use KNOPPIX v6.2.1 to do it or is it not possible? I used to use
> PowerQuest's PartitionMagic for DOS and Windows to resize, but I wasn't
> sure if this method works in Linux too.
>
> Thank you in advnace. :)

Dude....You don't have a boot partition.

From: Keith Keller on
[honoring Followup-To:]

On 2010-02-25, Lusotec <nomail(a)nomail.not> wrote:
>
> The best advice I can give you is to make a *full* backup (you do have
> backups right?), and then use LVM to partition your HDD and then restore the
> system from the backups.
>
> LVM is far more flexible than the legacy partition system and you can
> allocate and extend storage for the various partitions as needed. This way
> you avoid your current situation of having free storage but in the wrong
> partitions.

I think LVM is great, except for / and /boot, which I try to have on
their own partitions. If you get into a real jam, and need to try out
different rescue disks, the ones that don't support LVM will have
trouble with / or /boot on an LVM volume, if those are the filesystems
giving you trouble. (Yes, your rescue media *should* support your
configuration in any case. But if something goes wrong, the simpler your
configuration the better.)

--keith

--
kkeller-usenet(a)wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

From: Thomas E. Maleshafske on
Lusotec wrote:

> Ant wrote:
>> How can I resize my /'s /boot to get more free disk space without
>> getting another bigger HDD to copy over or reinstalling from
scratch?
>
> The best advice I can give you is to make a *full* backup (you do
have
> backups right?), and then use LVM to partition your HDD and then
restore
> the system from the backups.
>
> LVM is far more flexible than the legacy partition system and you
can
> allocate and extend storage for the various partitions as needed.
This way
> you avoid your current situation of having free storage but in the
wrong
> partitions.
>
> Regards.

Just a curiosity how many images do you have sitting in your boot
directory? You may just need to delete a bunch of the old ones?

V/R
Thomas E. Maleshafske

--
V/R
Thomas E. Maleshafske