FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 09-16-2011, 07:14 PM
Ric Moore
 
Default partition question

On Fri, 2011-09-16 at 12:31 +0100, Avi Greenbury wrote:
> R Kimber wrote:
>
> > My /usr partition is getting fairly full (86% use) and I wondered if
> > there was anything simple that I could do to extend its effective
> > size before any problems arise. I have plenty of space on other
> > partitions, including one that is unused.
>
> In short, pick a big directory, move it to another partition and
> symlink to it is generally the most pain-free way to do it, but is
> probably not the ideologically purest way of doing it
>
> It's safest to boot into single-user when you do it, though, to make
> sure you'll not be annoying anything by pulling /usr out from
> underneath it.

I use /opt on a large partition, for my local stuff... would that help?
Ric



--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-16-2011, 07:20 PM
Ioannis Vranos
 
Default partition question

On Fri, Sep 16, 2011 at 10:14 PM, Ric Moore <wayward4now@gmail.com> wrote:
> On Fri, 2011-09-16 at 12:31 +0100, Avi Greenbury wrote:
>
> I use /opt on a large partition, for my local stuff... would that help?


If you are a purist, /usr/local is for the local stuff; and
/usr/local/src to store the source code files, so as to have all of
them together, and know what you have installed.


--
Ioannis Vranos

http://www.cpp-software.net

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-16-2011, 07:35 PM
Ric Moore
 
Default partition question

On Fri, 2011-09-16 at 22:20 +0300, Ioannis Vranos wrote:
> On Fri, Sep 16, 2011 at 10:14 PM, Ric Moore <wayward4now@gmail.com> wrote:
> > On Fri, 2011-09-16 at 12:31 +0100, Avi Greenbury wrote:
> >
> > I use /opt on a large partition, for my local stuff... would that help?
>
>
> If you are a purist, /usr/local is for the local stuff; and
> /usr/local/src to store the source code files, so as to have all of
> them together, and know what you have installed.

My Caldera fan-bois'ism is showing.
<sings> "If it's good enough for Mad Dog, it's good enough for me."
Ric

--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-16-2011, 08:55 PM
R Kimber
 
Default partition question

On Fri, 16 Sep 2011 12:31:29 +0100
Avi Greenbury wrote:

> In short, pick a big directory, move it to another partition and
> symlink to it is generally the most pain-free way to do it, but is
> probably not the ideologically purest way of doing it
>
> It's safest to boot into single-user when you do it, though, to make
> sure you'll not be annoying anything by pulling /usr out from
> underneath it.

GivEn my kEyboard problEm, rEportEd in othEr thrEad, I wish I'd donE it
this way now!

- Richard
--
Richard Kimber
Political Science Resources
http://www.PoliticsResources.net/

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-16-2011, 10:42 PM
R Kimber
 
Default partition question

On Fri, 16 Sep 2011 21:55:25 +0100
R Kimber wrote:

> On Fri, 16 Sep 2011 12:31:29 +0100
> Avi Greenbury wrote:
>
> > In short, pick a big directory, move it to another partition and
> > symlink to it is generally the most pain-free way to do it, but is
> > probably not the ideologically purest way of doing it
> >
> > It's safest to boot into single-user when you do it, though, to make
> > sure you'll not be annoying anything by pulling /usr out from
> > underneath it.
>
> GivEn my kEyboard problEm, rEportEd in othEr thrEad, I wish I'd donE it
> this way now!

Actually, the two problems were unrelated - they just coincided.

- Richard.
--
Richard Kimber
Political Science Resources
http://www.PoliticsResources.net/

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 05-27-2012, 07:45 PM
Phil Dobbin
 
Default partition question

Hi, all.

I've Googled this question quite extensively & before I proceed I
thought I'd ask for an opinion. It's quite a common predicament so
apologies in advance if I'm creating noise.


I have a machine running Fedora 16 X86_64 which is a recent addition &
now I need to use some of the unused space on the HD for another OS
(CentOS). When I originally installed Verne, I just accepted Anaconda's
"replace existing Linux system" so I have this:


# pvdisplay -v
Scanning for physical volume names
--- Physical volume ---
PV Name /dev/sda2
VG Name vg_sandstar
PV Size 74.04 GiB / not usable 10.00 MiB
Allocatable yes (but full)
PE Size 32.00 MiB
Total PE 2369
Free PE 0
Allocated PE 2369
PV UUID nRaEqV-MTHe-ArbR-OCwh-VKTw-vZjG-gX6phH

so as I understand it, my two viable options are a non-destructive
resize or a clean install & use Anaconda to create a blank partition for
use as the second OS (well, I do have a third: I have a brand new 60GB
USB HD that could be used but I don't really want to go down that road).


The disk is 80GB & I have a 3.91GB swap, a 23.38GB home & root is 46.75.
Total disk space that is actually used is minimal, less than 10 GBs.


Possibly the easiest route would be to do a clean install but I'd really
like to try to see if I can successfully resize it as I've never tried
it before.


Any opinions would be gratefully received.

Cheers,

Phil...
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 05-27-2012, 08:04 PM
Geoffrey Leach
 
Default partition question

On 05/27/2012 12:45:45 PM, Phil Dobbin wrote:
> Hi, all.
>
> I've Googled this question quite extensively & before I proceed I
> thought I'd ask for an opinion. It's quite a common predicament so
> apologies in advance if I'm creating noise.
>
> I have a machine running Fedora 16 X86_64 which is a recent addition
> &
>
> now I need to use some of the unused space on the HD for another OS
> (CentOS). When I originally installed Verne, I just accepted
> Anaconda's
> "replace existing Linux system" so I have this:
>
> # pvdisplay -v
> Scanning for physical volume names
> --- Physical volume ---
> PV Name /dev/sda2
> VG Name vg_sandstar
> PV Size 74.04 GiB / not usable 10.00 MiB
> Allocatable yes (but full)
> PE Size 32.00 MiB
> Total PE 2369
> Free PE 0
> Allocated PE 2369
> PV UUID nRaEqV-MTHe-ArbR-OCwh-VKTw-vZjG-gX6phH
>
> so as I understand it, my two viable options are a non-destructive
> resize or a clean install & use Anaconda to create a blank partition
> for
> use as the second OS (well, I do have a third: I have a brand new
> 60GB
>
> USB HD that could be used but I don't really want to go down that
> road).
>
> The disk is 80GB & I have a 3.91GB swap, a 23.38GB home & root is
> 46.75.
> Total disk space that is actually used is minimal, less than 10 GBs.
>
> Possibly the easiest route would be to do a clean install but I'd
> really
> like to try to see if I can successfully resize it as I've never
> tried
>
> it before.


I went around that tree a few months back, and as far as I could
discover there is no was to resize a partition. The parted
documentation seemed to imply that resizing was supported, but at the
end, no luck.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 05-27-2012, 11:11 PM
Peter Larsen
 
Default partition question

On Sun, May 27, 2012 at 08:45:45PM +0100, Phil Dobbin wrote:
>
> so as I understand it, my two viable options are a non-destructive
> resize or a clean install & use Anaconda to create a blank partition for
> use as the second OS (well, I do have a third: I have a brand new 60GB
> USB HD that could be used but I don't really want to go down that road).

Well, another option is to use the same volume group for both installations? As long as
you're not playing with clusterable volumes that should be safe enough. In other words,
keep your partition layout and pv as configured, make sure you have 10-20GB free space in
volume group and simply install CentOS to it. Do a custom layout when you install CentOS and
specify the volume group you already have, and simply add a volume for / and swap. Grub will
handle both OS'es just fine. You may consider your /boot size since you'll have two system's
kernels etc. there - but if you're using the standard 512MB setup for /boot, you will most
likely be more than fine.

> The disk is 80GB & I have a 3.91GB swap, a 23.38GB home & root is 46.75.
> Total disk space that is actually used is minimal, less than 10 GBs.

USB disks are pretty slow. I would do my best to avoid using that as your / and swap drive.

>
> Possibly the easiest route would be to do a clean install but I'd really
> like to try to see if I can successfully resize it as I've never tried
> it before.

That should not be necessary. You can do pvresize too if you wish but why bother? You'll just
end up with both systems seeing the other systems VG anyway, so you still need to keep things
separate. By putting it all on the same VG you can always and easy resize one system and give the
space to the other without worrying about partititions etc.

>
> Any opinions would be gratefully received.
>
> Cheers,
>
> Phil...
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 05-28-2012, 09:43 AM
"Bryn M. Reeves"
 
Default partition question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/27/2012 09:04 PM, Geoffrey Leach wrote:
> On 05/27/2012 12:45:45 PM, Phil Dobbin wrote: I went around that
> tree a few months back, and as far as I could discover there is no
> was to resize a partition. The parted documentation seemed to imply
> that resizing was supported, but at the end, no luck.
>

It's possible but there are a fair number of steps involved.

Use rescue mode (you'll need to in order to resize the rootfs and
partition containing the PV).

Boot into rescue mode and skip the file system detection option then
use lvresize or lvreduce to shrink the file system volumes and their
file systems (specify the --resizefs flag - otherwise you need to do
this as a two-step process, first shrink the file system with e.g.
resize2fs, then shrink the LV that contains it).

Once you've shrunk the LVs you can check to see if the PV can be
resized - use pvresize with the --setphysicalvolumesize option to set
the the PV to the intended size.

If this step fails it will be because there are still extents
allocated to some LVs that are using the space you want to free up
(this is unlikely with the default Fedora layout but can happen with
more complex VGs or VGs that have a lot of allocations taking place).
If this is the case you'll need to use pvmove to relocate those
extents elsewhere (see the pvmove man page).

Once the PV has been reduced in size you can shrink the partition.
Unfortunately there's no good automatic support for this today. Parted
still insists on resizing file systems (but doesn't work with most
common file systems..).

I normally use fdisk: you'll need to remove (delete) the partition you
want to resize and then re-create it with the same starting offset.
The easiest way to do this is to use sector mode (default now) and
make a note of the value in the start column before removing the original.

If you're using a GPT partition table then you can do the same
remove/re-add routine with parted but I prefer fdisk for MBR partition
tables (again, use sector units when modifying the partition).

Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/DSL8ACgkQ6YSQoMYUY96NJACaAtX4udNORzZiKf71tF/36zCB
QbsAnRcGwTKEhBC99oRcWrt32GDjTBjZ
=mC1T
-----END PGP SIGNATURE-----
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 05-28-2012, 09:36 PM
Phil Dobbin
 
Default partition question

On 05/27/2012 08:45 PM, Phil Dobbin wrote:



I've Googled this question quite extensively & before I proceed I
thought I'd ask for an opinion. It's quite a common predicament so
apologies in advance if I'm creating noise.

I have a machine running Fedora 16 X86_64 which is a recent addition &
now I need to use some of the unused space on the HD for another OS
(CentOS). When I originally installed Verne, I just accepted Anaconda's
"replace existing Linux system" so I have this:


[snip]

Many thanks to Geoffrey, Bryn & Peter for their advice & assistance with
this matter. That's given me food for thought.


I'll choose a method & get back to you to let you know how I get on.


Cheers,

Phil...
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 02:21 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org