Omega Owners Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Please check the Forum Guidelines at the top of the Newbie section

Pages: [1]   Go Down

Author Topic: linux grub hard drive help required  (Read 726 times)

0 Members and 1 Guest are viewing this topic.

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
linux grub hard drive help required
« on: 20 April 2012, 20:10:44 »

This is a continuation of my thread about my lappy killing hard drives.

I booted from a live disk yesterday and I could mount and read/write on to the disk. All the files were there too.  I think the grub mst be buggered but any grub command I tried didn't work.

I am calling on the OOF community for your expertese.  I only get an hour of internet access a day or 20mb (whichever is reached first) and the connection is poor and slow.

I could do with your help, as aways thanks in advance
Logged

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 107026
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: linux grub hard drive help required
« Reply #1 on: 20 April 2012, 21:17:16 »

could be a million and one things, from bootsector to disk corruption. Is grub in bootsector, or 1st partition?
Logged
Grumpy old man

dbug

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • Northants
  • Posts: 14279
  • Dont knock Linux!
    • Jaguar XJ 5.0V8 Portfolio
    • View Profile
    • Dbug IT Services
Re: linux grub hard drive help required
« Reply #2 on: 20 April 2012, 21:46:33 »

could be a million and one things, from bootsector to disk corruption. Is grub in bootsector, or 1st partition?

 :y
Logged
1972 Ferrari Dino, 1967 Triumph TR4A, Mondeo 2.0TDCi Estate, Jaguar XJ 5.0V8 Portfolio

Kevin Wood

  • Global Moderator
  • *****
  • Offline Offline
  • Gender: Male
  • Alton, Hampshire
  • Posts: 36417
    • Jaguar XE 25t, Westfield
    • View Profile
Re: linux grub hard drive help required
« Reply #3 on: 21 April 2012, 15:32:23 »

Boot config tends to be pretty complex in Linuces these days but you'll normally find the config for grub spread around /boot/grub, /etc/grub and /etc/grub.d possibly.

Normally you can recover it by calling grub to rewrite itself into the MBR and wherever else it lives, using the original config on your non-bootable system.

Have a look at the man pages for grub-install and grub-mkconfig for a start.

If it comes to grub-mkconfig you will have to point it where your original /boot partition has ended up mounted so it can find the original grub.cfg or whatever.

If it's frequently getting trashed it might be a sign that wherever it's living on the hard drive is getting overwritten by something else, e.g. it's also a block allocated to a filesystem / swap.

EDIT: once you do get it to boot, see if there's an update-grub script and run it as root. This will make double sure that you have the correct grub config back.
« Last Edit: 21 April 2012, 15:34:43 by Kevin Wood »
Logged
Tech2 services currently available. See TheBoy's price list: http://theboy.omegaowners.com/
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 17 queries.