Mailinglist Archive: opensuse (963 mails)

< Previous Next >
Re: [opensuse] How to re-shuffle disk partitions
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Fri, 22 Apr 2011 15:57:34 +0200
  • Message-id: <ios1ge$5fq$1@saturn.local.net>
Anton J Aylward wrote:

Felix Miata said the following on 21/04/2011 11:19 AM:

Those familiar with Grub's command interface and mkfs could easily go
the 2a route, possibly before deleting sda2, copy the content of sda4
to it, install Grub to it, adjust fstab accordingly, and reboot with
sda1 as the new /boot before proceeding to delete sda2 and sda4 to
create a new swap sda2 and LVM sda4 in the space vacated by sda2 and
sda4. Or, grow sda5 into all the space vacated by sda2 & sda4 - I
think, since I'm unfamiliar with LVM niceties - and leave swap at the
end of the disk. The latter should eliminate the out of disk order
messages running fdisk -l, since there would only be one primary
hosting a filesystem partition directly before the start of the
extended. You'd then have either sda1, sda2, sda3, sda5, sda6.... or
sda1, sda3, sda5, sda6.... depending on whether putting in the swap
on sda2 or not.

I created /dev/sda2 as a new swap.
Reboot. All went well.
I created /dev/sda1 as a new /boot and rsync'd the contents of the old
/boot across.
Reboot. OK
BUT ... well actually it was using the old partition to boot :-/
So I deleted the old /boot

I'm HOSED

How about something along these lines:

boot rescue system (knoppix, opensuse live, whatever)
amend bootloader config to boot from sda1
if necessary re-install mbr
make sda1 active
reboot


--
Per Jessen, Zürich (21.6°C)

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups