Change partitions?
Karl Larsen
k5di at zianet.com
Tue Jul 15 20:55:27 UTC 2008
Ed Jabbour wrote:
> On Tuesday 15 July 2008 Nils Kassube wrote:
>
>>> Ed Jabbour wrote:
>>>
>>>> Current partition table:
>>>>
>>>> sdb1, primary .............................. empty
>>>> sdb2, primary .............................. backup files
>>>> sdb3, ........................................... extended
>>>> sdb5, logical ................................. ubuntu installation
>>>> sdb6, logical ................................. swap
>>>>
>>>> I'd like it to be:
>>>>
>>>> sdb1, primary .............................. ubuntu installation
>>>> sdb2, primary .............................. backup files
>>>> sdb3, primary ............................... swap
>>>>
>>>> If possible, I want to avoid re-installation of the OS. Is there any
>>>> way just to change the partitions, leaving whatever is on them intact?
>>>> gparted's copy won't do it, I hear. Any hints, pointers, etc. greatly
>>>> appreciated.
>>>>
>>> Could you be a bit more specific what you want to have in the end? What
>>> is the size of the individual partitions now and what should it be after
>>> the modification?
>>>
>
> Now:
> sdb1 77GB
> sdb2 62GB w/ 59 GB used
> sdb5 89 GB w/ 28 GB used
> sdb6 3200 MB
>
> After:
> sdb1 140GB
> sdb2 90GB
> sdb6 3200MB
>
> More or less - if that adds up OK.
>
> On Tuesday 15 July 2008 Rashkae wrote:
>
>> No matter how you look at it, the only "sane" way to do this is to have
>> a second hard drive to use as temp storage, so you can copy data off the
>> drive, repartition, then copy back.
>>
>
> gparted has a copy function, but I think I read somewhere that a simple copy
> of an OS to a partition wouldn't boot properly. Is that right? There is a
> second drive - sda - but it's full. If the copy from sdb5 to sdb1 will boot,
> there's no problem repartitioning, I think.
>
>
You can use dd or cp -a and both work fine. Yes it will not boot
from /dev/sgb1 because grub is set up for /dev/sdb5.
Read about grub and see if you can see what you need to do. You need
to change /boot/grub/menu.lst
Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7
More information about the ubuntu-users
mailing list