General :: Boot Hang In Red Hat 4 V5 After SElinux Relabel

Nov 22, 2010

On boot I get

** Warning -- SELinux relabel is required. ***
*** Disabling security enforcement. ***
*** Relabeling could take a very long time, ***
*** depending on file system size. ***

On the next screen the boot hangs. There is a solution posted here: [URL] it states I booted my VM from a rescue CD ISO, mounted the root directory, and:

# cd /mnt/local
# rm -f .autorelabel

Once this is done you may want to consider upgrading your VM to more -current that has this fixed. I've booted using a knoppix CD, but I don't know how to mount the root directory to try the fix.

View 6 Replies


ADVERTISEMENT

Fedora Security :: SELinux Relabel Every 3 Boot?

Mar 29, 2010

I get a SELinux relabel often even without changing stuff. SELinux troubleshoot doesn't show any error nor are there any messages in /log/messages that give any clue. Where should I look to see whats happening ?

2.6.31.12-174.2.22.fc12.x86_64
selinux-policy-3.6.32-103.fc12

View 2 Replies View Related

Fedora Security :: SElinux Fails To Start Filesystem Relabel

Sep 10, 2009

I recently made a custom spin of fedora on 29th August 2009. It initially failed to go past the slash screen but a solution was found here on fedora forum. It included adding the following to kernel line in grub.

enforcing=0

I later checked SElinux and found the option to do a filesystem relabel at next boot was enabled. I rebooted the system without adding the above words "enforcing=o" and it got stuck after the the splash screen (the blue screen with a fedora bubble). I then did some more research on SElinux and filesystem relabelling. There were several comments that said that a notice is given in the event of a filesystem relabel. I went to the konsole and as root I wrote the following commands:

touch /.autorelabel
reboot

I gave my pc 20Hrs 48min and nothing happened. My HDD is 80GB but it only had 7.5GB of data. There were no messages that indicated that the filesystem relabel was in progress or even if it had started. I also tried the following command but failed:

make relabel

I have now had to edit grub.conf and added the words "enforcing=0" as it is the only way the system will go passed the splash screen.

View 13 Replies View Related

Fedora Security :: Moved /var/log To New Disk - Selinux Relabel Now Incorrect

Apr 27, 2011

I've moved my /var/log directory to another disk (/mnt/serverlogs) and created a symlink for the original directory:

Code:

[root@fileserver2 var]# ls -aldZ /var/log
lrwxrwxrwx. root root unconfined_u:object_r:var_t:s0 /var/log -> /data/serverlogs
[root@fileserver2 var]# ls -aldZ /data/serverlogs
drwxr-xr-x. root root system_u:object_r:var_log_t /data/serverlogs

I have SELinux set to permissive and am getting lots of errors because the contexts are incorrect after a filesystem relabel. e.g.

Code:

[root@fileserver2 var]# ls -alZ /data/serverlogs/messages
-rw-------. root root system_u:object_r:default_t:s0 /data/serverlogs/messages

I believe that this file should be var_log_t.How can I restore the correct context to all of the files in /var/log?I've tried running:

Code:

restorecon -vR /var/log/

But this does not change the contexts, I guess because the files are now in the 'incorrect' location. I've looked through the file: /etc/selinux/targeted/contexts/files/file_contexts which I believe contains the original/default settings - maybe I need to alter this file to fix the problem? I've also tried modifying /data/serverlogs using:

Code:

semanage fcontext -a -t var_log_t /data/serverlogs

which fixes the directory itself, but not the contents,

View 8 Replies View Related

General :: Display Corruption And Boot Hang

Jul 13, 2010

Anyone ever see anything like this on bootup?

[url]

The display freezes/hangs, but the kernel is still kind of responsive because I can hit Ctrl-Alt-Del and after many seconds it reboots.

I can get it (Slackware 13.0) to boot this same kernel just fine from CD; it's only the normal bootup, after the install finishes, that this happens.

I enabled netconsole so I could see the messages, shown below, but there are no errors reported. The display corrupts and hangs at the "TCP cubic registered" message which appears to be unrelated to anything video-wise.

Code:

View 2 Replies View Related

Fedora Servers :: SELinux - Find A List Of All The Booleans For SELinux (10) Using Getsebool -a

Feb 23, 2009

You can find a list of all the booleans for SELinux (Fedora 10) using getsebool -a My question is, is there a reference online that describes each one. Most of obvious but it's one of those "I have to know because it's there situation).

View 5 Replies View Related

Fedora Security :: 'restorecon' Does Not Relabel Correctly?

Jul 24, 2009

I have a very curious problem with 'restorecon'.Problem:'restorecon' should relabel the context of the path /maco/glass to system_u:object_r:glass_rw_t:s0, however, it relabels the context tosystem_u:object_r:user_home_dir_t:s0.

The commad that triggers the error:restorecon -F -R -v /maco/glass/Expected result:drwxr-xr-x. 2 system_u:object_r:glass_rw_t:s0 glass glass 4096 2009-07-24 11:32 glassActual result:drwxr-xr-x. 2 system_u:object_r:user_home_dir_t:s0 glass glass 4096 2009-07-24 11:32 glassBackground:I have created a

[code]....

View 3 Replies View Related

CentOS 5 :: SELinux Buggered Up 5.4 Boot?

Apr 26, 2010

I turned on SELinux today on my laptop, but when I tried to reboot I found that I can't! The boot process stalls every time on "Starting system logger". A load of "permission denied" messages preceed that, including various items in /var/sys. Most flash by far too fast for me to note them down.

I have tried the backup kernel from the grub menu but get the same result. What has gone on here and what can I do to get around this?

View 5 Replies View Related

Fedora Security :: How Long To Relabel After Seedit Reboot

Dec 29, 2010

I wanted to edit the Selinux policies using a GUI and i read that there's seedit. The problem was the selinux-policy-targeted package. It was conflicting every time i wanted seedit. I uninstalled the selinux-policy targeted and was able to install seedit. After that, I did ./seedit-init, after that i just entered reboot. Was there supposed to be a button or anything popping up after the seedit-init?

So it reboots, and during the first reboot, a bunch of words flashed, and i see some words like Green [OK]. It was very quick so i have no idea what it said. It then reboots again and it loads but now after the fedora loading bar and word turns grey, it just stops. Nothing else happens. I can type things in, but just that, nothing else. Ctrl+Alt+Delete restarts it though.

So my problem is, is it still relabeling? Because that's what I'm told seedit is doing; relabeling all the policies. If so, how long does it take?And if it's not relabeling, then did something happen a long the way?I started the seedit around 3ish and it's almost 8 already. I'm currently using Fedora 14 with a 500gb HDD. However, i partitioned 11gig for the fedora, and the rest is for Windows 7. So basically it is a dual-boot.okay, after much waiting, it was an error =/. I just don't know why though. I did a restart, made the kernal disable selinux and went and uninstalled seedit. I reapplid the selinux-policy-target. I did a restart and there it was, telling me it had to relabel.

View 7 Replies View Related

Fedora :: Intermittent Boot Hang Ups

Mar 7, 2011

I have Fedora 13 installed on a new PC and have two types of intermittent boot hangups. What logs exist within Fedora 13 that may help me identify the cause or causes of these hangups? Todate, a reboot gets over the problems but I wish to get this sorted whilst the PC is still under warranty.

View 6 Replies View Related

Ubuntu Installation :: 10.10 (64 Bit) Hang On Boot

Jan 8, 2011

I upgraded my ubuntu 64 bit from 10.04 to 10.10 using the update manager on my Laptop ASUS, F80Series, 4Gb Ram, CPU Duo T8100. Ubuntu 10.10 could never boot: it always gets stuck. I tried the "recovery mode". The last two messages written, before getting stuck are:

[1.729408 ] NET: Registered Protocol Family 1
[1.730110] Registered Taskstat Version 1

View 9 Replies View Related

Ubuntu :: Hang Before Boot Start?

Jan 9, 2011

My machine is running in Pentium(R) 4 CPU 1.7Ghz, Nvidia legacy Riva tnt/tnt2 and a 512mb ram. I have a Network adapter, Realtek RTL8139 Family PCI Fast Ethernet NIC. I have installed Ubuntu in my Window Xp, and used the ACPI workaround to install ubuntu on my PC. Now that I have installed Ubuntu, when I try to boot ubuntu, it always hang before it start to boot.

View 5 Replies View Related

Ubuntu :: Boot Hang On Upgrade To 10.04?

Jun 21, 2010

Upgraded dual boot XP / Ubuntu 2.6.31-22 (still works) to 2.6.32-22, which hangs on boot. "2.6.32-22 recovery mode"(and "continue" dies at "Checking battery state". Ctrl Alt F3 gets a prompt and the login works.

The machine is a Thinkpad g40, which has worked on 9.10, except for wireless distance issues (the G40 has the Atheros AR5211, which seems to be a problem, at least per the forums, and my distance limits experience)

I get the same mount and chroot messages, followed by scrolling msgs, and then a blank screen on attempting to boot 2.6.32-22. And, as indicated, 2.6.31-22 boots and the apps I checked work fine. On the upgrade, there were several msgs about non supported apps and a grub question, which I (naively) answered as use the package version (and was somewhat surprised when dual boot still worked - but impressed and happy

I cloned my hard drive prior to the upgrade, so can revert to 9.10, but would like to run 10.04 LTS. Any suggestions. or should I wait for a while to upgrade?

View 6 Replies View Related

Fedora Hardware :: Second Channel Causes The Boot To Hang?

Mar 10, 2011

I had to replace the motherboard, processor, memory on a machine because the old motherboard died. It worked fine under the old board but the new board (Gigabyte 880GA-UD3H) is causing Fedora 11 (and the Fedora 14 Live CD) to fail when initializing an Adaptec AHA-3940UW SCSI adapter.

I was able to display the boot messages and found that the first channel on the adapter is fine, but the second channel causes the boot to hang. The messages are:

aic7xxx 0000:05:04.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
scsi6 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
<Adaptec 3940 Ultra SCSI adapter>
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/254 SCBs
aic7xxx 0000:05:05.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22

View 1 Replies View Related

Red Hat :: 50-udev.rules Causes Start_udev To Hang On Boot?

Aug 14, 2010

I've been having problems with start_udev on my machine post kernel 2.6.18-162 on my CentOS machine. A previous install would work on the old kernelut not the newer ones. I recently did a completely fresh install of CentOS 5.5o see if maybe there was a orruption in my install when it upgraded,t I still have the problem of udev hanging on startup.Using the rescue option on the disk, I've managed to track the problem down to the 50-udev.rules file. Through trial and error, I moved all the .rules files out of the rules.d directory, and added them back one at a time to see which one(s) caused the system to hang, and which ones it carried on booting as normal with. The only one that causes it to hang is the 50-udev.rules.

From what I can tell, this rules file is responsible for letting udev check various pieces of hardware. I think that it is failing whent runs modprobe on a pci device address.Only problem is I don't understand the rules file syntax, so I don't know if I can simply comment out or change a line in this file to skip the device that its looking for.Can anybody help me track down the specific device/line that is doing this?(I've kept the file out of the folder for now and my system appears to continue operating, but I get the occasional problem that for all I know could be due to udev not having a complete start up).

View 6 Replies View Related

Fedora Security :: Make SELinux Changes Remain After Boot?

May 10, 2011

After I do a recommended SELinux change from an alert:

'grep blender /var/log/audit/audit.log | audit2allow -M mypol'

the next time I boot, I have to add the rule again. How would I make this permanent? Can this only be done with the SELinux Policy Generation Tool? I've tried making bug reports for some SELinux warnings.

View 3 Replies View Related

Red Hat / Fedora :: Boot Hangs After SELinux: Disabled At Runtime?

Mar 8, 2010

My Redhat box hangs on boot up after "SELinux: Disbled at runtime" Code: raid1: raid set md0 active with 2 out of 2 mirrors

[Code]...

View 7 Replies View Related

Software :: Boot Hangs After SELinux: Disabled At Runtime

Mar 8, 2010

My Redhat box hangs on boot up after "SELinux: Disbled at runtime" ...

Code:
raid1: raid set md0 active with 2 out of 2 mirrors
md: ... autorun DONE.
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.

[Code]....

how to restore them properly.

View 5 Replies View Related

Fedora Hardware :: Adding New Drives Causes FC To Hang On Boot?

Mar 29, 2010

Fedora hanging during boot when new drives are connected.

I'm running an FC12 install on a 750gig Samsung SATA drive. BIOS is set for drives to be AHCI

I've got 3 other identical 750's, two of which have never been used (as in never been written to). None of the drives have any jumpers set on them, as I've read that SATA handles that. At some point, all 4 drives were connected, and I had formatted one of the drives and backed some data up to it. But a reboot left me with FC hanging on load and the solution was to unplug all 3 other drives. I left it alone for a month.

Troubleshooting this weekend, I found with just my active drive and one of the untouched drives connected, FC still hangs. What I mean by hanging is that the blue background appears with the un-filled 'F' logo which filles diagnally under normal conditions. Mine will not begin to fill, and keyboard commands are not recognized.

It almost resembles a master/slave problem, but I thought that was gotten rid of with SATA. I tried setting the BIOS to use IDE-compatibility mode and set the order of the drives but the problem was the same, though I did not try any jumper arrangements.

View 5 Replies View Related

OpenSUSE Install :: Black Screen Hang At Boot - 11.3

Aug 2, 2010

I've down loaded the live CD for SUSE 11.3 and, using isohybrid and dd, I put the contents onto a USB stick and made it bootable. All good so far.

I then installed SUSE on one of the partitions on my hard disk (Windows is also on the disk). I set 4GB for SWAP, 16 GB for ROOT and the rest ~270 for /HOME.

I set the bootloader to be installed in the MBR.

The installation completed with no problems indicated.

I was asked to reboot and did so, removing the usb stick so that 11.3 would boot.
The reboot failed! I was presented with a black screen and nothing else happened.

I tried again, selecting openSUSE 11.3 from the boot menu. - Again a black screen shortly after pressing enter.

I can boot in Failsafe mode and then login with text prompt. I can't boot into runlevel 3 (same problem - black screen)

Does anyone know whether this is a problem with network configuration or graphics?

I have a notebook with ATI Radeon Mobility HD 5650 graphics card and
ATHEROS ar8132 ethernet controller.

View 1 Replies View Related

Ubuntu :: Multiple NVidia Cards Boot Hang?

Mar 29, 2010

I have 2 NVidia graphics cards, a GTX275 and a GT210. My system boots just fine in 32-bit Windows 7, so I know it isn't a hardware problem.Linux boots fine with either the GTX275 or the GT210 installed, but hangs after the file system check if both are installed. My motherboard has 3 pci-e slots, an x1, x4, and an x16. I've tried various configurations, all fail except 1 graphics card installed in either of these slots. I got my system to boot a couple of times with both cards installed in Xbuntu 9.10. Then this problem randomly happened.

System Specs:
Ubuntu 10.04 Beta, 2.6.32-16 Kernel
MSI N275GTX Twin-Frozr 896MB
MSI N210GT 512MB (got it for VDPAU on an HDTV )[code].....

I'm not inclined to believe the problem is here. I don't even get a bootsplash, let alone XServer to start. The system hangs after a flurry of HDD activity. Checked partition, and it's ok.

/var/log/boot.log

Code:
fsck from util-linux-ng 2.17.2
/sbin/fsck.xfs: XFS file system.

View 4 Replies View Related

Ubuntu Installation :: Upgrade To 10.04 - Boot Screen Hang?

May 2, 2010

I'll say up front I'm still new to Ubuntu, so if I've missed anything obvious please forgive me. I chose to upgrade my 9.10 installation to 10.04 via the update manager. Especially since I was going to be gone for long periods of time, this seemed like a good idea.

Downloading went fine, but I had to leave for a two day trip once I clicked install. When I returned, I noticed the machine was still on the purple loading screen with four dots. When I shut it down and rebooted, it got to the same screen. Pressing escape to show the text behind the screen showed two fails and one oddity:

(1) Setting sensors limits "Rather than invoking init scirpts through /etc/init.d, use the service( utility, e.g. service S49console-setup start

Since the script you are attempting to invoke has been converted to an upstart job, you may also use the start( utility, e.g. start S49console-setup start: Unkown job: S49consile-setup"

(2) Starting VirtualBox kernel modules No suitable module for running kernels found

[Code]...

View 9 Replies View Related

Ubuntu Servers :: RAID And Hang On Boot Displaying With 10.04

May 15, 2010

I was having this issue with my server when I tried upgrading (fresh install) to 10.04 from 9.04. But to test it out after going back to 9.04 I installed 10.04 server in a virtual machine and found the same issues. I was using the AMD64 version for everything. In the virtual machine I chose openssh and samba server in the initial configuration. After the install I ran a dist-upgrade and installed mdadm. I then created an fd partition on 3 virtual disks and created a RAID5 array using the following command:

Code: sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sd[b-d]1

This is the same command I ran on my physical RAID5 quite a while ago which has been working fine ever since. After running a --detail --scan >> mdadm.conf (and changing the metadata from 00.90 to 0.90) I rebooted and found that the array was running with only one drive which was marked as a spare. On the physical server I kept having this issue with one drive which would always be left out when I assembled the array and would work fine after resyncing until I rebooted. After I rebooted the array would show the remaining 6 drives (of 7) as spares.

I updated mdadm to 3.1.1 using a deb from debian experimental and the RAID was working fine afterward. But then the boot problems started again. As soon as I added /dev/md0 to the fstab the system would hang on boot displaying the following before hanging:

[Code]....

View 7 Replies View Related

Red Hat :: 5.3 Hang At INIT - Unable To Boot System Anymore

May 23, 2010

After a kernel update action, it seems that I'm unable to boot a system anymore. First off, after installing the kernel, and trying to shutdown to boot to the new kernel, the system replied with INIT: no more processes left in this runlevel. Kernel update was performed from to the following versions 2.6.18-128.el5.img -> 2.6.18-164.11.1.el5.img . The system is a VMWare virtual machine. When trying to reboot, the system passes GRUB, starts initializing and after loading the dm it stops for a few seconds at the message Waiting for new devices, show the following message:

Setting up new root fs no fstab.sys, mounting internal defaults. After this and a few other messages, it displays : INIT: version 2.85 booting INIT - No more processes left in this runlevel INIT: Id "x" respawning too fast : disabled for 5 minutes And then it just hangs. This is the output of my inittab:

[code]...

The system boots into failsafe, but still shows the errors mentioned.

View 5 Replies View Related

Fedora Installation :: F12 64bit On Optiplex 740 - Hang On First Boot After Install?

Feb 15, 2010

New install of Fedora 12 64-bit from DVD on an Optiplex 740 (AMD) with 8GB memory I had to use the mem= option to get the install past the EDD probe, but it seemed to install successfully. Now on boot it goes all the way through the "filling icon" progress meter, then switches to a completely black screen with an X pointer cursor that responds to mouse movement, but nothing else happens. Ctrl-Alt-F{2-5} do not switch to a console login, so the system's inaccessible.

View 10 Replies View Related

Fedora Installation :: Fc13 Boot Hang On Dell Inspiron?

Mar 18, 2011

Now, all of a sudden, after I restarted after a system update, My dell desktop inspiron hangs on boot. The kernel is: 2.6.34.8-68.fc13.i686. Not only that, but the system won't boot for any of the remaining previous kernels.

View 6 Replies View Related

Fedora Installation :: Fc14 Preupgrade To Fc15 Hang On First Boot

May 27, 2011

i have just upgraded from f14 to f15 using preupgrade. i am now still waiting for the first boot to finish. the screen is stuck for more than an hour and the last line written was:

Started LSB: Start up the OpenSSH server daemon. and there is a blinking cursor.

View 3 Replies View Related

Ubuntu :: Made Dual Boot With XP - System Freeze Or Hang Ups

Jul 15, 2011

I'm migrating from XP to Ubunta 11.04. My PC: Toshiba Sat A30-921 L/top CPU: Pentium(R) 42.84GHz RAM: 512Mb Display Adapter: ATI Radeon 9000 IGP K/board: std 102/103 PS2 Pointing Device: Alps PCMCIA Adapter: ENE CB1410 Cardbus Controller Wireless Adapter: D-LINK GDWA 610

The installation went well from start to finish. Made it dual boot with XP. Hooked in the Eth cable & went online right away. Then enabled the W/less network adapter - all OK. Using 'Classic', so it's just normal screen after boot. Problem is random 'Freeze' or 'Hang Ups'. It's hung 12 - 14 times in 2 days! K/brd T/pad frozen out. Only recovery is to use master power switch & reboot. NEVER hung in XP in 7 years! (done other bad things though) Does Ubunta have switch like Cntrl + Alt + Delete in Win?

Tried many combinations but to no avail. I've tried quite a few Linux flavours (from Live CD) & they all displayed the same fault!! Before it hangs, I've been able to browse around Ubunta Apps: Places: System: Firefox: Internet: etc. Where do I start to track the problem down? I'm vaguely familiar (XP) with Terminal & cmd line processor but dont know any of the codes used.

View 2 Replies View Related

CentOS 5 :: Hang At Boot After Fresh Install Of 5.2 (Starting Xend)

Apr 15, 2009

I just finished installing CentOS 5.2 x86_64 on a Dell Dimension 3100 (Pentium 4 with 64-bit support). On the first boot, after completing the final config steps (firewall, SELinux, time server, etc), the boot hangs on "Starting xend:". I have completed a successful installation on another Dell machine (different processor), with the same installation options (I recorded all of the steps and followed them for the second installation).

My boot commands in grub are:

root (hd0,0)
kernel /xen.gz-2.6.18-128.el5
module /vmlinuz-2.6.18-128.el5xen ro root=LABEL=/1 rhgb quiet
module /initrd-2.6.18-128.el5xen.img

View 7 Replies View Related

Fedora Security :: FC11, SELinux, And Initrd No-boot Scenario And Resolution?

Jul 16, 2009

So, I had fun with this one the past week. I had an FC11 system running just fine. Then one day it would not boot - it was hung somewhere inside the init script of the initrd image. CTRL-ALT-DEL would reboot the system. Using grub editor, I could temporarily delete the initrd line and boot into the system OK. But what was going on?

mkinitrd was of no help to me. I even did a yum update, which got a new kernel, which also generated a new initrd - no joy. I extracted the initrd file system and edited the init script. I eventually hit on this tidbit: If I commented out this line:

daemonize --ignore-missing /bin/plymouthd and rebuild the initrd image - the system would finally at least tell me what the problem was: mount failed for selinuxfs on /selinux. No such file or directory.

So, I examine the root (the real root, not the initrd temporary root) - and sure enough, no /selinux. I make one and reboot. The system goes into a "targeted policy relabel" operation, reboots, and I am back in business - even with my original, unmodified, initrd.

I have no idea what happened to my /selinux directory, but I think the initrd "init" script needs to check for this directory's existance, and make it if necessary. Or at least report that it isn't there. In FC11 right now the system just HANGS without this directory being present, without any clue as to what the problem is!

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved