[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New 64bit Installation. Root partition too small--what to do?



On Thu, Jul 24, 2014 at 12:16:32PM +0300, David Baron wrote:
> Yes, indeed. I previously complained about its partitioning with little 
> capability to revise it! (I did not use LVM because it put everything in one 
> big physical partition which I also did not like.)
> 
> So, want to install a more recent kernel? No room.
> 
> While I was able to bind /opt and /usr/local to folders on my /home partition 
> (which is most all of the disk!), root obviously cannot be so bound. Must be 
> available to boot. (No huge loss with no /opt or local available to start.)
> 
> So now, what can I do, short of moving everything to another disk (this is the 
> one which had unwritable block which necessitated the new install!)??
> Could I move /var like I did /opt, etc (probably a good idea) and move rootfs 
> to there? Would know how to set it up in lilo but in grub?
> 
> Must have at least one fully working kernel around before trying any other and 
> cannot fulfill this at present! :-(

Download, burn and boot a copy of GParted-Live[1], which is a live-cd for GParted,
the partition manager. Use that to shrink your, say, home partition and
grow your root partition.

Another alternative, if you need minimal downtime and you can unmount
hour home partition is to shrink that, create a second root partition
and copy everything onto that, adjust grub to boot the new root
partition and then delete the old one and grow your home back into the
recovered space. In other words:

 [--- root ---] [--------------------- home -----------------------]
 [--- root ---] [------------- home ------------]
 [--- root ---] [------------- home ------------] [--- new root ---]
 *** Reboot ***
                [------------- home ------------] [--- new root ---]
 [----------------- home -----------------------] [--- new root ---]


[1]: http://sourceforge.net/projects/gparted/files/gparted-live-stable/

> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 2369404.rv3k4nAKTr@dovidhalevi">https://lists.debian.org/[🔎] 2369404.rv3k4nAKTr@dovidhalevi
> 

Attachment: signature.asc
Description: Digital signature


Reply to: