Solved

Backup Boot partition

Posted on 2013-01-31
7
458 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 7

Accepted Solution

by:
multimac earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Maybe:
fsarchiver -A savefs
would solve the issue
0
 

Author Closing Comment

by:NetRock6
Comment Utility
Thanks for the quick prompt.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now