From: Daniel Barkalow <barkalow@iabervon.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Scary Paritioning - Need Help
Date: Fri, 20 Oct 2006 01:47:35 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0610200115070.9789@iabervon.org> (raw)
In-Reply-To: <e5a3e9ac0610191702s70a8391ap8c386cd0852b0192@mail.gmail.com>
On Fri, 20 Oct 2006, Lord Sauron wrote:
> This isn't exactly Gentoo-related, however, you guys tend to be the
> most command-line savvy group, and this is all about the command line
> at the moment...
>
> I have three partitions on my workstation's hard drive.
>
> /dev/sda1 = ntfs (windows)
> /dev/sda3 = linux-swap
> /dev/sda4 = ext3 (SuSE 10.1)
>
> Where sda2 should be used to be and XFS partition for Kubuntu.
>
> My question is thus: how would I tack that free space onto sda4? I
> don't want to reinstall SuSE if I don't have to.
You can't really do this in any straightforward way. The easiest thing is
probably to back up the filesystem on sda4 with something like tar, wipe
out sda3 and sda4, create a new sda2 (ext3) and sda3 (swap), and untar the
backed up filesystem onto sda2.
The main issue is that ext3 doesn't support resizing. You need to create a
new filesystem in order to get a different size. Furthermore, partitions
are addressed from the beginning, which means that moving the beginning
will completely change everything.
What I'd do is create a new /dev/sda2 and put home directories there. This
has a number of minor benefits (and minor drawbacks), but the main thing
is that you'll have more accessible storage for linux without changing
your existing filesystem. (And you can move a lot of stuff to the new
space, leaving more space free on the existing partition)
E.g.:
Back up everything, in case you screw up or my instructions are wrong.
Create a new partition 2 on sda with all of the free storage.
Mount the existing sda4 on /mnt/sda4
mke2fs -j /dev/sda2
Mount the new sda2 on /mnt/sda2
cp -a /mnt/sda4/home /mnt/sda2
mv /mnt/sda4/home /mnt/sda4/home-old
mkdir /mnt/sda4/home
Edit /mnt/sda4/etc/fstab to add an entry for /dev/sda2 on /home as ext3.
Make sure the it all boots correctly, and comes up with your user(s) home
directories correctly, and that you have /home listed in the result of
"mount".
When you're really sure, "rm -rf /home-old" to reclaim the space.
Drawbacks: /home and / will fill up independantly, so you can run out of
space on one when there's still space on the other, and balancing these
is a pain.
Benefits: if you fill up /home, things that are trying to write to / won't
have problems while you clear out more space. Also, if you decide to
ditch SuSE in favor of (for example) Gentoo, your home directory is
separate from your system files, so most of the stuff you'll want to keep
is separate from the stuff you're ditching with SuSE.
-Daniel
*This .sig left intentionally blank*
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-10-20 5:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-20 0:02 [gentoo-user] Scary Paritioning - Need Help Lord Sauron
2006-10-20 1:18 ` Joe Menola
2006-10-20 1:53 ` Norberto Bensa
2006-10-20 1:58 ` Lord Sauron
2006-10-20 4:31 ` Norberto Bensa
2006-10-20 6:18 ` [gentoo-user] " Alexander Skwar
2006-10-20 8:36 ` [gentoo-user] " Neil Bothwick
2006-10-20 5:47 ` Daniel Barkalow [this message]
2006-10-20 6:07 ` Dirk Heinrichs
2006-10-20 8:56 ` Mick
2006-10-20 6:20 ` [gentoo-user] " Alexander Skwar
2006-10-20 13:30 ` [gentoo-user] " Alan McKinnon
[not found] ` <e5a3e9ac0610201059g3ee118cbl58898e3b12af7b5c@mail.gmail.com>
2006-10-21 8:44 ` [gentoo-user] " Alexander Skwar
2006-10-21 18:59 ` Lord Sauron
2006-10-22 9:31 ` [gentoo-user] " Alexander Skwar
2006-10-20 6:04 ` [gentoo-user] " Dirk Heinrichs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0610200115070.9789@iabervon.org \
--to=barkalow@iabervon.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox