Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #195857
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: making more room in root partition for distribution upgrade |
| Date | 2018-05-18 03:30 +0200 |
| Message-ID | <vQCnv-4EP-3@gated-at.bofh.it> (permalink) |
| References | <vQAc1-3uV-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, On Thu, May 17, 2018 at 06:06:46PM -0500, Mark Copper wrote: [sda1 root partition got too small; extended partition on sda2 fills remainder of disk] > This must be a FAQ. But there appear to be two ways forward. > > 1. Back-up /home, enlarge / partition, copy back-up back to new, smaller > /home partition (because /home will then start on a different cylinder so > data will be lost). > > or > > 2. Carve out a new partition for /usr at end of disk which will free up > over 6 gb. > > What have other people done? If using multiple partitions per disk, consider using LVM in future as otherwise this sort of thing nearly always becomes a chore. Personally in your situation I'd probably back up /home and then turn /home's device (/dev/sda6) into an LVM PV, then create LVs for /home, /var and whatever else takes up significant space before copying the /home data back in. My reasoning for this is that as you do all of this work as root, everything in /home is basically just data that is not required for managing the system. Therefore the procedure is simpler and less error-prone, in my opinion. It avoids messing about with the root filesystem, and any kind of partition resizing. When using LVM I don't tend to split up / and /usr. It is perfectly possible to have / in LVM; modern grub will cope. But I tend to find that after one has put all of the larger subdirectories into their own LV, the combined space usage of /-and-/usr is fairly small and mostly static. So for simplicity's sake I just rather pick a reasonable size for / and keep it as a real partition with /usr inside it. I don't generally see the point of putting swap into LVM either, again because the size of it rarely changes. Should you find you do require more swap it can always be added later as devices or swapfile. As you can see I greatly value simplicity, which for me is a hard-won lesson in the sysadmin trenches. Other people like a more exciting life, so each to their own. :) Cheers, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
making more room in root partition for distribution upgrade Mark Copper <mcopper@straitcity.com> - 2018-05-18 01:10 +0200
Re: making more room in root partition for distribution upgrade bw <bwtnguy@yahoo.com> - 2018-05-18 01:40 +0200
Re: making more room in root partition for distribution upgrade Mark Copper <mcopper@straitcity.com> - 2018-05-18 02:10 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-20 10:30 +0200
Re: making more room in root partition for distribution upgrade Mark Copper <mcopper@straitcity.com> - 2018-05-21 18:20 +0200
Re: making more room in root partition for distribution upgrade Curt <curty@free.fr> - 2018-05-21 18:50 +0200
Re: making more room in root partition for distribution upgrade Mark Copper <mcopper@straitcity.com> - 2018-05-21 19:00 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-21 19:30 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-21 19:30 +0200
Re: making more room in root partition for distribution upgrade Mark Copper <mcopper@straitcity.com> - 2018-05-25 02:30 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-25 20:30 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-18 03:10 +0200
Re: making more room in root partition for distribution upgrade Andy Smith <andy@strugglers.net> - 2018-05-18 03:30 +0200
Re: making more room in root partition for distribution upgrade Rick Thomas <rbthomas@pobox.com> - 2018-05-18 13:10 +0200
Re: making more room in root partition for distribution upgrade Andy Smith <andy@strugglers.net> - 2018-05-18 14:10 +0200
Re: making more room in root partition for distribution upgrade Felix Miata <mrmazda@earthlink.net> - 2018-05-18 05:00 +0200
Re: making more room in root partition for distribution upgrade ntrfug <ntrfug@cox.net> - 2018-05-19 16:30 +0200
Re: making more room in root partition for distribution upgrade Charlie S <taoquester@gmail.com> - 2018-05-20 08:00 +0200
Re: making more room in root partition for distribution upgrade songbird <songbird@anthive.com> - 2018-05-20 14:40 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-20 15:10 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-20 16:30 +0200
Re: making more room in root partition for distribution upgrade Stefan Monnier <monnier@iro.umontreal.ca> - 2018-05-20 16:40 +0200
Re: making more room in root partition for distribution upgrade Reco <recoverym4n@gmail.com> - 2018-05-20 17:30 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-20 20:50 +0200
Re: making more room in root partition for distribution upgrade Reco <recoverym4n@gmail.com> - 2018-05-20 21:40 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-20 22:00 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-20 20:50 +0200
Re: making more room in root partition for distribution upgrade Richard Hector <richard@walnut.gen.nz> - 2018-05-21 07:20 +0200
Re: making more room in root partition for distribution upgrade songbird <songbird@anthive.com> - 2018-05-21 02:10 +0200
Re: making more room in root partition for distribution upgrade Andy Smith <andy@strugglers.net> - 2018-05-21 08:00 +0200
Re: making more room in root partition for distribution upgrade Curt <curty@free.fr> - 2018-05-21 10:30 +0200
Re: making more room in root partition for distribution upgrade Joe <joe@jretrading.com> - 2018-05-21 11:00 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-21 17:00 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-21 21:10 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-21 21:50 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-21 22:20 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-21 23:00 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-21 23:20 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-22 00:20 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-22 20:30 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-22 21:00 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-22 22:30 +0200
Re: making more room in root partition for distribution upgrade deloptes <deloptes@gmail.com> - 2018-05-22 23:30 +0200
Re: making more room in root partition for distribution upgrade Richard Hector <richard@walnut.gen.nz> - 2018-05-22 22:00 +0200
Re: making more room in root partition for distribution upgrade Jerome Kutche <n9lya@uronode.n9lya.ampr.org> - 2018-05-22 23:40 +0200
Re: making more room in root partition for distribution upgrade Stefan Monnier <monnier@iro.umontreal.ca> - 2018-05-23 03:20 +0200
Re: making more room in root partition for distribution upgrade Curt <curty@free.fr> - 2018-05-23 10:30 +0200
Re: making more room in root partition for distribution upgrade Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-05-21 14:20 +0200
Re: making more room in root partition for distribution upgrade David Baron <dbaron770@gmail.com> - 2018-05-21 15:10 +0200
Re: making more room in root partition for distribution upgrade David Wright <deblis@lionunicorn.co.uk> - 2018-05-21 16:00 +0200
Re: making more room in root partition for distribution upgrade Miroslav Skoric <skoric@eunet.rs> - 2018-05-25 11:40 +0200
Re: making more room in root partition for distribution upgrade David Wright <deblis@lionunicorn.co.uk> - 2018-05-25 22:50 +0200
Re: making more room in root partition for distribution upgrade Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-25 23:20 +0200
csiph-web