CentOS 5 :: Can't Boot CentOS After Reinstalling Windows
Nov 27, 2010
I had Windows XP Pro 32 bit and CentOS 5.4 installed on my Dell M6400 laptop and life was wonderful. Until I had to reinstall Windows. In the process, I reformated the C: partition of the drive where the Windows operating system was installed. I was careful NOT to reformat anything else. Now I cannot boot CentOS. The drive that has both the Windows and CentOS still shows the same partitions as were there before I reinstalled Windows, namely:
NTFS (C:) 171.82 GB
/boot 102 MB
(F:) 60.96 GB
is where my CentOS partition has all of my linux data and apps. I assume /boot should be the boot partition for CentOS I use Acronis OS Selector to show the partitions to boot. Now CentOS doesn't show as an option even if I go through the process of trying to detect a CentOS boot partition using OS Selector. I have researched this in the forums but have not found anything that was of help. There was a thread from someone who had trouble booting Ubuntu on a system with Windows Vista and CentOS but I did not see anything there that looked like it would help in my situation.
I am using CentOS 5.2 with GRUB booting a software RAID configuration. The first disk is md0 and is mirrored across sda1 and sdb1.I manually re-installed grub using grub-install and the machine will no longer boot off of the HD. The grub menu comes up, I can select my kernel the machine then jumps to loading the initrd and hangs.It will go no further. I have a live DVD that can boot from the HD. If I use that to first boot from the DVD, then specifiy the HD, it shows the same grub menu and then the machine boots fine w/o the initrd hang.I have tried re-installing grub but not been able to get the machine to work again w/o the DVD.
3 partitions (in order): Windows 7, CentOS and shared data partition.
I need to increase the size of the Windows 7 partition (c:windowswinsxs seems to be something not easily remedied).
GParted didn't work in moving things around (bad sector) so I wiped out its partition (# 2 out of 3) and I was able to increase the size of the Windows 7 partition (I can reinstall CentOS easily and not much work lost).
Except ... no more grub menu (unsurprising). This incantation does allow me to boot into Windows 7.
Is there any way of rebuilding the grub menu short of reinstalling CentOS (5.5)?
I've Got one Problem with My Computer soon after success installation of when the boot-loader ask me to choose OS at CENTOS 5.4, multi boot boot-loader if i choose windows then computer tries to boot windows but fail and give the error message that there is a problem on reading the hard disk, But when i restart it and start with LINUX then computer start successful with no error message, now i do not know what to do cause i need to use Windows and all my programs are in windows..
I am having a hardware problem with my samba server. It is on an Tyan AMD motherboard, (Tyan S2469), and it appears the board has gone bad. Is it possible to transfer the drives onto my Tyan S2735 mother board without a complete reinstall? I really need to save the data on the system.
i am having ubuntu 8.04. i have installed windows 7 but i am not able to boot into ubuntu 8.04. i have new version of ubuntu 9.10 in CD. does reinstalling the new ubuntu will overwrite my all previous data which i had in older version of ubuntu?
I've re-installed Windows and now can't boot xubuntu 9.1. I've looked at: [URL]. I did the the fdisk -l and tried mounting each of the partitions but I couldn't mount sda4 which I think is the partition that my xubuntu is located on. A clue that this is the partition is that it is the only one of type extended as I saw in gparted. It was also the only one apart from sda5 that I wasn't able to mount and sda5 I think was an old USB partition. Anything else I could try or are you going to need the output of "fdisk -l" to get a fuller picture.
I'm about to reinstall Windows XP on a system that I also have Ubuntu installed on. I'm a bit confused how the boot loader works in a dual boot system. After reinstalling XP will I have to do something, like reinstalling GRUB somehow?
1 I have 2 SATA drives - The first (/dev/sda) is a Windows only drive The second (/dev/sdb) has a Linux Partition + Swap (sdb1 and sdb2) of 40GB and the rest is an ntfs partition(sdb3)
I used to have Ubuntu on the Linux partition that nicely detected Windows, installed the bootloader on sda and correctly set up the boot options, everything "Just worked"!
Since I'm studying for RHCT I decided to wipe Ubuntu for CentOS, Centos also nicely detected an "Other" operating system, but it decided to install the bootloader to sdb. After a few minutes of frustration I realised this had happened and changed the BIOS to boot sdb instead of sda. While GRUB now happily boots CentOS, When I select Windows it just hangs.
I tried grub-install /dev/sda and changing the BIOS to boot sda, all I got was GRUB GRUB GRUB printed on the screen and then nothing happens.
get both OSes to boot? I suspect that windows doesn't like it if the bootloader is on a different drive to it's own partition.
UPDATE
It's OK I tried again to grub-install /dev/sda and changed the /boot/grub/device.map file and reversed the hd0 and hd1 entries, i then edited the menu.lst file and did the same, it now boots both OSes ok. The only downside is the nice CentOS background is missing in Grub now :)
I have Windows XP installed. And I also plan to install CentOS 5.4.I have two hard drives. Hitachi 500 GB and WD 500 GB.Windows XP is intalled on first drive And I plan to install Linux on Second drive. And since i find some contradicting and not understood by me posts. I have to be sure what to do. I can install Linux, then i can edit grub. and add there something like:
title Windows map (hd0) (hd1) map (hd1) (hd0) root (hd1,0) chainloader +1
When its on one drive as I understand it will definately work. But if its on 2 different drives. There is a problem that windows doesn't boot from secondary drive. So I find this article witch i cannot understand. Do i have to understand it? Or its wrong and bad decision.
[URL]
I have no RAID.After all what is step by step process of creating bootable CentOS and Windows situated on different hard drives drives?
This will be a little long (having read Phil's 'how to ask questions' FAQ). I'm trying to get OpenVPN working between my CentOS server and some Windoze laptops running XP. There seems to be plenty of sample config files available, but to date, none of them have worked for me. Pulling out my trusty Wireshark, I've found some clues,
BACKGROUND: My local subnet (NAT'ed by my gateway router) is 192.168.52.x. My router has been configured with a conduit (port-forward) for port 1194 (the standard OpenVPN port), which points towards my CentOS server.The CentOS server is .52.112, and the supplicant is .52.110. I have tried the lient both inside and outside my local subnet, with no difference in events or outcomes.
i find this is an issue which might be tiresome for everyone except for those experts. Esp. for the computers which are dual booting(both windows xp and centos installed in the same computer), that when we are in CentOS we need to switch onto windows immediately. and vice versa. i see this is possible only by shutting down the centos/windows and then restarting onto the other OS.
Can anyone tell me the the solution to work simultaneously both xp and centos without the need of shutting down and restarting There maybe or may not be the solution...but i find the pleasure to know if there is for example, remote desktop connection in windows xp, is there any solution, we can work on windows via centos or vice versa ( in the same machine),
linux and a good thing to start is to install centos in my pc together with windows xp. please help me on how to dual boot Centos 5.0 and Windows XP pro step by step.
i have windows xp with ntfs partitions on my laptop i want to install centos on it will i be able to dual boot centos with windows xp on the ntfs partition
I have read some stuff but none seemed to work such as putting default=saved and in the window (other) section putting savedefault. hmm I know I can just specify the number after default but that breaks when a new kernel is installed. so any way to always make windows the default choice (so my wife will stop moaning
We are slowly migrating from a predominantly Windows house to a 50/50 Win/RHEL operation and even further in the future.Currently, we have a LOT of Windows folders that are created by custom applications which, upon creation of a new folder set, applies the corresponding ACL so that only the associated groups are able to access the folders. Now for the problem, we are migrating the applications to a RHEL55 environment and it is creating the folders on that system now but the groups are still residing in the Windows AD. Is there an "easy" (I know, a very relative term) to have the Windows groups given permission to the Linux shares without very much manual intervention?
I am wondering what is the fastest way for me to move files from a VPS running CentOS to my home PC? I do not have FTP or anything like that installed. Are there commands I can enter in putty, for example, that will simply download an entire directory on the VPS onto my home PC?
I'm experimenting with CentOS DS and have a question.Is it possible to attach windows xp machines to a CentOS DS? If so, how?!I think I've skimmed most of the documentation out there. Did I miss something? Is this not what the DS was designed to do?
I am trying to configure a system to boot Windows XP, CentOS 4 and RHEL5. I have one hard drive that contains both Windows XP and CentOS 4, and a separate drive that contains RHEL5. Until recently, I only had one SATA cable, so I could only connect one drive at a time. Under this configuration, everything works fine. When the RHEL5 drive is connected, I can boot into it. When the Windows/CentOS drive is connected, I can dual-boot into either OS. (GRUB was configured on this drive automatically when I installed CentOS into a new partition.)
Opening the box and moving the SATA cable is a lot of trouble, so I finally got a second SATA cable and enabled both SATA0 and SATA1 in the BIOS. I currently have the Windows/Centos drive as the primary, and I can still boot into both Windows/Centos. Now, I want to add RHEL5 to menu, but I can't find the file GRUB is using to present its menu at startup.
I have configured GRUB before on other systems, but I just know the very basics, such as where the grub.conf file should be. So, I spent a whole day reading advice online and asking friends who might have experience with these issues. Here are the steps I have taken so far:
I confirmed there is no /boot/grub directory, and /etc/grub.conf is a broken soft-link to /boot/grub/grub.conf. I did a find for grub.conf, which found nothing. I did a find for menu.lst, which found one item -- an example GRUB config file in /usr/share/doc/grub-0.95. I noticed that when CentOS boots, I see the GRUB commands printed to the screen, the first of which is:
root (hd0,2)
So, I did a grep -R "(hd0" * at the / directory, which also found only one item -- the example menu.lst file in /usr/share/doc/grub-0.95. I discovered that I can go to the command line grub from the grub menu and do:
cat (hd0,2)/grub/grub.conf
The cat command returns a printout of the grub configuration the system is obviously using. I didn't create this file, but the titles are identical to what I see in the GRUB menu, the default boot is Windows, and the timeout is very short. This must be the file. It looks like:
default=2 timeout=5 splashimage=(hd0,2)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.9-89.ELsmp)
[Code].....
I've also tried making the RHEL5 drive the primary drive. In that case, I can modify the existing /boot/grub/grub.conf file and see my changes at the GRUB boot menu. However, I can't get Windows to boot in this configuration. I've done a lot of google searching on the topic and added map commands to make Windows think it is on the primary drive. But, I'm still unsuccessful on this front as well. I think I'm closer to solving the problem with Windows/CentOS as the primary. However, if you think I will have more success with RHEL5 as the primary drive, I can provide more details as to my current grub.conf on that drive in a later post.
I have a pre-existing setup with Windows XP Professional and CentOS5.5 on a dual boot setup with the Linux drive setup as the primary drive hosting the grub menu.
I am replacing these machines with new updated ones and they have windows setup on a RAID0. I think it would be easiest to follow my previous setup and move the RAID to secondary SATA ports and put the linux drive on the primary SATA port, or should I just change the boot order in the BIOS to have the secondary linux drive boot first?
can I move a RAID setup to secondary controller ports without breaking the RAID?
I just upgraded by box from Fedora Core 9 to Centos 5.2. Finally!I have a 500GB SATA drive, it's partitioned into three equal size slices, hda1 through 3. The old Fedora was on hda1, I installed the new Centos on hda3. I instructed the installer to write the MBR to /dev/hda, not /dev/hda3. Fdisk says I have sector 0 unused.First, the system wouldn't boot - it just looped through the BIOS, rebooting over and over again. The BIOS sees the disk, but it never loaded Grub. I tried re-running grub-install /dev/hda, and not I get a Grub Error 17 after stage 1.5 loads.
I can boot from rescue OK, the grub.conf man menu.lst look fine, it's pointing to "root (hd0,2)". It's either the BIOS that can't find the MBR, or the MBR can't find Grub.When I looked at the disk with fdisk after the install, hda1 was still marked bootable, hda3 was not, so I swapped bootable flags but that has not made a difference. I also appended the new grub to the old grub thinking I could get the MBR (if it is there) to load the old grub and thence find the new Centos, but that didn't work either.Mobo is an old Shuttle AK35.Any ideas? Did I mess up by not telling the system to put the MBR on /dev/hda3? Is there a way to fix this without reinstalling?
I have successfully installed CentOS 5.4, and after choosing it from the GRUB menu, I am getting the following error message:1706-Smart Array Controller Extended BIOS Data Area Memory Corrupted. Int 13h BIOS Cannot Continue - System Halted.I'm using two SAS disks that came along with the server, left the default RAID configuration (1+0) on a P410 controller
Ive installed centos freebsd and mandriva but i want to manage grub from my centos and y create successfully a boot load for freebds. But for mandriva it just doesnt work... so how can a create a boot load entry for mandriva from grub centos?
I have a laptop that came with Windows Vista (64-bit) installed. I created a new partition and installed XP (also 64-bit) alongside it.Last night I shrunk my XP partition and created another new partition and installed Linux (CentOS 64-bit) on it. I made an error in judgment and didn't allocate enough space, so I need about 10 more gigs for the Linux partition. It boots up and runs, but I need about 10 more gigs of storage for the files I want to keep on the partition (and yes, they have to be on the partition, I definitely need to know how to do this, not a workaround)I went into Vista and shrunk the XP partition by 10 gigs, so now I have 10 gigs of free, non-partitioned space.
As it stands, when I start up the computer I get the GRUB boot loader. I can boot my Linux install or choose "Other" and be taken to the Vista boot loader. From there I can choose XP or Vista to boot.So, my question is... what is the best way to append the 10 gigs of free space to the Linux partition? Is this something I should do inside of Linux? I have the option to do it in Vista, but the partition shows up as "healthy" but without a file system type.I just don't want to screw up the boot loader, partitions or anything else.This isn't my area of expertise, so if anyone could give me a good suggestion or solid answer
have all ways been hiding in the background read not say a thinglets start well i look after 2 dell poweredge 2650 with 12 gig ram installed servers has been running fine onwell i though it was time to upgrade to 5 all went fine till reboot Memory for crash kernel (0x to 0x) not within permissible range ! well what i have been reading this is the norm for now What is mean by ignore it? LoLwell so i did the system keeps boot till i get to this linesbin/mingetty: /sbin/mingetty: cannot execute binary file alot, and it shows. INIT: Id "5" respawning too fast: disabled for 5 minutes ...so maybe its a memory issue so took 8 gig out left 4 in the system now it reboot alls good with only 4 gig of ram installed so is there a way to fix it to use all the ram can i get the system boot on 4 gig and then add the 8gig later on
I have a small network with my Centos 5.6 box and a Win XP PC on it.I can access the files on the PC from the Centos box by bringing up the RUN window (ALT-F2 in Gnome) and typing smb://192.168.1.X/C (where X is the address of the PC), and I get a window with the C: drive from my PC. I can then drag/drop files between the Centos box and the PC. Here are my questions:
1) I want to script the file transfer, so how do I do this from the command line?
2) On the PC, I have 2 drives C, and E. They appear to be set up the same, but the E drive looks empty when I do this using the interactive method above.
I found this tutorial http:[url]..... but I can't get my PC "visible" in the smbtree.Really, I just want to write a script that does a backup on the Centos box and copies it to the E (External) Drive on the PC. (I'm a novice when it comes to administration)
I am trying to install CentOS 5.2 on an HP rp5700 desktop unit. These units were originally sold as a Point of Sales unit I believe, but HP also markets it as a high life cycle server for SMB market.I tried to load CentOS on this unit via CD (created from downloaded ISO of course). It presents the initial CentOS banner page and waits for the obligatory "enter" to continue. It begins the boot process up to discovering the PCI stuff and just locks up, no response. I have to power down to restart.Since this does not even get to the point of installing. I am at a loss what to do next. Has anyone had a similar issue with other PCs.The boot stops at the lineACPI: PCI Root Bridge [PCI0] (0000:00)
I had a sata drive go down on my software raid array a couple days ago..After replacing the defective drive, I rebuilt it using fdisk to set partitions and mdadm to add the drive back into the raid array.After getting md2 to mount to /mnt I copied the /mnt/etc/fstab and /mnt/etc/mdadm.conf to the /etc directory and rebooted..When I boot, my /dev/md2 partition is not mounting to / It is not loading all of the services at boot time it should.. the size of /dev/md2 on / is even wrong.. it should be about 1.3TBwhen I manually mount /dev/md2 to /mnt I can access all of my data, through /mnt/var/www/vhosts and so on.. I am at a loss, why is the machine booting to this craziness?All of my data, that I know of can be accessed when md2 is mounted to /mnt[root@ESS000272 etc]# cat mdadm.conf
# mdadm.conf written out by anaconda DEVICE partitions MAILADDR root
i want to change my server to a intel d510mo withoutchanging the installation.The old nstallation runs on a centos 5.4 asus amd board witha sata raid, sata-sil adapter in no raid modus.and that is the problem.i boot the centos on the intel board, and only the sata-sil module is loaded, so noata drive is found.How can i change this? udev? i disabled the scsi-hostadapter in modprobe.conf, but no