LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-14-2012, 09:34 PM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Rep: Reputation: 32
Grub issues


Hi all

having some issues with grub on Ubuntu 12.04 I'm at a lost

running windows 7 on /dev/sda1 and Ubuntu on /dev/sdb1 as a dual boot system

I've done alittle research to try help my current issue with no luck
http://www.howopensource.com/2012/05...4-live-cd-usb/

Can any one help me out please.

Code:
            Boot Info Script 0.61-git-patched      [23 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 1 for /boot/grub.
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos1)/boot/grub on this drive.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe 
                       /ntldr /NTDETECT.COM

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 12.04 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *             63    78,140,159    78,140,097   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 40.0 GB, 40023850496 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78171583 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048    78,170,111    78,168,064  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        8C3C13663C134A9A                       ntfs       
/dev/sdb1        e87ab478-94a8-457c-8600-d3a9e2332499   ext4       
/dev/sr1                                                iso9660    Ubuntu 12.04 LTS i386

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sr1         /cdrom                   iso9660    (ro,noatime)


=========================== sdb1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root e87ab478-94a8-457c-8600-d3a9e2332499
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd1,msdos1)'
  search --no-floppy --fs-uuid --set=root e87ab478-94a8-457c-8600-d3a9e2332499
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=10
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="$1"
	if [ "$1" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root e87ab478-94a8-457c-8600-d3a9e2332499
	linux	/boot/vmlinuz-3.2.0-23-generic-pae root=UUID=e87ab478-94a8-457c-8600-d3a9e2332499 ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root e87ab478-94a8-457c-8600-d3a9e2332499
	echo	'Loading Linux 3.2.0-23-generic-pae ...'
	linux	/boot/vmlinuz-3.2.0-23-generic-pae root=UUID=e87ab478-94a8-457c-8600-d3a9e2332499 ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-23-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root e87ab478-94a8-457c-8600-d3a9e2332499
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root e87ab478-94a8-457c-8600-d3a9e2332499
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 8C3C13663C134A9A
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sdb1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=e87ab478-94a8-457c-8600-d3a9e2332499 /               ext4    errors=remount-ro 0       1
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
--------------------------------------------------------------------------------

=================== sdb1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

  20.204139709 = 21.694029824   boot/grub/core.img                             1
  20.165428162 = 21.652463616   boot/grub/grub.cfg                             1
   1.045375824 = 1.122463744    boot/initrd.img-3.2.0-23-generic-pae           2
   0.399414062 = 0.428867584    boot/vmlinuz-3.2.0-23-generic-pae              2
   1.045375824 = 1.122463744    initrd.img                                     2
   0.399414062 = 0.428867584    vmlinuz                                        2


ADDITIONAL INFORMATION :
=================== log of boot-repair 2012-05-15__01h14 ===================
boot-repair version : 3.18-0ppa13~precise
boot-sav version : 3.18-0ppa31~precise
glade2script version : 0.3.2.1-0ppa7~precise
internet: connected
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 137 not upgraded.
dpkg-preconfigure: unable to re-open stdin: No such file or directory
boot-repair is executed in live-session (Ubuntu 12.04 LTS , precise , Ubuntu , i686)

=================== OSPROBER:
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sdb1:Ubuntu 12.04 LTS (12.04):Ubuntu:linux

=================== BLKID:
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="8C3C13663C134A9A" TYPE="ntfs"
/dev/sdb1: UUID="e87ab478-94a8-457c-8600-d3a9e2332499" TYPE="ext4"
/dev/sr1: LABEL="Ubuntu 12.04 LTS i386" TYPE="iso9660"


2 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS.



=================== /mnt/boot-sav/sdb1/etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"




=================== PARTITIONS & DISKS:
sda1	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	is-os,	not-on-gpt-disk,	part-has-no-fstab,	ntldr,	haswinload,	no-recov-nor-hid,	bootmgr,	no-grldr,	Boot/BCD,	nopakmgr,	nogrubinstall,	/mnt/boot-sav/sda1.
sdb1	: sdb,	not-sepboot,	grubenv-ok	grub2,	grub-pc,	update-grub,	32,	with-boot,	is-os,	not-on-gpt-disk,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	no-grldr,	no-b-bcd,	apt-get,	grub-install,	/mnt/boot-sav/sdb1.

sda	: MSDos,	not-GPT,	BIOSboot-not-needed,	has-no-EFIpart, 	63 sectors * 512 bytes
sdb	: MSDos,	not-GPT,	BIOSboot-not-needed,	has-no-EFIpart, 	2048 sectors * 512 bytes

=================== PARTED:

Model: ATA WDC WD400JB-00ET (scsi)
Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
1      32.3kB  40.0GB  40.0GB  primary  ntfs         boot


Model: ATA MAXTOR 6L040J2 (scsi)
Disk /dev/sdb: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
1      1049kB  40.0GB  40.0GB  primary  ext4         boot



                                                                          
Warning: Unable to open /dev/sr1 read-write (Read-only file system).  /dev/sr1
has been opened read-only.

                                                                          
Error: Can't have a partition outside the disk!


=================== MOUNT:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
/dev/sr1 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1 on /mnt/boot-sav/sdb1 type ext4 (rw)


/sys/block/fd0:  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda:  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 size slaves stat subsystem trace uevent
/sys/block/sdb:  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0:  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sr1:  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev:  agpgart autofs block bsg btrfs-control bus cdrom cdrom1 cdrw char console core cpu cpu_dma_latency disk dri dvd dvdrw ecryptfs fb0 fd fd0 full fuse hidraw0 hpet input kmsg log lp0 mapper mcelog mem net network_latency network_throughput null oldmem parport0 port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sdb sdb1 sg0 sg1 sg2 sg3 shm snapshot snd sr0 sr1 stderr stdin stdout uinput urandom usbmon0 usbmon1 usbmon2 usbmon3 usbmon4 usbmon5 vga_arbiter zero
/dev/mapper:  control

=================== DF:

Filesystem     Type       Size  Used Avail Use% Mounted on
/cow           overlayfs  493M  114M  380M  23% /
udev           devtmpfs   485M   12K  485M   1% /dev
tmpfs          tmpfs      197M  784K  197M   1% /run
/dev/sr1       iso9660    702M  702M     0 100% /cdrom
/dev/loop0     squashfs   673M  673M     0 100% /rofs
tmpfs          tmpfs      493M   28K  493M   1% /tmp
none           tmpfs      5.0M  4.0K  5.0M   1% /run/lock
none           tmpfs      493M   76K  493M   1% /run/shm
/dev/sda1      fuseblk     38G   12G   26G  31% /mnt/boot-sav/sda1
/dev/sdb1      ext4        38G  2.9G   33G   9% /mnt/boot-sav/sdb1

=================== FDISK:

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc6fbc6fb

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    78140159    39070048+   7  HPFS/NTFS/exFAT

Disk /dev/sdb: 40.0 GB, 40023850496 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78171583 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3a303a2f

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048    78170111    39084032   83  Linux


User choice: Is sdb (40.0GB) a removable disk? no

=================== Before mainwindow
FSCK no PASTEBIN yes WUBI no WINBOOT yes
recommendedrepair, reinstall, QTY_OF_PART_FOR_REINSTAL 1 no-kernel-purge
UNHIDEBOOT_ACTION yes (10s), noflag (sda1)
PART_TO_REINSTALL_GRUB sdb1, FORCE_GRUB all (sdb) REMOVABLEDISK no
USE_SEPARATEBOOTPART no () grub2 (0, 0 , )
UNCOMMENT_GFXMODE no ATA  ADD_KERNEL_OPTION no (acpi=off)
MBR_TO_RESTORE  ( )

=================== Actions
FSCK no PASTEBIN yes WUBI no WINBOOT no
bootinfo, nombraction, QTY_OF_PART_FOR_REINSTAL 1 no-kernel-purge
UNHIDEBOOT_ACTION no (10s), noflag (sda1)
PART_TO_REINSTALL_GRUB sdb1, FORCE_GRUB all (sdb) REMOVABLEDISK no
USE_SEPARATEBOOTPART no () grub2 (0, 0 , )
UNCOMMENT_GFXMODE no ATA  ADD_KERNEL_OPTION no (acpi=off)
MBR_TO_RESTORE  ( )
No change has been performed on your computer. See you soon!
internet: connected
pastebinit  packages needed
User refused to install pastebinit
 
Old 05-14-2012, 10:45 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,636

Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
What problem(s) are you having? Which drive is set to first boot priority? Which system are you able to boot, if any? Not much info but I see you have Grub installed to the mbr on both drives. sda mbr looks on the same drive in partition one for /boot/grub and since that is your windows partition, that won't work. If you boot from sdb it might work but there might be a problem with windows being on the second drive. Not sure what is going on but you might be able to resolve this by reinstalling Grub2 from Ubuntu to the mbr of sda pointing to sdb1 but without more info...?
 
Old 05-14-2012, 11:24 PM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Original Poster
Rep: Reputation: 32
windows 7 is the first drive Ubuntu is the 2nd drive, both fresh installs, when I run the Ubuntu 12.04 setup and install I dont get the option to install grub it just installs
then when the system reboots after installing Ubuntu i get grub rescue command line

I've lost the desktop now but I think Ubuntu was the 1st boot.

I've installed a dual boot so many times this is the 1st time I had issues, I'm not a expert on grub i normally let the system do it..

TT
 
Old 05-15-2012, 02:19 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,202

Rep: Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950
When I installed Precise (12.04) on the weekend it gave me an option on where to install grub - but I was manually assigning mount points (the "Something else" option IIRC), so that may be a differentiator.

In your predicament I would re-install grub from the liveCD as per Reinstall_from_the_LiveCD. The rest of the recovery options might also make interesting reading. For you I think these commands should suffice
Code:
sudo mount /dev/sdb1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda
This will re-install grub from the liveCD and fix the initial loader code on /dev/sda (your Windows disk). Your current grub.cfg file looks o.k. to me, so hopefully it should boot o.k. and offer you both Linux and Windows.
 
Old 05-15-2012, 03:52 AM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
While I agree that grub needs reinstalled on the MBR of at least sda (looking for the base files on sda instead of sdb) I don't think that the;
Code:
sudo grub-install --boot-directory=/mnt/boot /dev/sda
is a good idea.

This is the correct command to install grub using a RH branch distro. I am afraid that on a Debian branch distro this is going to have grub on the MBR of sda once again looking for grub files on sda when they only exist on sdb.

The command;
Code:
sudo grub-install /dev/sda
Should do the trick just fine.

Full directions for a number of ways to deal with grub/MBR problems under Ubuntu are at;
https://wiki.ubuntu.com/Grub2#Recove...20via%20LiveCD
 
Old 05-15-2012, 04:05 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,202

Rep: Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950Reputation: 2950
Allow me to disagree. And you linked to the same article ....
 
Old 05-15-2012, 04:26 AM   #7
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Original Poster
Rep: Reputation: 32
Thanks guys for the input, I'll give this ago in the morning and let you guys know how I went

TT
 
Old 05-15-2012, 06:52 AM   #8
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Original Poster
Rep: Reputation: 32
We got it going

turns out It didn't like been on IDE 2 the 2nd hdd so I put both hdd's on IDE 1 and the rom on IDE 2 fired up the PC and the grub worked, very strange, LOL

thanks for all the support guys

TT
 
  


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
GRUB issues ErrorBound Debian 5 09-02-2007 02:37 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM
Grub Issues Archer36 Slackware 2 08-24-2005 11:50 AM
GRUB Issues... chiefreborn Linux - General 3 06-23-2005 11:04 PM
GRUB issues Teilyr Linux - Newbie 6 10-25-2003 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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