Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows/Linux dual-boot imaging using Macrium


12 Aug 2012   #51

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
Can you boot linux by marking sda2 (the linux partition) as active? Mark original parition as active to restore settings as they were. Post results
Hi,

I'm really sure how to do that.....from within Linux? Partition Wizard?


My System SpecsSystem Spec
.

12 Aug 2012   #52

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Partition Wizard
Partition - Mark as Active method 3
My System SpecsSystem Spec
12 Aug 2012   #53

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
Can you boot linux by marking sda2 (the linux partition) as active?
Nope, doesn't boot.

Code:
Booting...
Missing operating system_
I'm starting to conclude that a dual-boot can't be successfully restored from a Macrium image. Would you agree?
My System SpecsSystem Spec
.


13 Aug 2012   #54

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Golden View Post
Quote   Quote: Originally Posted by Kaktussoft View Post
Can you boot linux by marking sda2 (the linux partition) as active?
Nope, doesn't boot.

Code:
Booting...
Missing operating system_
I'm starting to conclude that a dual-boot can't be successfully restored from a Macrium image. Would you agree?
Don't agree! Neogrub find core.img on linux partition and "boots from that partition". But now you made linux partition active and it boots directly from linux partition.

But linux hasn't a valid "volume bootsector"!!! Who/why did clear/corrupt linux boot sector?
My System SpecsSystem Spec
13 Aug 2012   #55

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

https://help.ubuntu.com/community/Boot-Repair
Place GRUB in sda2 (the name of linux partition), so not in MBR.

My System SpecsSystem Spec
13 Aug 2012   #56

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
Don't agree! Neogrub find core.img on linux partition and "boots from that partition". But now you made linux partition active and it boots directly from linux partition.
Perhaps you misunderstood? Marking the Linux partition active does not allow the computer to boot, as per my message above.

Quote   Quote: Originally Posted by Kaktussoft View Post
Who/why did clear/corrupt linux boot sector?
I have no idea - that's what I am trying to determine. Recall the original problem:

1. Fully-functional dual boot working 100% without any trouble
2. Macrium used to create two separate images of Windows and Linux
3. Disk wiped and images restored in exactly the same sequence as they were created

Windows boots, Linux does not - I'm trying to work out why that is. I'm not trying to fix the Linux boot issue manually - I'm trying to work out why I can't simply restore the images to the same state as in step 1 above.

Regards,
Golden
My System SpecsSystem Spec
13 Aug 2012   #57

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Just do a boot-repair of unix. Does it boot to linux then? If so make a new image, delete linux and restore. It should work.... it just looks for core.img partition and boots from it. Then the linux startup is defined by th UUID and should work. Just try it again and prove it's really macrium that causes the problem
My System SpecsSystem Spec
16 Aug 2012   #58

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Good call - I forced GRUB to sda2, and Linux now chainloads correctly. This is the repair file results:

Code:
         Boot Info Script 0.61-git Boot-Repair log      [4 July 2012]


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

 => Windows is installed in the MBR of /dev/sda.
 => Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdb.

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

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda2 
                       and looks at sector 131415765 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       for (,msdos2)/boot/grub on this drive.
    Operating System:  Linux Mint 13 Maya
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda6: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP: NTFS
    Boot sector info:  According to the info in the boot sector, sda6 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sda7: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP: NTFS
    Boot sector info:  According to the info in the boot sector, sda7 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.03 2010-10-22 ........>..sr>..........9...0...~.....~...f...M.f.f....f..0~....>E}.u......
    Boot sector info:  Syslinux looks at sector 765504 of /dev/sdb1 for its 
                       second stage. SYSLINUX is installed in the  directory. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /syslinux.cfg /ldlinux.sys

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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   105,836,218   105,836,156   7 NTFS / exFAT / HPFS
/dev/sda2         105,836,221   191,446,716    85,610,496  83 Linux
/dev/sda3         191,449,025   976,768,064   785,319,040   f W95 Extended (LBA)
/dev/sda5         191,449,088   199,639,039     8,189,952  82 Linux swap / Solaris
/dev/sda6         199,639,818   905,487,659   705,847,842   7 NTFS / exFAT / HPFS
/dev/sda7         905,487,723   976,768,064    71,280,342   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31266816 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    *             32    31,266,815    31,266,784   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        01CD70365DED7380                       ntfs       Windows 7
/dev/sda2        c44d0292-2966-4537-bbe8-4603b3de2c48   ext4       
/dev/sda5        d1ba8d36-22e9-4fe9-883f-ce6363d822a5   swap       
/dev/sda6        01CD75B43309DD60                       ntfs       Data
/dev/sda7        01CD72C005310B80                       ntfs       Recovery
/dev/sdb1        0A11-BEF6                              vfat       

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

Device           Mount_Point              Type       Options

/dev/sdb1        /live/image              vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro)


=========================== sda2/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='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root c44d0292-2966-4537-bbe8-4603b3de2c48
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos2)'
  search --no-floppy --fs-uuid --set=root c44d0292-2966-4537-bbe8-4603b3de2c48
  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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_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 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/sda2)' --class linuxmint --class gnu-linux --class gnu --class os {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root c44d0292-2966-4537-bbe8-4603b3de2c48
    linux    /boot/vmlinuz-3.2.0-23-generic root=UUID=c44d0292-2966-4537-bbe8-4603b3de2c48 ro   quiet splash $vt_handoff
    initrd    /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/sda2) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root c44d0292-2966-4537-bbe8-4603b3de2c48
    echo    'Loading Linux 3.2.0-23-generic ...'
    linux    /boot/vmlinuz-3.2.0-23-generic root=UUID=c44d0292-2966-4537-bbe8-4603b3de2c48 ro recovery nomodeset 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-3.2.0-23-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### 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='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root c44d0292-2966-4537-bbe8-4603b3de2c48
    linux16    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root c44d0292-2966-4537-bbe8-4603b3de2c48
    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 01CD70365DED7380
    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 ###
--------------------------------------------------------------------------------

=============================== sda2/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/sda7 during installation
UUID=c44d0292-2966-4537-bbe8-4603b3de2c48 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda8 during installation
UUID=d1ba8d36-22e9-4fe9-883f-ce6363d822a5 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             boot/grub/core.img                             1
            ?? = ??             boot/grub/grub.cfg                             1
            ?? = ??             boot/initrd.img-3.2.0-23-generic               1
            ?? = ??             boot/vmlinuz-3.2.0-23-generic                  1
            ?? = ??             initrd.img                                     1
            ?? = ??             vmlinuz                                        1

============================== sdb1/syslinux.cfg: ==============================

--------------------------------------------------------------------------------
default menu.c32 
prompt 0 
menu title UNetbootin 
timeout 100 
 
label unetbootindefault 
menu label Default 
kernel /ubnkern 
append initrd=/ubninit boot=live config   quiet 
 
label ubnentry0 
menu label ^Help 
kernel /ubnkern 
append initrd=/ubninit  
 
label ubnentry1 
menu label 32bits session 
kernel /live/vmlinuz 
append initrd=/live/initrd.img boot=live config   quiet 
 
label ubnentry2 
menu label 64bits session 
kernel /live/vmlinuz2 
append initrd=/live/initrd2.img boot=live config   quiet 
 
label ubnentry3 
menu label 32bits session (failsafe) 
kernel /live/vmlinuz 
append initrd=/live/initrd.img boot=live config   noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal 
 
label ubnentry4 
menu label 64bits session (failsafe) 
kernel /live/vmlinuz2 
append initrd=/live/initrd2.img boot=live config   noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal 
 
label ubnentry5 
menu label Memory test 
kernel /live/memtest 
append initrd=/ubninit  
 
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             ldlinux.sys                                    1
            ?? = ??             menu.c32                                       1
            ?? = ??             syslinux.cfg                                   1

============== sdb1: Version of COM32(R) files used by Syslinux: ===============

 menu.c32                           :  COM32R module (v4.xx)

=============================== StdErr Messages: ===============================

File descriptor 7 (pipe:[6500]) leaked on lvscan invocation. Parent PID 10416: bash
File descriptor 8 (pipe:[6500]) leaked on lvscan invocation. Parent PID 10416: bash
  No volume groups found
mdadm: No arrays found in config file or automatically

ADDITIONAL INFORMATION :
=================== log of boot-repair 2012-08-16__19h16 ===================
boot-repair version : 3.18-0ppa41~lucid
boot-sav version : 3.191-0ppa49~lucid
glade2script-gtk2 version : 0.0.1-0ppa4~lucid
boot-sav-nonfree version : 3.18-0ppa14~lucid
File descriptor 7 (pipe:[6500]) leaked on lvs invocation. Parent PID 3901: /bin/sh
File descriptor 8 (pipe:[6500]) leaked on lvs invocation. Parent PID 3901: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 17.07.2012 , squeeze , Debian , x86_64)
CPU op-mode(s):        32-bit, 64-bit

=================== os-prober:
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda2:Linux Mint 13 Maya (13):LinuxMint:linux

=================== blkid:
/dev/sda1: LABEL="Windows 7" UUID="01CD70365DED7380" TYPE="ntfs"
/dev/sda2: UUID="c44d0292-2966-4537-bbe8-4603b3de2c48" TYPE="ext4"
/dev/sda5: UUID="d1ba8d36-22e9-4fe9-883f-ce6363d822a5" TYPE="swap"
/dev/sda6: LABEL="Data" UUID="01CD75B43309DD60" TYPE="ntfs"
/dev/sda7: LABEL="Recovery" UUID="01CD72C005310B80" TYPE="ntfs"
/dev/sdb1: UUID="0A11-BEF6" TYPE="vfat"
/dev/loop0: TYPE="squashfs"


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

Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.


=================== sda2/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"





=================== sda2/etc/grub.d/ :
drwxr-xr-x 2 root root    4096 Aug  5 02:18 grub.d
total 76
-rwxr-xr-x 1 root root 6715 Apr 17 18:20 00_header
-rwxr-xr-x 1 root root 5522 Apr 17 17:57 05_debian_theme
-rwxr-xr-x 1 root root 1183 Oct 23  2011 06_mint_theme
-rwxr-xr-x 1 root root 7500 Aug  5 03:04 10_linux
-rwxr-xr-x 1 root root 7500 Aug  5 01:51 10_linux.dpkg-old
-rwxr-xr-x 1 root root 6693 Jan 18  2012 10_lupin
-rwxr-xr-x 1 root root 6335 Apr 17 18:20 20_linux_xen
-rwxr-xr-x 1 root root 1588 Nov 27  2011 20_memtest86+
-rwxr-xr-x 1 root root 7603 Apr 17 18:20 30_os-prober
-rwxr-xr-x 1 root root  214 Apr 17 18:20 40_custom
-rwxr-xr-x 1 root root   95 Apr 17 18:20 41_custom
-rw-r--r-- 1 root root  483 Apr 17 18:20 README




=================== dmesg | grep EFI :
BIOS is probably not EFI-compatible, and probably not setup in EFI-mode for this live-session.




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

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

=================== parted -l:

Model: ATA ST9500325AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
1      32.3kB  54.2GB  54.2GB  primary   ntfs            boot
2      54.2GB  98.0GB  43.8GB  primary   ext4
3      98.0GB  500GB   402GB   extended                  lba
5      98.0GB  102GB   4193MB  logical   linux-swap(v1)
6      102GB   464GB   361GB   logical   ntfs
7      464GB   500GB   36.5GB  logical   ntfs


Model: SanDisk Cruzer (scsi)
Disk /dev/sdb: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
1      16.4kB  16.0GB  16.0GB  primary  fat32        boot, lba


=================== mount:
aufs on / type aufs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sdb1 on /live/image type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro)
tmpfs on /live/cow type tmpfs (rw,noatime,mode=755)
tmpfs on /live type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type ext4 (rw)
/dev/sda6 on /mnt/boot-sav/sda6 type fuseblk (rw,allow_other,blksize=4096)
/dev/sda7 on /mnt/boot-sav/sda7 type fuseblk (rw,allow_other,blksize=4096)


=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda5 sda6 sda7 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered):  alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  block bsg btrfs-control bus cdrom cdrw char console core cpu_dma_latency disk dvd dvdrw fd full fuse hidraw0 hidraw1 hidraw2 hpet initctl input kmsg log MAKEDEV mcelog md mem net network_latency network_throughput null port ppp psaux ptmx pts random rtc rtc0 scd0 sda sda1 sda2 sda3 sda5 sda6 sda7 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sndstat sr0 stderr stdin stdout urandom usb v4l vga_arbiter video0 xconsole zero
ls /dev/md:
ls /mnt/boot-sav/sda1: Windows Users Information Volume System rescuepe.log $Recycle.Bin Recovery (x86) Files Program Files Program ProgramData PerfLogs pagefile.sys NST MGADiagToolOutput Intel hiberfil.sys Settings and Documents boot-sav bootmgr Boot ANG0

=================== df -Th:

Filesystem    Type    Size  Used Avail Use% Mounted on
aufs          aufs    1.9G  7.3M  1.9G   1% /
tmpfs        tmpfs    1.9G     0  1.9G   0% /lib/init/rw
udev         tmpfs    1.9G  208K  1.9G   1% /dev
tmpfs        tmpfs    1.9G     0  1.9G   0% /dev/shm
/dev/sdb1     vfat     15G  358M   15G   3% /live/image
tmpfs        tmpfs    1.9G  7.3M  1.9G   1% /live/cow
tmpfs        tmpfs    1.9G     0  1.9G   0% /live
tmpfs        tmpfs    1.9G  8.0K  1.9G   1% /tmp
/dev/sda1  fuseblk     51G   20G   31G  40% /mnt/boot-sav/sda1
/dev/sda2     ext4     41G  3.5G   35G   9% /mnt/boot-sav/sda2
/dev/sda6  fuseblk    337G   98M  337G   1% /mnt/boot-sav/sda6
/dev/sda7  fuseblk     34G   26G  8.7G  75% /mnt/boot-sav/sda7

=================== fdisk -l:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb009ff43

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        6588    52918078    7  HPFS/NTFS
/dev/sda2            6589       11918    42805248   83  Linux
/dev/sda3           11918       60801   392659520    f  W95 Ext'd (LBA)
/dev/sda5           11918       12427     4094976   82  Linux swap / Solaris
/dev/sda6           12428       56364   352923921    7  HPFS/NTFS
/dev/sda7           56365       60801    35640171    7  HPFS/NTFS

Disk /dev/sdb: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0cd9a9b2

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1947    15633392    c  W95 FAT32 (LBA)



=================== Default settings
recommendedrepair
This setting would reinstall the grub2 of sda2 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s

=================== Settings chosen by the user
customrepair
This setting will reinstall the grub2 of sda2 into the PBR of sda2.
Additional repair will be performed: unhide-bootmenu-10s



Reinstall the GRUB of sda2 into the sda2 partition
grub-install.real (GRUB) 1.99-21ubuntu3.1
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition.  This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install  /dev/sda2: Installation finished. No error reported.
exit code of grub-install /dev/sda2:0
chroot /mnt/boot-sav/sda2 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Unhide GRUB boot menu in sda2/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to update your main bootloader!
Please connect internet. Then close this window.
So, what do you think happened? Something odd with the boot/chain loading during image restore?
My System SpecsSystem Spec
16 Aug 2012   #59

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda2
and looks at sector 131415765 of the same hard drive
for core.img. core.img is at this location and looks
for (,msdos2)/boot/grub on this drive.

=>not fully correct if I read right.

sda2/boot/grub/grub.cfg says:
search --no-floppy --fs-uuid --set=root c44d0292-2966-4537-bbe8-4603b3de2c48
it simple searches for a partition with UUID c44d0292-2966-4537-bbe8-4603b3de2c48
That's unique so it doesn't matter where to put the partition and UUID is part of the partition. For example you can move/resize partition. Or move it to another physical harddrive by doing a copy/delete. This partition boots on its own for sure as long as it marked ACTIVE.

But now it is NOT marked active!! NEOGRUB entry in Windows 7 bootmgr just does a search for file core.img in folders like /boot and /boot/grub on ALL partitions. And if found it loads and runs that volume bootsector (that's called chain loading). It acts like it was marked active.

The volume boot sector is just the first sector of the partition (first 512 bytes) and is backupped and restored.

So no problem at all!!

Who the heck did clean first sector??? Of course you don't know. Try to backup/restore linux again and see if I'm right (I am LOL). If not you can always repair it the same way I told you before

Post results
My System SpecsSystem Spec
16 Aug 2012   #60

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Cool, thanks. I'll try this over the weekend:

1. Image Partition 1 - C: NTFS Windows
2. Image Partition 2+3- Linux+Swap
3. Wipe Disk
4. Restore Partition1
5. Restore Partition 2+3
6. Check that Windows/Linux boots correctly
My System SpecsSystem Spec
Reply

 Windows/Linux dual-boot imaging using Macrium




Thread Tools



Similar help and support threads for2: Windows/Linux dual-boot imaging using Macrium
Thread Forum
Dual Boot - Windows 7 and Linux Tutorials
Dual boot Windows and Linux Ubuntu Installation & Setup
windows 7 and linux fedora dual boot with dual drives General Discussion
Macrium Users -- Linux boot CD... Cant see Windows shares/folders Backup and Restore
Linux Dual Boot System Using the Windows 7 Boot MGR Installation & Setup
Dual boot windows 7/linux (Fedora) Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:33 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33