Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Backup Boot partition

Posted on 2013-01-31
7
Medium Priority
?
476 Views
Last Modified: 2013-02-08
i need to backup and restore fedora 18 with gpt partition. on sdc1 i have bios boot and sdc2 is / and sdc3 is swap. i am able to backup sdc2 using fsarchiver but not sdc1 the biosboot partition. is there where to back up sda1, so when i restored on another pc so fedora can run.
0
Comment
Question by:NetRock6
  • 5
  • 2
7 Comments
 
LVL 7

Expert Comment

by:multimac
ID: 38843663
Its fine. This parition is only created for the bootloader.  Just create sdc1 with parted and toggle the flags to bios_grub.

Assuming that you have created sdc1 already:
parted /dev/sdc
print
set 1 bios_grub on

Open in new window


Then process to reinstall grub, e.g.
grub-install /dev/sdc

Open in new window

0
 

Author Comment

by:NetRock6
ID: 38849105
Thanks for the reply.
I did not try your suggestion yet,
But if on the same PC i only backup the / partition and restore it,
I can not logging as root anymore. I tried to boot to single mode and ran
passwd to change the root password, it worked but then when i restart, the grub loads fine
on screen before i get to the log prompt in text mode, there is screen that show Fedora 18 is loading with 3 lines that follow each other, all the lines complete and freeze just there and i never get to log on prompt, is there a way to solve this issue after restore of / partition.

Thanks
0
 

Author Comment

by:NetRock6
ID: 38868750
after doing restore i am not able to loging using the right credentials.

the error i am getting is:
--root no shell permission

is there a way to fix this.
a quick prompt highly appreciated.

Thanks
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Accepted Solution

by:
multimac earned 2000 total points
ID: 38868884
This is maybe an SELINUX flaw when you dont copy the ACL. When you boot into the grub boot loader, edit that line that specifies the Linux Kernel version  and add the snippet "selinux=0". Then boot into the system and try again.

If this works, you may need to relabel the filesystem with
touch /.autorelabel
reboot

Open in new window


Alternative: Check your backup tool again. It is necessary to have ACL support.
0
 

Author Comment

by:NetRock6
ID: 38868989
Hi thanks for the quick reply and working solution.
I am using "fsarchiver"

http://www.fsarchiver.org/Attributes

but it says by default should support ACl, but i guess it has issue with selinux,
i am working on it to find a work around
0
 

Author Comment

by:NetRock6
ID: 38868995
Maybe:
fsarchiver -A savefs
would solve the issue
0
 

Author Closing Comment

by:NetRock6
ID: 38869210
Thanks for the quick prompt.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question