From: unruh on
On 2010-02-27, Ant <ant(a)zimage.comANT> wrote:
> On 2/26/2010 11:17 AM PT, unruh typed:
>
>> You erase or move out everything that is currently in /others. It is now
>> an empty partition.
>
> I don't need to worry about /others:
> $ ls -all /others
> total 3
> drwxr-xr-x 3 root root 1024 2008-09-15 13:23 .
> drwxr-xr-x 25 root root 1024 2010-01-22 10:51 ..
> drwx------ 2 root root 1024 2008-12-28 20:56 lost+found
>
>
>> Now you copy
>> rsync -avx / /others
>
> FYI:
> sent 145432844 bytes received 109337 bytes 3064045.92 bytes/sec
> total size is 145026949 speedup is 1.00
>
> I thought we're only copying /boot stuff and not everything in root (/).
> /sbin, /storage, /tmp, /srv, /sys. /root, /etc, /usr, /var, etc. were
> copied as well.

You have /boot on the brain. It is irrelevant. Most of the stuff in the
kenrel is in /lib/modules, not in /boot. You are replacing your
/ partition to give it more room.


>
>
>> Now, go to /others/etc/fstab and edit it and change the line that looks
>> something like
>> /dev/hda1 / ext3<whatever> 1 1
>> to
>> /dev/hda11 / ext3<whatever> 1 1
>> and put a # at the start of the line which contains
>> /dev/hda11 /others ....


You can do this without grub.

>>
>> Now you edit the grub.conf file, or whatever debian uses to set up the
>> grub, and put in a new entry for booting from /dev/hda11 instead of
>> from /dev/hda1
>>
>> (I hope I remember correctly that at present /others is on /dev/hda11)
>>
>> Now you test your system to see if it boots from the new entry in the
>> menu list.
>>
>> If it works, you can remove the old entry, edit the new grub and
>> reinstall it (I do not know grub as I use lilo, so you will have to get
>> someone else to correct my errors)
>
> OK, I am going to wait and see if others can pitch in on Grub2. Why
> still using old Lilo? :D

Because it works. And is easy to set up.

From: unruh on
On 2010-02-27, Ant <ant(a)zimage.comANT> wrote:
> On 2/26/2010 2:44 AM PT, GangGreene typed:
>
>> Of course you don't.
>> Just _LOOK_ at your data that you posted.
>>
>> Look at your /etc/fstab.
>>
>> /dev/hda1 is the partition that your root fiesystem is mount on...not your
>> boot partition.
>>
>> Your boot is just a directory in the root filesystem mounted on
>> the /dev/hda1 partition.
>>
>> If your boot was on a partition it you would have a small partition of 128MB
>> or less ( I use 52MB ), mounted at /boot in /etc/fstab, although the boot
>> partition really doesn't need to be mounted.
>
> Oh, disk partitions/setups are confusing. :) FYI:
> $ cat /etc/fstab

No Change /others/etc/fstab, not /etc/fstab.


> # /etc/fstab: static file system information.
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> /dev/hda1 / ext3 defaults,errors=remount-ro 0 1
change to
#/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
> /dev/hda5 /home ext3 defaults 0 2
> /dev/hda6 /usr ext3 defaults 0 2
> /dev/hda7 /var ext3 defaults 0 2
> /dev/hda8 /tmp ext3 defaults 0 2
> /dev/hda9 /usr/local ext3 defaults 0 2
> /dev/hda10 none swap sw 0 0
> /dev/hda11 /extra ext3 defaults 0 2
> /dev/hda12 /others ext3 defaults 0 2

change to
/dev/hda12 / ext3 defaults 0 1


> /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
> /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
> /dev/sda1 /mnt/usb-flash vfat noauto,users,umask=000 0 0
>
> none /proc/bus/usb usbfs devgid=46,devmode=664 0 0
From: Pascal Hambourg on
Ant a �crit :
>
> Still have a free disk space issue for it though. :(

In my other message I wrote you could free at least ~24 MB on /. Maybe
that's enough to install the new kernel image. Also libc6-i686 is only
recommended, you could avoid installing it with --without-recommends and
save ~2 MB if needed. Isn't there some unnecessary stuff stored in /root
too ?
From: wimpunk on
On 2010-02-26, Ant <ant(a)zimage.comANT> wrote:
> 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:
>>>
>
>
>> 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").

I ran into the same problem. I fixed it by moving the current version
to a bootable USB stick and moving them back after the upgrade. It is
not very nice but it worked for me.

From: Bill Marcum on
On 2010-02-26, Ant <ant(a)zimage.comANT> wrote:
> 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

"ls" doesn't say whether /boot is a separate partition. "df" or
"cat /etc/fstab" would.