LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2013, 07:26 PM   #1
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Rep: Reputation: 0
Centos 6 update now not booting


I updated to the latest version of Centos 6 via Yum and it installed a new Kernel and a lot of other programs. I did not re boot straight away and when I went to look at the PC later it was not running.

I re booted and on the screen all I get is "Boot from CD/DVD" which I thought might be that it could not see the disk ? I looked in the Bios and the disk is identified there so I don't know what to do. I have a web page on that drive and I have not backed it up for some time and I would like to get the programs back if possible.

Is there a way to boot to this drive ?
 
Old 03-10-2013, 07:43 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Hi dingo-den, I updated to latest Centos 6.4 yesterday and its fine (I'm typing this from it), so its probably not the update.
Is the HDD definitely first in the boot list in BIOS?
If so, try powering down, wait a few minutes, then open the case and re-seat the connectors.

Ultimately you could try booting from the Install DVD and selecting 'Linux Rescue', but let's hope it doesn't come to that.
 
Old 03-10-2013, 08:16 PM   #3
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
I switched it off and reset the connectors on the drive, which is a fairly new drive for this PC. I looked in the Bios and the disk is the first to boot and is still displayed in the Bios. I tried to re boot but have the same problem.

I booted to GParted and that could see the Disk so it must be the booting part of Linux that is not working.

When I installed I did not install on this PC I installed on VM and used a Virtual Disk so I do not have a DVD of Centos 6. Is it just the first Disk that I need to Burn and boot from ??

Thanks
 
Old 03-10-2013, 08:18 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
So, is this a VM that's not booting or the physical OS?
If the latter, what OS is that? I'm confused about EXACTLY what you've got there...
 
Old 03-10-2013, 08:23 PM   #5
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
It is now a Physical Drive but it was created on VertualBox and then I used Clonezilla to create a copy and put it on the phisical. It has been running fine for about three months till last night.
 
Old 03-10-2013, 08:45 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
I can think of 2 possibilities.

1. When you said you started the update and when you came back the PC was not running... Sounds like either there was a network dropout or a power dropout. In either case, that could stuff your update; could mean a re-install. If so, this time get the Centos DVDs and do it from there.
To recover your data, see next option.

2. You might be suffering from floating scsi drives http://www.bo.infn.it/alice/alice-do...ed/node34.html.

EDIT: this might be clearer: http://superuser.com/questions/27513...oblems-on-boot

Given the odd history of your system, when the updates were applied and then re-booted, it might have read the disks in a different order.
Can you remember if the recs in fstab starts with eg /dev/sda1, /dev/sda2 etc?
To get around this, the default these days is to use UUIDs (or labels) instead. This ensures the correct disk is always loaded.
You can use the blkid cmd to get UUIDs.
What you'd need for this is the install DVD (or equiv; don't know about Virtual setups) and mount the HDD(s) from the RESCUE env and check fstab.
You can also use this to rescue your data if required.

As an example, top of my fstab
Code:
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=7eaddad2-5314-40a9-9db5-c4a6c9721233 /                       ext4    defaults        1 1
UUID=18c18f7a-293c-422a-a4dc-a3d597462f04 /boot                   ext4    defaults        1 2
UUID=ec5d1d44-c2fa-4d9a-ba13-19038140b9d7 swap                    swap    defaults        0 0
http://www.linuxtopia.org/online_boo..._6_deployment/
http://www.linuxtopia.org/online_boo..._installation/

HTH

Last edited by chrism01; 03-10-2013 at 08:49 PM. Reason: Better link re floating SCSI/SATA disks
 
Old 03-10-2013, 10:11 PM   #7
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
Not having a good day. I can't seem to burn the DVD they always fail the verification and do not boot, I tried even though it said it failed. In the process of Downloading the new 6.4 DVD's to give a try.

If and when I get the DVD burned. Do I use the "install or Upgrade an Existing System" option or the "Rescue Installed System" I think that is the options ???

When I get to the Storage type how do I stop it from writing over the data that is on the disk ???

I know I should know more about this but I am a slow learner I guess
 
Old 03-10-2013, 10:37 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
How did you burn the DVDs? You must burn as img, not file(!), otherwise it won't boot.

You can try the 'Upgrade Existing' and insist if it asks about your current system looking iffy. It should only affect the OS, not your data, although a backup would have been handy to have, just in case.

To get a backup now, you'd use the Rescue option, as I said above.
I've never done a backup this way, although I have done Rescues before.

I believe the Rescue mode installs itself into RAM, so you can then use the same drive to back up to, but I'd strongly advise googling the exact procedure first...

Good Luck
 
Old 03-11-2013, 12:01 AM   #9
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
OK I didn't burn the CD correctly, but I have now. I have a CD now that will boot on another machine but it will not boot on the problem PC ?? I can boot to a CD call GParted though, on the problem PC and that runs fine, so I am starting to get very frustrated........


I did a memory test while was in GParted and that came out OK. I think I will have to take to the local Computer shop and ask for help !!!

If you can think of anything I would appresiate the help.

Thanks for help so far Chris I guess it is not easy to fix this one.
 
Old 03-11-2013, 01:05 AM   #10
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
I think I am fried. I put the disk in another computer that was working on another disk and it will not boot there and the CD will not boot on the PC with the fried disk in it.

Thanks for the help
 
Old 03-11-2013, 01:19 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
If you can put both HDDs in the ok PC, boot from the working/good HDD, then try to manually mount the bad HDD as a data disk, you might(!) be able to recover your data.

If the bad disk did die due to power or network going down, it may be ok to re-format and re-use from scratch ie its corrupted, but not dead; there's a difference
 
Old 03-11-2013, 05:03 AM   #12
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
Thanks Chris, that is what I was going to try next. I have had enough today so will do it tomorrow or the day after. I am trying to get mt web page up to all the changes I did since January as that was the last backup I had. Bad web-master, bad !!!!!

It is only looked at by a few, well very few, people each day but it keeps me busy.

I downloaded a program called Rescatux and creaed a boot disk that booted on the PC, as a last resort, but it failed to restore the GRUB. http://www.supergrubdisk.org/rescatux/

Thanks for your help I will post if loading as a data disk works
 
Old 03-14-2013, 05:14 AM   #13
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
I tried to recover the data using the drive as a second drive but could not mount it. fdisk did not see it at all, so I decided that I would blow all the data away and start again.

1. I deleted the Partition and created a new one on the drive with "GParted"
2. I created a backup from the Oracle Virtual Box server that I updated over the last two days.
3. I applied the backup to the new drive partition that I created on the PC.
4. I checked out the web page and other stuff and all seemed to be working fine. I also setup the network etc on the pc.
5. I rebooted the PC to make sure that it would come back to life and all was good.
6. I did a "YUM" update and downloaded the new Kernel and a lot of updates.
7. After all the yum jobs were complete I rebooted the PC.

I am now in the situation I was in when I put the first post on this thread. The PC will not boot after the update and just sits with the "Boot from CD/DVD :" message waiting............
 
Old 03-15-2013, 01:02 AM   #14
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
As a test I used Yum to update the VirtualBox version of Centos 6 that I used as the source for the backup that was applied to the PC. It updated without a problem and also booted up OK after the update.

So there is either a problem with using VirtualBox as the source OR the backup using CloneZilla was not 100 successful both times I did it??

The CloneZlla backup was applied to the disk OK as it booted up ok and all the web page worked fine.

I will use CloneZilla to backup the VirtualBox version that I just updated and apply that to the disk and see what happens in the coming days.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Update a CentOS 5 virtual server to CentOS 5.6 dazdaz Red Hat 4 04-10-2011 06:02 AM
centos is not booting mcs_o8_01 Linux - Newbie 1 08-19-2010 01:26 AM
Booting Centos 5.4 Issue: "CentOS CD Not found in any of the media drives. Please i g.navink Red Hat 1 04-07-2010 05:12 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 05:41 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 03:36 AM


All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration