Laptop install: Preserve recovery partition

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Laptop install: Preserve recovery partition

Postby xboxboy » Sep 27th, '14, 14:03

Hi all. I have a dell xps13 developer edition with ubuntu factory installed. It works well. But it's time for some Mageia magic. I've run a live magiea off of a usb and everything seems fine.

Now, I'd like to install Mageia, but I'd like to preserve the factory recovery partition incase it ever needs to be reverted to Ubuntu (eg for selling, warranty etc).

So, this is what I've found:

Code: Select all
NAME   FSTYPE   SIZE MOUNTPOINT LABEL
sda           119.2G           
├─sda1 vfat     350M            DELLUTILITY
├─sda2 vfat       3G            OS
├─sda3 ext4   100.9G /         
├─sda4            1K           
└─sda5 swap    15.1G [SWAP]     


So this is my understanding of it:
sda1, dell recovery utility
sda2, recovery image
sda3, the / of the factory install
sda4, I have no idea
sda5, swap

So can I install mageia simply to sda3 and point sda5 to swap? And if needed in the future, I can invoke the recovery utility to reinstall ubuntu?
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Laptop install: Preserve recovery partition

Postby doktor5000 » Sep 27th, '14, 15:49

Easiest is probably to simply do an image of the complete drive before. You should also check for some hidden partitions via fdisk or something the like.

But in general, your approach should be OK. FWIW, sda4 is probably just the extended partition holding sda5.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Laptop install: Preserve recovery partition

Postby xboxboy » Sep 27th, '14, 16:00

Thanks doc. What is the best way to image the drive? Simply dd sda1, sda2 etc. Or is there a way to copy SDA without including all the free space?
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Laptop install: Preserve recovery partition

Postby doktor5000 » Sep 27th, '14, 16:33

partimage or clonezilla should be able to do that. There are other weird ways which involve writing zeros to free space and then using sparse files ...
Check e.g. http://serverfault.com/questions/93667/ ... pace-linux
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest