Sunday, April 6, 2014

Building the next generation Cloud Simulator..

These days I spend most of my time building the distributed and concurrent cloud simulator. Lisbon is still rainy, though there were some good sunny days in between. Have a look at this complete list of current master thesis and doctoral dissertations from INESC-ID (including mine. :) ) . Previous years' dissertations also can be found using the drop-down option. An interesting collection!

Fixing the boot problems with Boot Repair Tool

Boot Repair Tool is a convenient tool written based on Lubuntu, the light-weight variant of Ubuntu OS. It is specifically useful after a dual-boot attempt. If you have followed a documentation  to dual boot Windows 8.1 and Ubuntu, in a computer that comes pre-installed with Windows, even after a successful installation of Ubuntu, you may not be able to reach your Ubuntu installation, as Windows may rather chose to start itself, without showing the options to pick from. Boot repair tool helps this problem. After fixing the boot issues, it also saves the logs to Ubuntu paste bin for reviewing later. You may view my logs below. ;) For further information and assistance, contact the developers at boot.repair@gmail.com.

 Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 31Jan2013]


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

 => No boot loader 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 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /EFI/Boot/bkpbootx64.efi /EFI/Boot/bootx64.efi 
                       /EFI/ubuntu/MokManager.efi /EFI/ubuntu/grubx64.efi 
                       /EFI/ubuntu/shimx64.efi 
                       /EFI/HP/BIOSUpdate/CryptRSA.efi 
                       /EFI/HP/BIOSUpdate/CryptRSA32.efi 
                       /EFI/HP/BIOSUpdate/HpBiosUpdate.efi 
                       /EFI/HP/BIOSUpdate/HpBiosUpdate32.efi 
                       /EFI/HP/SystemDiags/CryptRSA.efi 
                       /EFI/HP/SystemDiags/CryptRSA32.efi 
                       /EFI/HP/SystemDiags/SystemDiags.efi 
                       /EFI/HP/SystemDiags/SystemDiags32.efi 
                       /EFI/HP/boot/bootmgfw.efi /EFI/HP/boot/bootmgr.efi 
                       /EFI/HP/boot/memtest.efi 
                       /EFI/Microsoft/Boot/bkpbootmgfw.efi 
                       /EFI/Microsoft/Boot/bootmgfw.efi 
                       /EFI/Microsoft/Boot/bootmgr.efi 
                       /EFI/Microsoft/Boot/bootx64.efi 
                       /EFI/Microsoft/Boot/memtest.efi 
                       /EFI/HP/EFI/Boot/bootx64.efi

sda3: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe 
                       /ubuntu/winboot/wubildr /ubuntu/winboot/wubildr.mbr

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /boot/BCD

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda8: __________________________________________________________________________

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

sda9: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.03 2010-10-22 ........>..sr>.........%6...0...~.....~...f...M.f.f....f..0~....>E}.u......
    Boot sector info:  Syslinux looks at sector 22120160 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:        /boot/grub/grub.cfg /syslinux.cfg 
                       /EFI/BOOT/grubx64.efi /ldlinux.sys

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1 1,953,525,167 1,953,525,167  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048       821,247       819,200 Windows Recovery Environment (Windows)
/dev/sda2         821,248     1,353,727       532,480 EFI System partition
/dev/sda3       1,353,728     1,615,871       262,144 Microsoft Reserved Partition (Windows)
/dev/sda4       1,615,872   991,363,071   989,747,200 Data partition (Windows/Linux)
/dev/sda5   1,912,963,072 1,913,679,871       716,800 Windows Recovery Environment (Windows)
/dev/sda6   1,913,679,872 1,953,513,471    39,833,600 Data partition (Windows/Linux)
/dev/sda7     991,363,072 1,381,988,351   390,625,280 Data partition (Linux)
/dev/sda8   1,381,988,352 1,893,431,295   511,442,944 Data partition (Linux)
/dev/sda9   1,893,431,296 1,912,963,071    19,531,776 Swap partition (Linux)

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 16.0 GB, 15998124032 bytes
102 heads, 38 sectors/track, 8061 cylinders, total 31246336 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    *          8,064    31,246,335    31,238,272   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        E6FE1B8AFE1B5263                       ntfs       WINRE
/dev/sda2        287A-1B75                              vfat       
/dev/sda4        A62ADF492ADF1561                       ntfs       Windows
/dev/sda5        A4368D6D368D40F2                       ntfs       
/dev/sda6        16EE16F4EE16CBBD                       ntfs       RECOVERY
/dev/sda7        981a516f-2b49-45f3-a28c-51c700cc2e3b   ext4       
/dev/sda8        b52a4b3e-edda-486a-92a6-9c24b40f50a8   ext4       
/dev/sda9        f4db58fd-489f-430c-af0f-72376e4e2f6a   swap       
/dev/sdb1        9817-2AA7                              vfat       PRADEEBAN

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

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== sda8/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 [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8  b52a4b3e-edda-486a-92a6-9c24b40f50a8
else
  search --no-floppy --fs-uuid --set=root b52a4b3e-edda-486a-92a6-9c24b40f50a8
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b52a4b3e-edda-486a-92a6-9c24b40f50a8' {
recordfail
 load_video
 gfxmode $linux_gfx_mode
 insmod gzio
 insmod part_gpt
 insmod ext2
 set root='hd0,gpt8'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8  b52a4b3e-edda-486a-92a6-9c24b40f50a8
 else
   search --no-floppy --fs-uuid --set=root b52a4b3e-edda-486a-92a6-9c24b40f50a8
 fi
 linux /boot/vmlinuz-3.11.0-12-generic root=UUID=b52a4b3e-edda-486a-92a6-9c24b40f50a8 ro   quiet splash $vt_handoff
 initrd /boot/initrd.img-3.11.0-12-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-b52a4b3e-edda-486a-92a6-9c24b40f50a8' {
 menuentry 'Ubuntu, with Linux 3.11.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-advanced-b52a4b3e-edda-486a-92a6-9c24b40f50a8' {
 recordfail
  load_video
  gfxmode $linux_gfx_mode
  insmod gzio
  insmod part_gpt
  insmod ext2
  set root='hd0,gpt8'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8  b52a4b3e-edda-486a-92a6-9c24b40f50a8
  else
    search --no-floppy --fs-uuid --set=root b52a4b3e-edda-486a-92a6-9c24b40f50a8
  fi
  echo 'Loading Linux 3.11.0-12-generic ...'
  linux /boot/vmlinuz-3.11.0-12-generic root=UUID=b52a4b3e-edda-486a-92a6-9c24b40f50a8 ro   quiet splash $vt_handoff
  echo 'Loading initial ramdisk ...'
  initrd /boot/initrd.img-3.11.0-12-generic
 }
 menuentry 'Ubuntu, with Linux 3.11.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-recovery-b52a4b3e-edda-486a-92a6-9c24b40f50a8' {
 recordfail
  load_video
  insmod gzio
  insmod part_gpt
  insmod ext2
  set root='hd0,gpt8'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8  b52a4b3e-edda-486a-92a6-9c24b40f50a8
  else
    search --no-floppy --fs-uuid --set=root b52a4b3e-edda-486a-92a6-9c24b40f50a8
  fi
  echo 'Loading Linux 3.11.0-12-generic ...'
  linux /boot/vmlinuz-3.11.0-12-generic root=UUID=b52a4b3e-edda-486a-92a6-9c24b40f50a8 ro recovery nomodeset 
  echo 'Loading initial ramdisk ...'
  initrd /boot/initrd.img-3.11.0-12-generic
 }
}

### END /etc/grub.d/10_linux ###

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

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

### BEGIN /etc/grub.d/25_custom ###

menuentry "Windows UEFI bkpbootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/Microsoft/Boot/bkpbootmgfw.efi
}

menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}

menuentry "EFI/ubuntu/MokManager.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/ubuntu/MokManager.efi
}

menuentry "EFI/HP/BIOSUpdate/CryptRSA32.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/BIOSUpdate/CryptRSA32.efi
}

menuentry "EFI/HP/BIOSUpdate/CryptRSA.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/BIOSUpdate/CryptRSA.efi
}

menuentry "EFI/HP/BIOSUpdate/HpBiosUpdate32.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/BIOSUpdate/HpBiosUpdate32.efi
}

menuentry "EFI/HP/BIOSUpdate/HpBiosUpdate.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/BIOSUpdate/HpBiosUpdate.efi
}

menuentry "EFI/HP/boot/bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/boot/bootmgfw.efi
}

menuentry "EFI/HP/SystemDiags/CryptRSA32.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/SystemDiags/CryptRSA32.efi
}

menuentry "EFI/HP/SystemDiags/CryptRSA.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/SystemDiags/CryptRSA.efi
}

menuentry "EFI/HP/SystemDiags/SystemDiags32.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/SystemDiags/SystemDiags32.efi
}

menuentry "EFI/HP/SystemDiags/SystemDiags.efi" {
search --fs-uuid --no-floppy --set=root 287A-1B75
chainloader (${root})/EFI/HP/SystemDiags/SystemDiags.efi
}
### END /etc/grub.d/25_custom ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Boot Manager (UEFI on /dev/sda2)" --class windows --class os {
 insmod part_gpt
 insmod fat
 set root='hd0,gpt2'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  287A-1B75
 else
   search --no-floppy --fs-uuid --set=root 287A-1B75
 fi
 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
 fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda8/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).
#
#                
# / was on /dev/sda8 during installation
UUID=b52a4b3e-edda-486a-92a6-9c24b40f50a8 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
#UUID=287A-1B75  /boot/efi       vfat    defaults        0       1
# /home was on /dev/sda7 during installation
UUID=981a516f-2b49-45f3-a28c-51c700cc2e3b /home           ext4    defaults        0       2
# swap was on /dev/sda9 during installation
UUID=f4db58fd-489f-430c-af0f-72376e4e2f6a none            swap    sw              0       0
UUID=287A-1B75 /boot/efi vfat defaults 0 1
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 827.166198730 = 888.162942976  boot/grub/grub.cfg                             1
 659.711273193 = 708.359585792  boot/vmlinuz-3.11.0-12-generic                 1
 659.711273193 = 708.359585792  vmlinuz                                        1
 743.538581848 = 798.368473088  boot/initrd.img-3.11.0-12-generic              1
 743.538581848 = 798.368473088  initrd.img                                     1

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

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
 set gfxmode=auto
 insmod efi_gop
 insmod efi_uga
 insmod gfxterm
 terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Boot-Repair-Disk session" {
 set gfxpayload=keep
 linux /casper/vmlinuz  file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
 initrd /casper/initrd.lz
}
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
default menu.c32
prompt 0
menu title UNetbootin
timeout 100

label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --

label ubnentry0
menu label ^Help
kernel /ubnkern
append initrd=/ubninit 

label ubnentry1
menu label ^64bit session
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper  quiet splash --

label ubnentry2
menu label ^64bit session (failsafe)
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper  noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal --

label ubnentry3
menu label Boot-Repair-Disk session
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --

--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             boot/grub/grub.cfg                             1

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

           GiB - GB             File                                 Fragment(s)

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

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

 menu.c32                           :  COM32R module (v4.xx)

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

File descriptor 8 (/proc/19367/mounts) leaked on lvscan invocation. Parent PID 6044: bash
  No volume groups found

ADDITIONAL INFORMATION :
=================== log of boot-repair 2014-04-05__22h14 ===================
boot-repair version : 3.198~ppa16~raring
boot-sav version : 3.198~ppa16~raring
glade2script version : 3.2.2~ppa45~raring
boot-sav-extra version : 3.198~ppa16~raring
File descriptor 8 (/proc/19367/mounts) leaked on lvs invocation. Parent PID 20824: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 64bit 24avr2013, raring, Ubuntu, x86_64)
ls: cannot access /home/usr/.config: No such file or directory
CPU op-mode(s):        32-bit, 64-bit
BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== os-prober:
/dev/sda4:Windows 8 (loader):Windows:chain
/dev/sda6:Windows Recovery Environment (loader):Windows1:chain
/dev/sda8:Ubuntu 13.10 (13.10):Ubuntu:linux

=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="WINRE" UUID="E6FE1B8AFE1B5263" TYPE="ntfs"
/dev/sda2: UUID="287A-1B75" TYPE="vfat"
/dev/sda4: LABEL="Windows" UUID="A62ADF492ADF1561" TYPE="ntfs"
/dev/sda5: UUID="A4368D6D368D40F2" TYPE="ntfs"
/dev/sda6: LABEL="RECOVERY" UUID="16EE16F4EE16CBBD" TYPE="ntfs"
/dev/sda7: UUID="981a516f-2b49-45f3-a28c-51c700cc2e3b" TYPE="ext4"
/dev/sda8: UUID="b52a4b3e-edda-486a-92a6-9c24b40f50a8" TYPE="ext4"
/dev/sda9: UUID="f4db58fd-489f-430c-af0f-72376e4e2f6a" TYPE="swap"
/dev/sdb1: LABEL="PRADEEBAN" UUID="9817-2AA7" TYPE="vfat"


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


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

=================== No kernel in /mnt/boot-sav/sda2/boot:
boot.sdi


Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda2/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/bootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda6/EFI/Boot/bootx64.efi


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




=================== sda8/etc/grub.d/ :
drwxr-xr-x  2 root root        4096 Oct 16 19:02 grub.d
total 72
-rwxr-xr-x 1 root root  7850 Oct 10 17:48 00_header
-rwxr-xr-x 1 root root  5949 Aug 15  2013 05_debian_theme
-rwxr-xr-x 1 root root 11479 Oct 10 17:48 10_linux
-rwxr-xr-x 1 root root 10258 Oct 10 17:48 20_linux_xen
-rwxr-xr-x 1 root root  1798 Jun 17  2013 20_memtest86+
-rwxr-xr-x 1 root root 11531 Oct 10 17:48 30_os-prober
-rwxr-xr-x 1 root root  1426 Oct 10 17:48 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Oct 10 17:48 40_custom
-rwxr-xr-x 1 root root   216 Oct 10 17:48 41_custom
-rw-r--r-- 1 root root   483 Oct 10 17:48 README


/boot/efi detected in the fstab of sda8: UUID=287A-1B75  (sda2)
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled. (maybe sec-boot, Please report this message to boot.repair@gmail.com)


=================== PARTITIONS & DISKS:
sda1 : 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, recovery-or-hidden, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /mnt/boot-sav/sda1.
sda2 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-kernel, no-os, is-correct-EFI, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /mnt/boot-sav/sda2.
sda4 : 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, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda4.
sda5 : 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, recovery-or-hidden, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda5.
sda6 : 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, no-winload, recovery-or-hidden, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda6.
sda7 : sda, maybesepboot, 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, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda7.
sda8 : sda, not-sepboot, grubenv-ok grub2, signed grub-efi , update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, farbios, /mnt/boot-sav/sda8.

sda : GPT, no-BIOS_boot, has-correctEFI,  not-usb, has-os, 2048 sectors * 512 bytes


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

Model: ATA HGST HTS541010A9 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
1      1049kB  420MB   419MB   ntfs            Basic data partition          hidden, diag
2      420MB   693MB   273MB   fat32           EFI system partition          boot
3      693MB   827MB   134MB                   Microsoft reserved partition  msftres
4      827MB   508GB   507GB   ntfs            Basic data partition
7      508GB   708GB   200GB   ext4
8      708GB   969GB   262GB   ext4
9      969GB   979GB   10.0GB  linux-swap(v1)
5      979GB   980GB   367MB   ntfs                                          hidden, diag
6      980GB   1000GB  20.4GB  ntfs            Basic data partition          hidden


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

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

=================== parted -lm:

BYT;
/dev/sda:1000GB:scsi:512:4096:gpt:ATA HGST HTS541010A9;
1:1049kB:420MB:419MB:ntfs:Basic data partition:hidden, diag;
2:420MB:693MB:273MB:fat32:EFI system partition:boot;
3:693MB:827MB:134MB::Microsoft reserved partition:msftres;
4:827MB:508GB:507GB:ntfs:Basic data partition:;
7:508GB:708GB:200GB:ext4::;
8:708GB:969GB:262GB:ext4::;
9:969GB:979GB:10.0GB:linux-swap(v1)::;
5:979GB:980GB:367MB:ntfs::hidden, diag;
6:980GB:1000GB:20.4GB:ntfs:Basic data partition:hidden;

BYT;
/dev/sdb:16.0GB:scsi:512:512:msdos:Imation Nano Pro;
1:4129kB:16.0GB:16.0GB:fat32::boot, lba;


=================== 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/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/cgroup type tmpfs (rw)
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)
none on /sys/firmware/efi/efivars type efivarfs (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)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
gvfsd-fuse on /run/user/lubuntu/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=lubuntu)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda5 on /mnt/boot-sav/sda5 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda7 on /mnt/boot-sav/sda7 type ext4 (rw)
/dev/sda8 on /mnt/boot-sav/sda8 type ext4 (rw)
/dev/sda2 on /mnt/boot-sav/sda2 type vfat (rw)
/dev/sda4 on /mnt/boot-sav/sda4 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda6 on /mnt/boot-sav/sda6 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sda9 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered):  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
/dev (filtered):  alarm ashmem autofs binder block bsg btrfs-control bus char console core cpu cpu_dma_latency disk dri ecryptfs fb0 fd full fuse hpet input kmsg kvm log mapper mcelog mei mem net network_latency network_throughput null oldmem port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sda9 sdb sdb1 sg0 sg1 shm snapshot snd stderr stdin stdout uinput urandom v4l vga_arbiter vhost-net video0 zero
ls /dev/mapper:  control

=================== hexdump -n512 -C /dev/sda1
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 08 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 7f 0c 00 00 00 00 00  |................|
00000030  55 85 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |U...............|
00000040  f6 00 00 00 01 00 00 00  63 52 1b fe 8a 1b fe e6  |........cR......|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 41 20 64 69  |............A di|
00000190  73 6b 20 72 65 61 64 20  65 72 72 6f 72 20 6f 63  |sk read error oc|
000001a0  63 75 72 72 65 64 00 0d  0a 42 4f 4f 54 4d 47 52  |curred...BOOTMGR|
000001b0  20 69 73 20 63 6f 6d 70  72 65 73 73 65 64 00 0d  | is compressed..|
000001c0  0a 50 72 65 73 73 20 43  74 72 6c 2b 41 6c 74 2b  |.Press Ctrl+Alt+|
000001d0  44 65 6c 20 74 6f 20 72  65 73 74 61 72 74 0d 0a  |Del to restart..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a7 01 bf 01 00 00 55 aa  |..............U.|
00000200
ls /mnt/boot-sav/sda2: BCD
BCD.LOG
BCD.LOG1
BCD.LOG2
boot
BOOTSECT.BAK
EFI
Temp  . Please report this message to boot.repair@gmail.com

=================== hexdump -n512 -C /dev/sda2
00000000  eb 58 90 4d 53 44 4f 53  35 2e 30 00 02 08 fe 1b  |.X.MSDOS5.0.....|
00000010  02 00 00 00 00 f8 00 00  3f 00 ff 00 00 88 0c 00  |........?.......|
00000020  00 20 08 00 01 02 00 00  00 00 00 00 02 00 00 00  |. ..............|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  80 00 29 75 1b 7a 28 4e  4f 20 4e 41 4d 45 20 20  |..)u.z(NO NAME  |
00000050  20 20 46 41 54 33 32 20  20 20 33 c9 8e d1 bc f4  |  FAT32   3.....|
00000060  7b 8e c1 8e d9 bd 00 7c  88 56 40 88 4e 02 8a 56  |{......|.V@.N..V|
00000070  40 b4 41 bb aa 55 cd 13  72 10 81 fb 55 aa 75 0a  |@.A..U..r...U.u.|
00000080  f6 c1 01 74 05 fe 46 02  eb 2d 8a 56 40 b4 08 cd  |...t..F..-.V@...|
00000090  13 73 05 b9 ff ff 8a f1  66 0f b6 c6 40 66 0f b6  |.s......f...@f..|
000000a0  d1 80 e2 3f f7 e2 86 cd  c0 ed 06 41 66 0f b7 c9  |...?.......Af...|
000000b0  66 f7 e1 66 89 46 f8 83  7e 16 00 75 39 83 7e 2a  |f..f.F..~..u9.~*|
000000c0  00 77 33 66 8b 46 1c 66  83 c0 0c bb 00 80 b9 01  |.w3f.F.f........|
000000d0  00 e8 2c 00 e9 a8 03 a1  f8 7d 80 c4 7c 8b f0 ac  |..,......}..|...|
000000e0  84 c0 74 17 3c ff 74 09  b4 0e bb 07 00 cd 10 eb  |..t.<.t.........|
000000f0  ee a1 fa 7d eb e4 a1 7d  80 eb df 98 cd 16 cd 19  |...}...}........|
00000100  66 60 80 7e 02 00 0f 84  20 00 66 6a 00 66 50 06  |f`.~.... .fj.fP.|
00000110  53 66 68 10 00 01 00 b4  42 8a 56 40 8b f4 cd 13  |Sfh.....B.V@....|
00000120  66 58 66 58 66 58 66 58  eb 33 66 3b 46 f8 72 03  |fXfXfXfX.3f;F.r.|
00000130  f9 eb 2a 66 33 d2 66 0f  b7 4e 18 66 f7 f1 fe c2  |..*f3.f..N.f....|
00000140  8a ca 66 8b d0 66 c1 ea  10 f7 76 1a 86 d6 8a 56  |..f..f....v....V|
00000150  40 8a e8 c0 e4 06 0a cc  b8 01 02 cd 13 66 61 0f  |@............fa.|
00000160  82 74 ff 81 c3 00 02 66  40 49 75 94 c3 42 4f 4f  |.t.....f@Iu..BOO|
00000170  54 4d 47 52 20 20 20 20  00 00 00 00 00 00 00 00  |TMGR    ........|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 0d 0a 44 69  |..............Di|
000001b0  73 6b 20 65 72 72 6f 72  ff 0d 0a 50 72 65 73 73  |sk error...Press|
000001c0  20 61 6e 79 20 6b 65 79  20 74 6f 20 72 65 73 74  | any key to rest|
000001d0  61 72 74 0d 0a 00 00 00  00 00 00 00 00 00 00 00  |art.............|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  ac 01 b9 01 00 00 55 aa  |..............U.|
00000200

=================== hexdump -n512 -C /dev/sda4
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 a8 18 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 57 fe 3a 00 00 00 00  |.........W.:....|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  61 15 df 2a 49 df 2a a6  |........a..*I.*.|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 41 20 64 69  |............A di|
00000190  73 6b 20 72 65 61 64 20  65 72 72 6f 72 20 6f 63  |sk read error oc|
000001a0  63 75 72 72 65 64 00 0d  0a 42 4f 4f 54 4d 47 52  |curred...BOOTMGR|
000001b0  20 69 73 20 63 6f 6d 70  72 65 73 73 65 64 00 0d  | is compressed..|
000001c0  0a 50 72 65 73 73 20 43  74 72 6c 2b 41 6c 74 2b  |.Press Ctrl+Alt+|
000001d0  44 65 6c 20 74 6f 20 72  65 73 74 61 72 74 0d 0a  |Del to restart..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a7 01 bf 01 00 00 55 aa  |..............U.|
00000200

=================== hexdump -n512 -C /dev/sda5
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 80 05 72  |........?......r|
00000020  00 00 00 00 80 00 80 00  ff ef 0a 00 00 00 00 00  |................|
00000030  aa 74 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |.t..............|
00000040  f6 00 00 00 01 00 00 00  f2 40 8d 36 6d 8d 36 a4  |.........@.6m.6.|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 41 20 64 69  |............A di|
00000190  73 6b 20 72 65 61 64 20  65 72 72 6f 72 20 6f 63  |sk read error oc|
000001a0  63 75 72 72 65 64 00 0d  0a 42 4f 4f 54 4d 47 52  |curred...BOOTMGR|
000001b0  20 69 73 20 63 6f 6d 70  72 65 73 73 65 64 00 0d  | is compressed..|
000001c0  0a 50 72 65 73 73 20 43  74 72 6c 2b 41 6c 74 2b  |.Press Ctrl+Alt+|
000001d0  44 65 6c 20 74 6f 20 72  65 73 74 61 72 74 0d 0a  |Del to restart..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a7 01 bf 01 00 00 55 aa  |..............U.|
00000200

=================== hexdump -n512 -C /dev/sda6
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 70 10 72  |........?....p.r|
00000020  00 00 00 00 80 00 80 00  ff cf 5f 02 00 00 00 00  |.........._.....|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  bd cb 16 ee f4 16 ee 16  |................|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 41 20 64 69  |............A di|
00000190  73 6b 20 72 65 61 64 20  65 72 72 6f 72 20 6f 63  |sk read error oc|
000001a0  63 75 72 72 65 64 00 0d  0a 42 4f 4f 54 4d 47 52  |curred...BOOTMGR|
000001b0  20 69 73 20 63 6f 6d 70  72 65 73 73 65 64 00 0d  | is compressed..|
000001c0  0a 50 72 65 73 73 20 43  74 72 6c 2b 41 6c 74 2b  |.Press Ctrl+Alt+|
000001d0  44 65 6c 20 74 6f 20 72  65 73 74 61 72 74 0d 0a  |Del to restart..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a7 01 bf 01 00 00 55 aa  |..............U.|
00000200

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


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

Filesystem     Type       Size  Used Avail Use% Mounted on
/cow           overlayfs  3.9G   24M  3.9G   1% /
udev           devtmpfs   3.9G   12K  3.9G   1% /dev
tmpfs          tmpfs      792M  828K  792M   1% /run
/dev/sdb1      vfat        15G  550M   15G   4% /cdrom
/dev/loop0     squashfs   435M  435M     0 100% /rofs
none           tmpfs      4.0K     0  4.0K   0% /sys/fs/cgroup
tmpfs          tmpfs      3.9G   36K  3.9G   1% /tmp
none           tmpfs      5.0M     0  5.0M   0% /run/lock
none           tmpfs      3.9G     0  3.9G   0% /run/shm
none           tmpfs      100M   16K  100M   1% /run/user
/dev/sda1      fuseblk    400M  269M  132M  68% /mnt/boot-sav/sda1
/dev/sda5      fuseblk    350M  276M   75M  79% /mnt/boot-sav/sda5
/dev/sda7      ext4       184G   92M  174G   1% /mnt/boot-sav/sda7
/dev/sda8      ext4       240G  2.9G  225G   2% /mnt/boot-sav/sda8
/dev/sda2      vfat       256M  116M  141M  45% /mnt/boot-sav/sda2
/dev/sda4      fuseblk    472G  210G  263G  45% /mnt/boot-sav/sda4
/dev/sda6      fuseblk     19G   18G  2.0G  90% /mnt/boot-sav/sda6

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

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x1e1f4777

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  1953525167   976762583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdb: 16.0 GB, 15998124032 bytes
102 heads, 38 sectors/track, 8061 cylinders, total 31246336 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: 0xc3072e18

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        8064    31246335    15619136    c  W95 FAT32 (LBA)


EFI detected. Please check the options.

=================== Recommended repair
Recommended-Repair
This setting will purge (in order to unsign-grub upgrade version) and reinstall the grub-efi of sda8, using the following options: upgrade-grub       sda2/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s    backup-and-rename-efi-files


Mount sda2 on /mnt/boot-sav/sda8/boot/efi
ls /mnt/boot-sav/sda8/boot/efi: BCD
BCD.LOG
BCD.LOG1
BCD.LOG2
boot
BOOTSECT.BAK
EFI
Temp  . Please report this message to boot.repair@gmail.com
chroot /mnt/boot-sav/sda8 apt-get -y --force-yes update
Purge the GRUB of sda8
Install last GRUB version in /mnt/boot-sav/sda8/etc/apt/sources.list
chroot /mnt/boot-sav/sda8 apt-get -y --force-yes update
grub-efi available

The following extra packages will be installed:
grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
grub2-common
Suggested packages:
multiboot-doc grub-emu xorriso desktop-base
The following NEW packages will be installed:
grub-efi
The following packages will be upgraded:
grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
grub2-common
5 upgraded, 1 newly installed, 0 to remove and 300 not upgraded.
DEBCHECK debOK, grub-efi
DEBCHECK debOK
shim-signed available
linux-signed-generic available
Please type: sudo chroot "/mnt/boot-sav/sda8" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda8" apt-get install -fynsudo chroot "/mnt/boot-sav/sda8" apt-get purge -y --force-yes grub*-common shim-signed linux-signed*
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bootx64.efi

=================== sda8/etc/grub.d/ :
drwxr-xr-x  2 root root        4096 Apr  5 22:19 grub.d
total 4
-rwxr-xr-x 1 root root 1798 Jun 17  2013 20_memtest86+


/boot/efi detected in the fstab of sda8: UUID=287A-1B75  (sda2)
Then type: sudo chroot "/mnt/boot-sav/sda8" apt-get install -y --force-yes grub-efi linux
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bootx64.efi


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




=================== sda8/etc/grub.d/ :
drwxr-xr-x  2 root root        4096 Apr  5 22:19 grub.d
drwxr-xr-x  2 root root        4096 Apr  5 22:19 grub.d.bak
total 68
-rwxr-xr-x 1 root root  7850 Oct 23 20:44 00_header
-rwxr-xr-x 1 root root  5949 Aug 15  2013 05_debian_theme
-rwxr-xr-x 1 root root 11479 Oct 23 20:44 10_linux
-rwxr-xr-x 1 root root 10258 Oct 23 20:44 20_linux_xen
-rwxr-xr-x 1 root root 11531 Oct 23 20:44 30_os-prober
-rwxr-xr-x 1 root root  1426 Oct 23 20:44 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Oct 23 20:44 40_custom
-rwxr-xr-x 1 root root   216 Oct 23 20:44 41_custom
-rw-r--r-- 1 root root   483 Oct 23 20:44 README


/boot/efi detected in the fstab of sda8: UUID=287A-1B75  (sda2)
Unhide GRUB boot menu in sda8/etc/default/grub
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bootx64.efi


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




=================== sda8/etc/grub.d/ :
drwxr-xr-x  2 root root        4096 Apr  5 22:19 grub.d
drwxr-xr-x  2 root root        4096 Apr  5 22:19 grub.d.bak
total 68
-rwxr-xr-x 1 root root  7850 Oct 23 20:44 00_header
-rwxr-xr-x 1 root root  5949 Aug 15  2013 05_debian_theme
-rwxr-xr-x 1 root root 11479 Oct 23 20:44 10_linux
-rwxr-xr-x 1 root root 10258 Oct 23 20:44 20_linux_xen
-rwxr-xr-x 1 root root 11531 Oct 23 20:44 30_os-prober
-rwxr-xr-x 1 root root  1426 Oct 23 20:44 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Oct 23 20:44 40_custom
-rwxr-xr-x 1 root root   216 Oct 23 20:44 41_custom
-rw-r--r-- 1 root root   483 Oct 23 20:44 README


/boot/efi detected in the fstab of sda8: UUID=287A-1B75  (sda2)
grub-install (GRUB) 2.00-19ubuntu2.1,grub-install (GRUB) 2.

Reinstall the grub-efi linux of sda8
Installation finished. No error reported.
grub-install --efi-directory=/boot/efi --target=x86_64-efi : BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2001,0001,3001,2002,2003
Boot0000* USB Hard Drive (UEFI) - Imation Nano Pro
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,2001,0001,3001,2002,2003
Boot0000* USB Hard Drive (UEFI) - Imation Nano Pro
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot0002* ubuntu
exit code of grub-install :0
(debug) beglsefi1 ubuntu/grubx64.efi ; ubuntu , /mnt/boot-sav/sda8/boot/efi .
ls /mnt/boot-sav/sda8/boot/efi: BCD
BCD.LOG
BCD.LOG1
BCD.LOG2
boot
BOOTSECT.BAK
EFI
Temp  . Please report this message to boot.repair@gmail.com
df /dev/sda2
Save and rename /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi (/mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bkpbootmgfw.efi)
cp /mnt/boot-sav/sda8/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
df /dev/sda2
cp /mnt/boot-sav/sda8/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootx64.efi (& .grb)
df /dev/sda2
Save and rename /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bootx64.efi (/mnt/boot-sav/sda8/boot/efi/EFI/Boot/bkpbootx64.efi)
cp /mnt/boot-sav/sda8/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bootx64.efi
ls /mnt/boot-sav/sda8/boot/efi: BCD
BCD.LOG
BCD.LOG1
BCD.LOG2
boot
BOOTSECT.BAK
EFI
Temp  . Please report this message to boot.repair@gmail.com
Add /mnt/boot-sav/sda8/boot/efi efi entries in /mnt/boot-sav/sda8/etc/grub.d/25_custom
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bkpbootmgfw.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bkpbootx64.efi
sda2//mnt/boot-sav/sda8/boot/efi/EFI/Boot/bkpbootx64.efi already added
sda2//mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bkpbootmgfw.efi already added
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/ubuntu/MokManager.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/BIOSUpdate/CryptRSA32.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/BIOSUpdate/CryptRSA.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/BIOSUpdate/HpBiosUpdate32.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/BIOSUpdate/HpBiosUpdate.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/boot/bootmgfw.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/SystemDiags/CryptRSA32.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/SystemDiags/CryptRSA.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/SystemDiags/SystemDiags32.efi
Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/HP/SystemDiags/SystemDiags.efi
Installation finished. No error reported.
grub-install --efi-directory=/boot/efi --target=x86_64-efi : BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2001,0001,3001,2002,2003
Boot0000* USB Hard Drive (UEFI) - Imation Nano Pro
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,2001,0001,3001,2002,2003
Boot0000* USB Hard Drive (UEFI) - Imation Nano Pro
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot0002* ubuntu
exit code of grub-install :0

chroot /mnt/boot-sav/sda8 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found initrd image: /boot/initrd.img-3.11.0-12-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
Unhide GRUB boot menu in sda8/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your BIOS boot on sda2/EFI/ubuntu/grubx64.efi file!

Installing Latex/PdfLatex on Ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below. 

* Install the TexLive base
$ sudo apt-get install texlive-latex-base

* Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
$ sudo apt-get install texlive-fonts-recommended
$ sudo apt-get install texlive-fonts-extra

* Install the extra packages,
$ sudo apt-get install texlive-latex-extra

Once installed as above, you may be able to create PDF files from latex sources using PdfLatex as below.

$ pdflatex latex_source_name.tex

Error 1:
grep: ptmr7t.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ptmr7t' failed to make ptmr7t.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font OT1/ptm/m/n/10=ptmr7t at 10.0pt not loadable: Metric (TFM) file not found.

                   relax l.373 \normalfont
                 \selectfont

Sunday, March 9, 2014

Building Freenet from source on Windows 8.1

Configuring Freenet from Firefox.
My interest on Freenet is mostly towards its goal on the Internet Freedom. Freenet is a software that lets users use share and browse cites without the fear of censorship, while providing anonymity.

In this post, we will see how to build and use Freenet from the source in Windows 8.1. (After 5 long years, I have come back to Windows. It doesn't mean that I have forgotten Linux. I still love Linux and open source. But I hope I can contribute to the open source in different ways using Windows.)

You need java, ant, and git for this. 
First checkout the source code.
$ git clone git://github.com/freenet/fred-staging.git

Rename the checked out directory fred-staging to fred and go into it.
$ mv fred-staging fred
$ cd fred

Create a file "override.properties", with the below line as the content.
lib.contrib.get=true
Download bouncy castle jar and put it into the lib directory as bcprov.jar.
Download JUnit jar and put it into the lib directory as junit.jar.

To build,
$ ant

To build, skipping the tests and documentation tasks,
$ ant -Dtest.skip=true -Ddoc.skip=true

freenet.jar is built inside the dist directory. Move it into the lib directory, and run from the lib directory using the below command,
$ java -jar freenet.jar

Now you are done. Go ahead and read the Usage FAQ to configure and start using Freenet!

Wednesday, February 26, 2014

Lisbon, once more..

I cooked this wonderful Turkey meat curry
I realized, I didn't blog about my Erasmus Mundus adventures for a long time. This becomes the first post of the new year on my personal life in Lisboa. In fact, I had many interesting updates, where I didn't have time to sit and write them down. I came back to Lisbon on the 30th of December, after an eventful journey around the Nordic countries, using flight, cruise, trains, and trams. The new year celebrations in Lisbon reminded me the new year of 2013, as this was the second new year I had in Lisbon commercial square. I have started to work on my thesis, from INESC-ID, developing the distributed and concurrent cloud simulator. In the mean time, I enjoyed the second winter event of EMDC in Evora, Portugal.

Working from a cafe!
After a productive day at InescID, I was at a cafe next to SEF, metro station Parque. I opened my laptop and continued developing the next generation cloud simulator, whilst sipping the coffee. The gentleman at the cashier asked me something in Portuguese. I thought he was saying, "are you crazy or what?". I said, "sorry?" He asked me again in English, "Do you need the Internet connection?" AAAAAND BOOM.. I AM IN TEH INTERWEBS.. And the cafe has a much stronger internet than my room in the apartment. Long live the cafe, and the gentleman who gave me the access to the wifi, without even me asking. Probably you may see me around metro station Parque more often..

物是人非
..and this strawberry milk shake.. :D
These days I often go to the "Community Canteen" of Instituto Superior Técnico Alameda to have a meal for 2.40 Euro, for either lunch or dinner. I realized, I miss the moments I had with my friends in Lisboa.. (Xiao's small talks, Qi Qi's questions, Zell's drawings, Orçun's slow-paced eating (which is slower than mine), discussing Romanian music with Tamás, Dipesh's vegetables, and Pushparaj's lunch box full of chillies.. :D) Lisbon is full of memories for me. I saw a few familiar faces in the Canteen. But apart from that, I am mostly alone in the canteen. Memories define a place. For me, Lisbon is full of memories.
I guess, there is a memory - location - people mapping. I will definitely miss the time I spent in Stockholm with the friends, when I go to Stockholm one day in the future. Without you guys around, Lisbon is not the same. Qi Qi says, this feeling is called 物是人非 in Chinese. Hope all of you guys have started your thesis in different corners of Europe..