Bootable FC9 Disk Copy
by Nickolas Gray
I am attempting to create a bootable copy of a running SELinux box on
FC9. I think I am close but I am coming up with a kernel panic (text
at end) Here are the steps and a brief reason. If anyone has any
suggestions where I might have made a mistake or left something out a
comment would be appreciated. The only requirements so far is that it
has to be a disk to disk copy with no CD/DVD rescue involved and it
has to use LVM Snapshot.
The original looks like
mbr on boot sector
/dev/sda1 ext3 /boot
/dev/sda2 LVM
VolGroup00/LogVol00 is root
VolGroup00/LogVol01 is swap
This is what I am doing.
• This seemed like an efficient way to dup the filesystems of the
source to the target.
sfdisk -d /dev/sda | sfdisk /dev/sdb
•Duplicate the MBR
dd if=/dev/sda1 of=/dev/sdb1 bs=512k
•Copy the entire /boot from a to b
dd if=/dev/sda of=/dev/sdb bs=664 count=1
•Add the /dev/sdb2 to LVM
pvcreate /dev/sdb2
create the VolGroup for /
vgcreate -s 32m VolGroup01 /dev/sdb2
Create the logical volume for / and swap
lvcreate -l 1562 -n LogVol00 VolGroup01
lvcreate -l 62 -n LogVol01 VolGroup01
Create the swap area
mkswap /dev/VolGroup01/LogVol01
Format the / filesystem
mkfs -t ext3 /dev/VolGroup01/LogVol00
Create the snapshot
lvcreate -L 20g -s -n snap /dev/VolGroup00/LogVol00
Mount the snapshot
mount /dev/VolGroup00/snap /snapshot
Mount the target
mount /dev/VolGroup01/LogVol00 /target
Rsync over the snapshot
rsync -vXxpr /snapshot/* /target
Unmount the snapshot
umount /snapshot
lvremove -f VolGroup00/snap
At this point I fixed the initrd, the fstab and grub.conf on the
target to point to VolGroup01 instead of VolGroup00.
I would think this should be it.
What I get is.
root (hd0,0)
Filesystem type is .....
kerne /vmlinuz ......
Linux bzimage.....
initrd / initrd ....
Linux initrd
Decompresing Linux ... Done
Booting the kernel
Red Hat nash version 6,0,52 starting
Reading all physical volumes this make take awhile ....
Found volume group VolGroup01 now active
ERROR: exec of init (/sbin/init) failed failed!!!! No such file or
directory
ERROR: failed in exec of /bin/echo: No such file or directory
a couple messages about not finding /bin/sleep
Kernel Panic
I am not really sure where this is getting to. I thought it was
getting to the initrd but now I am not sure.
Thanks Nick
--
fedora-selinux-list mailing list
fedora-selinux-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-selinux-list
15 years, 7 months
upgrade to fc9 and lost mouse pad enter
by Jim Duda
I updated my laptop from fc8 to fc9. Due to dependencies, I had to
remove gnome-panel. I reinstalled gnome-panel and all the other stuff
that was removed, but apparently, I missed something.
My touch pad continues to work as a mouse, however, I cannot use the
mouse pad as an enter key. I cannot double-click on the mouse pad as a
select tool.
Can anyone tell me where/how this is controlled in gnome? Is there some
"manager" I need installed which might have been inadvertantly deleted?
Thanks,
Jim
15 years, 7 months
cryptsetup luksOpen reporting "Command failed: Invalid offset"
by Philippe A.
My attempts to open a luks container fail with the following messages:
sudo cryptsetup luksOpen /dev/loop2 test.crypted
Enter LUKS passphrase for /dev/loop2:
key slot 0 unlocked.
Command failed: Invalid offset
As a result, the mapper never gets created in /dev/mapper.
The commands I am using to create my container are the following:
dd if=/dev/urandom of=test.crypted bs=1M count=256
sudo losetup -d /dev/loop2
sudo losetup /dev/loop2 /phil/test.crypted
sudo cryptsetup -c twofish -s 256 luksFormat /dev/loop2
The resulting container appears to be valid as shown by cryptsetup luksDump:
LUKS header information for /dev/loop2
Version: 1
Cipher name: twofish
Cipher mode: cbc-plain
Hash spec: sha1
[snip]
However, no mapper after the luksOpen.
I have a non-luks 'vanilla' container that works. Can anyone help me figure
what I'm missing?
Thanks!
15 years, 7 months
Automounting Camera-USB mass storage
by Chris G
Is is easy to get a USB Camera to automount in Fedora 8, if so how do
you do it?
I have an Olympus C-460 camera and I'm getting fed up with having to
look in /var/log/messages to see what the device name is and then
manually issuing the mount command.
--
Chris Green
15 years, 7 months
A simple bash case question...
by Dan Thurman
I am trying to figure out how to do the following:
case $foo in
"one" || "two)
process_One_Two ;;
"three")
process_Three ;;
"four" || "five")
process_Four_Five ;;
*) echo "Nothing to process" ;;
esac
The problem I am having is getting "one" || "Two"
or "four" || "five" to work - so as to consolidate
two or more strings per case statement line,
otherwise I would have code duplication.
Any advice?
Thanks!
Dan
15 years, 7 months
wifi enabling
by narendraw1 palavalli
hai i have installed fedora9 recently in my hp pavillion dv 9617nr laptop it
has a broadcom802.11b/g wireless card
i m not able to connect to the network i tried even giving the ip address
and tryin its not possible so please can u help me with this
15 years, 7 months
Avahi, nautilus and ssh
by Christoph Höger
Hi there,
I can remember that somewhen an ubuntu notebook detected all ssh capable
servers in a net via avahi and nautilus offered access to them via
places -> network. For fedora 9/8 (in both directions) that is not the
case, although ssh is working, avahi is running on both machines and a
ssh service file is placed in /etc/avahi/services.
Why do I not see an "access this pc via ssh" button in places -> network
but have to use "connect to server" for nautilus access?
Is that a regression or do I miss some config?
regards
christoph
15 years, 7 months
USB slow when two devices connected
by Aldo Foot
My F8 system has two USB ports in the front side.
I had a USB DVDRW connected to one of the ports and was writing an ISO
image to CDR.
Then I plugged in a USB stick to transfer some files from it to my
desktop, the transfer
was stalling and was slow even after the CDR task ended. Then I
unplugged the DVDRW
and the USB stick transfer rate was as fast as lightning.
Why was the USB stick file transfer so slow when the DVDRW was plugged in?
~af
15 years, 7 months
ocsigen install / sqlite3 library
by Jimmy Provoyeur, Jr.
Has anyone successfully been able to install ocsigen framework webserver onto Fedora 9, if so any installation steps, tips, hints,etc....
I am also trying to install sqlite and it's taking forever onthe "make" file; any thoughts on this would be greatly appreciated.
15 years, 7 months