From: Ant on
On 2/25/2010 4:16 PM PT, Don Piven typed:

>> 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
>
> Um, what exactly are you trying to do here? According to this, you don't
> have a separate /boot partition, and you have ~90 MB available on your
> root partition, where your system files are. Are you just trying to
> install an updated kernel package (which should fit with plenty of space
> to spare), or are you looking to upgrade to a newer Debian version (not
> so much)?

I am trying to install/add another Kernel package, but it tells me that
I don't have enough disk space during it. I watched /dev/hda1 go to zero
during the installation. :(


> The only other thing I could think if is that you've managed to run out
> of inodes on your root partition, but that's *very* hard to do.
> (df -i is your friend here.)

$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hda1 72288 13236 59052 19% /
tmpfs 220845 5 220840 1% /lib/init/rw
udev 220845 781 220064 1% /dev
tmpfs 220845 1 220844 1% /dev/shm
/dev/hda5 1831424 17749 1813675 1% /home
/dev/hda6 610432 153850 456582 26% /usr
/dev/hda7 122624 36827 85797 31% /var
/dev/hda8 122624 41 122583 1% /tmp
/dev/hda9 610432 2648 607784 1% /usr/local
/dev/hda11 6017536 31 6017505 1% /extra
/dev/hda12 490560 11 490549 1% /others


> If you're just looking to install Lenny on top of whatever you have now,
> you should be able to do that via APT (apt-get dist-upgrade), unless
> you're running Woody or something. As a last resort, you could move the
> stuff in your /others tree elsewhere on your system, do a cold system
> installation on /dev/hda12, and hack your GRUB or LILO config to let you
> boot from either partition.

No, just upgrading the Kernel (2.6.32). I am still using 2.6.30 (uname
-a showed "Linux ANTian 2.6.30-2-686 #1 SMP Fri Dec 4 00:53:20 UTC 2009
i686 GNU/Linux").
--
"Doubts are the ants in the pants of faith, keeping it awake and
moving." --Fredrick Beuchner
/\___/\
/ /\ /\ \ 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 currently not listening to any songs on his home computer.
From: Ant on
On 2/25/2010 3:55 PM PT, unruh typed:

>>> 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?
>
> Sorry, you are very unclear. Do you have a completely separate partition
> /boot and for /? Or is /boot just a directory in /?

$ cd /
$ ls -all
total 65
drwxr-xr-x 25 root root 1024 2010-01-22 10:51 .
drwxr-xr-x 25 root root 1024 2010-01-22 10:51 ..
drwxr-xr-x 2 root root 4096 2010-02-22 06:56 bin
drwxr-xr-x 3 root root 1024 2010-02-21 08:27 boot
lrwxrwxrwx 1 root root 11 2007-08-27 22:58 cdrom -> media/cdrom
-rw-r--r-- 1 root root 4 2008-05-08 04:35 debian-binary
drwxr-xr-x 15 root root 3920 2010-02-25 14:44 dev
drwxr-xr-x 172 root root 10240 2010-02-25 17:14 etc
drwxr-xr-x 6 ant ant 4096 2008-10-14 20:53 extra
drwxr-xr-x 7 root root 4096 2008-01-27 11:12 home
drwxr-xr-x 2 root root 1024 2007-08-27 22:59 initrd
lrwxrwxrwx 1 root root 28 2009-12-05 18:24 initrd.img ->
boot/initrd.img-2.6.30-2-686
drwxr-xr-x 13 root root 9216 2010-02-24 06:31 lib
drwxr-xr-x 4 root root 1024 2010-02-24 06:31 media
drwxr-xr-x 3 root root 1024 2009-06-12 13:31 mnt
drwxr-xr-x 3 root root 1024 2008-05-25 03:52 opt
drwxr-xr-x 3 root root 1024 2008-09-15 13:23 others
dr-xr-xr-x 153 root root 0 2010-02-23 00:11 proc
drwxr-xr-x 19 root root 1024 2010-02-25 11:37 root
drwxr-xr-x 2 root root 5120 2010-02-25 11:36 sbin
drwxr-xr-x 2 root root 1024 2008-09-16 00:38 selinux
drwxr-xr-x 3 root root 1024 2009-03-10 07:04 srv
drwxr-xr-x 8 root root 4096 2009-12-20 05:24 storage
drwxr-xr-x 2 root root 1024 2007-08-27 22:58 stuff
drwxr-xr-x 12 root root 0 2010-02-23 00:11 sys
drwxrwxrwt 10 root root 4096 2010-02-25 15:34 tmp
drwxr-xr-x 13 root root 4096 2008-01-27 11:11 usr
drwxr-xr-x 16 root root 4096 2010-01-26 08:25 var
lrwxrwxrwx 1 root root 25 2009-12-05 18:24 vmlinuz ->
boot/vmlinuz-2.6.30-2-686
$ cd /boot
$ ls -all
total 22028
drwxr-xr-x 3 root root 1024 2010-02-21 08:27 .
drwxr-xr-x 25 root root 1024 2010-01-22 10:51 ..
-rw-r--r-- 1 root root 103541 2009-12-03 21:08 config-2.6.30-2-686
drwxr-xr-x 3 root root 6144 2010-01-26 07:43 grub
-rw-r--r-- 1 root root 9833276 2010-02-21 08:27 initrd.img-2.6.30-2-686
-rw-r--r-- 1 root root 9363480 2010-01-22 08:57 initrd.img-2.6.30-2-686.bak
-rw-r--r-- 1 root root 1125733 2009-12-03 21:08 System.map-2.6.30-2-686
-rw-r--r-- 1 root root 2024880 2009-12-03 21:07 vmlinuz-2.6.30-2-686

Does that help? Maybe I was not saying it correctly.
--
"The life of an ant and that of my child should be granted equal
consideration." --Michael W. Fox, Vice President, The Human Society of
the United States, The Inhumane Society, New York, 1990.
/\___/\
/ /\ /\ \ 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 currently not listening to any songs on his home computer.
From: Ant on
On 2/25/2010 4:08 PM PT, unruh typed:

>>> 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:
>
> No. You do not have a /boot partition. You have a / partition containing
> a directory called /boot.

Oh. My bad then. :)


> Erase some of those old kernels that you have
> not used since 2006 and make yourself some room.

I did until things got really tight and am stuck. Can't even do a
package replacement even with one Kernel version:

$ cd /boot
$ ls -all
total 22028
drwxr-xr-x 3 root root 1024 2010-02-21 08:27 .
drwxr-xr-x 25 root root 1024 2010-01-22 10:51 ..
-rw-r--r-- 1 root root 103541 2009-12-03 21:08 config-2.6.30-2-686
drwxr-xr-x 3 root root 6144 2010-01-26 07:43 grub
-rw-r--r-- 1 root root 9833276 2010-02-21 08:27 initrd.img-2.6.30-2-686
-rw-r--r-- 1 root root 9363480 2010-01-22 08:57 initrd.img-2.6.30-2-686.bak
-rw-r--r-- 1 root root 1125733 2009-12-03 21:08 System.map-2.6.30-2-686
-rw-r--r-- 1 root root 2024880 2009-12-03 21:07 vmlinuz-2.6.30-2-686


> And next time, don;t make 10 partitions. That is silly. You note that
> you have miles of room in /tmp,

I know. Back when I was a Linux/Debian newbie, online guides recommend
doing multiple partitions. It's too late now unless I do an install from
scratch and reconfigure which I don't want to do at this time. It's an
old box, so I will just wait until my hardwares go bust.


> If that does not by you enough room ( it should) transfer your / partion
> to your current /others partition ( /dev/hda12)
>
> At present, I would move all the little bit of stuff in /other away
> somewhere else, erase /others, copy the / partition to the /other, and
> set up lilo/grub to point to /dev/hda12 as your boot partition.
>
> At present add menu entries to lilo/grub for /dev/hda12 keeping th
> eones you already have, reboot, and choose the new ones, and make sure
> everything works. If it does, remove the stuff in your current /
> partition.

So I can have Grub2 (not Lilo and legacy v1 since Debian gave me v2 a
few months ago) boot to another partition (/dev/hda12)? I didn't know
that. I thought MBR stuff needed to be in the first area or something.
Note that this is an old machine with old IDE drives (e.g., 80 GB).
--
"Where there is sugar, there are bound to be ants." --Malay Proverb
/\___/\
/ /\ /\ \ 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 currently not listening to any songs on his home computer.
From: unruh on
On 2010-02-26, Ant <ant(a)zimage.comANT> wrote:
> On 2/25/2010 4:08 PM PT, unruh typed:
>
>>>> 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:
>>
>> No. You do not have a /boot partition. You have a / partition containing
>> a directory called /boot.
>
> Oh. My bad then. :)
>
>
>> Erase some of those old kernels that you have
>> not used since 2006 and make yourself some room.
>
> I did until things got really tight and am stuck. Can't even do a
> package replacement even with one Kernel version:
>
> $ cd /boot
> $ ls -all
> total 22028
> drwxr-xr-x 3 root root 1024 2010-02-21 08:27 .
> drwxr-xr-x 25 root root 1024 2010-01-22 10:51 ..
> -rw-r--r-- 1 root root 103541 2009-12-03 21:08 config-2.6.30-2-686
> drwxr-xr-x 3 root root 6144 2010-01-26 07:43 grub
> -rw-r--r-- 1 root root 9833276 2010-02-21 08:27 initrd.img-2.6.30-2-686
> -rw-r--r-- 1 root root 9363480 2010-01-22 08:57 initrd.img-2.6.30-2-686.bak
> -rw-r--r-- 1 root root 1125733 2009-12-03 21:08 System.map-2.6.30-2-686
> -rw-r--r-- 1 root root 2024880 2009-12-03 21:07 vmlinuz-2.6.30-2-686
>
>
>> And next time, don;t make 10 partitions. That is silly. You note that
>> you have miles of room in /tmp,
>
> I know. Back when I was a Linux/Debian newbie, online guides recommend
> doing multiple partitions. It's too late now unless I do an install from
> scratch and reconfigure which I don't want to do at this time. It's an
> old box, so I will just wait until my hardwares go bust.
>
>
>> If that does not by you enough room ( it should) transfer your / partion
>> to your current /others partition ( /dev/hda12)
>>
>> At present, I would move all the little bit of stuff in /other away
>> somewhere else, erase /others, copy the / partition to the /other, and
>> set up lilo/grub to point to /dev/hda12 as your boot partition.
>>
>> At present add menu entries to lilo/grub for /dev/hda12 keeping th
>> eones you already have, reboot, and choose the new ones, and make sure
>> everything works. If it does, remove the stuff in your current /
>> partition.
>
> So I can have Grub2 (not Lilo and legacy v1 since Debian gave me v2 a
> few months ago) boot to another partition (/dev/hda12)? I didn't know
> that. I thought MBR stuff needed to be in the first area or something.
> Note that this is an old machine with old IDE drives (e.g., 80 GB).

Linux can boot to any partition, and any drive AFAIK.
MBR is something entirely different. The MBR is the very first sector on
the disk, which the bios can load into memory and run. It contains the
very first part of the bootloader. The program in the MBR then uses the
bios to download a set of sectors from the disk and jump to their start.

The MBR is NOT part of any partition, It is a sector at the beginning of
the disk that no operating system makes a part of its own filesystem.


From: Ant on
On 2/25/2010 10:24 PM PT, Thomas E. Maleshafske typed:

>> $ cd /boot
>> $ ls -all
>> total 22028
>> drwxr-xr-x 3 root root 1024 2010-02-21 08:27 .
>> drwxr-xr-x 25 root root 1024 2010-01-22 10:51 ..
>> -rw-r--r-- 1 root root 103541 2009-12-03 21:08 config-2.6.30-2-686
>> drwxr-xr-x 3 root root 6144 2010-01-26 07:43 grub
>> -rw-r--r-- 1 root root 9833276 2010-02-21 08:27
> initrd.img-2.6.30-2-686
>> -rw-r--r-- 1 root root 9363480 2010-01-22 08:57
>> initrd.img-2.6.30-2-686.bak
>> -rw-r--r-- 1 root root 1125733 2009-12-03 21:08
> System.map-2.6.30-2-686
>> -rw-r--r-- 1 root root 2024880 2009-12-03 21:07
> vmlinuz-2.6.30-2-686
>
> What is the content of your boot directory, you may have old images
> that can be deleted.

Isn't /boot my boot directory? If not, then where would that be?
--
"... Ooh, we haven't done that in a long time. I love picnics. I'll
bring my ant jar." --The Berenstain Bears (unknown episode)
/\___/\
/ /\ /\ \ 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 currently not listening to any songs on his home computer.