Ubuntu iTOps Tube

advertisement center

Thursday, April 26, 2012

Another "Windows 7 entry missing from Grub2" Question

Like many before me had the following problem that after installing Ubuntu (with windows 7 already installed), the grub boot loader wouldnt show windows 7 as a boot option, though i can boot fine if I use the "Choose Boot Device" options on the x220.
The difference is that I try using UEFI only so many answers didn't really fit my problem, though i tried several stuffs:




  • after running boot repair it destroyed the ubuntu boot loader

  • custom entry in /etc/grub.d/40_custom for windows which doesnt show up

  • many update-grub and reboots

  • trying windows repair recovery thing

  • while being there i also did bootrec.exe /FixBoot

  • and update-grub and reboot again

  • and finaly because it was so much fun, i installed linux all over again, while formatting and deleting everything linux related before that.



Now that i think of it, Ubuntu also didn't notice Windows being there during the Setup and it still doesnt according to the Boot Info from Boot Repair.



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


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

=> No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

File system: vfat
Boot sector type: Windows 7: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/ubuntu/grubx64.efi

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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: /Windows/System32/winload.exe

sda4: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu precise (development
branch)
Boot files: /boot/grub/grub.cfg /etc/fstab

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 1 625,142,447 625,142,447 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 206,847 204,800 EFI System partition
/dev/sda2 206,848 468,991 262,144 Microsoft Reserved Partition (Windows)
/dev/sda3 468,992 170,338,303 169,869,312 Data partition (Windows/Linux)
/dev/sda4 170,338,304 330,338,304 160,000,001 Data partition (Windows/Linux)
/dev/sda5 330,338,305 617,141,039 286,802,735 Data partition (Windows/Linux)
/dev/sda6 617,141,040 625,141,040 8,000,001 Swap partition (Linux)

"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 885C-ED1B vfat
/dev/sda3 EE06CC0506CBCCB1 ntfs
/dev/sda4 604dd3b2-64ca-4200-b8fb-820e8d0ca899 ext4
/dev/sda5 d62515fd-8120-4a74-b17b-0bdf244124a3 ext4
/dev/sda6 7078b649-fb2a-4c59-bd03-fd31ef440d37 swap

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

Device Mount_Point Type Options

/dev/sda1 /boot/efi vfat (rw)
/dev/sda4 / ext4 (rw,errors=remount-ro)
/dev/sda5 /home ext4 (rw)


=========================== sda4/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 efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 604dd3b2-64ca-4200-b8fb-820e8d0ca899
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 604dd3b2-64ca-4200-b8fb-820e8d0ca899
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

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

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-20-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 604dd3b2-64ca-4200-b8fb-820e8d0ca899
linux /boot/vmlinuz-3.2.0-20-generic root=UUID=604dd3b2-64ca-4200-b8fb-820e8d0ca899 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-20-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 604dd3b2-64ca-4200-b8fb-820e8d0ca899
echo 'Loading Linux 3.2.0-20-generic ...'
linux /boot/vmlinuz-3.2.0-20-generic root=UUID=604dd3b2-64ca-4200-b8fb-820e8d0ca899 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-20-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/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 604dd3b2-64ca-4200-b8fb-820e8d0ca899
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 604dd3b2-64ca-4200-b8fb-820e8d0ca899
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###
--------------------------------------------------------------------------------

=============================== sda4/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/sda4 during installation
UUID=604dd3b2-64ca-4200-b8fb-820e8d0ca899 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=885C-ED1B /boot/efi vfat defaults 0 1
# /home was on /dev/sda5 during installation
UUID=d62515fd-8120-4a74-b17b-0bdf244124a3 /home ext4 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=7078b649-fb2a-4c59-bd03-fd31ef440d37 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

129.422874451 = 138.966753280 boot/grub/grub.cfg 1
83.059570312 = 89.184534528 boot/initrd.img-3.2.0-20-generic 2
101.393131256 = 108.870045696 boot/vmlinuz-3.2.0-20-generic 1
83.059570312 = 89.184534528 initrd.img 2
101.393131256 = 108.870045696 vmlinuz 1


ADDITIONAL INFORMATION :
=================== log of boot-repair 2012-04-25__23h40 ===================
boot-repair version : 3.18-0ppa3~precise
boot-sav version : 3.18-0ppa4~precise
glade2script version : 0.3.2.1-0ppa7~precise
internet: connected
python-software-properties version : 0.82.7

0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 591 not upgraded.
dpkg-preconfigure: unable to re-open stdin: No such file or directory
boot-repair is executed in installed-session (Ubuntu precise (development branch) , precise , Ubuntu , x86_64)

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


=================== OSPROBER:
/dev/sda4:The OS now in use - Ubuntu precise (development branch) CurrentSession:linux

=================== BLKID:
/dev/sda3: UUID="EE06CC0506CBCCB1" TYPE="ntfs"
/dev/sda1: UUID="885C-ED1B" TYPE="vfat"
/dev/sda4: UUID="604dd3b2-64ca-4200-b8fb-820e8d0ca899" TYPE="ext4"
/dev/sda5: UUID="d62515fd-8120-4a74-b17b-0bdf244124a3" TYPE="ext4"
/dev/sda6: UUID="7078b649-fb2a-4c59-bd03-fd31ef440d37" TYPE="swap"


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


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



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



EFI_OF_PART[1] (, )

=================== dmesg | grep EFI :
[ 0.000000] EFI v2.00 by Lenovo
[ 0.000000] Kernel-defined memdesc doesn't match the one from EFI!
[ 0.000000] EFI: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB)
[ 0.000000] EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x000000000004e000) (0MB)
[ 0.000000] EFI: mem02: type=3, attr=0xf, range=[0x000000000004e000-0x0000000000058000) (0MB)
[ 0.000000] EFI: mem03: type=10, attr=0xf, range=[0x0000000000058000-0x0000000000059000) (0MB)
[ 0.000000] EFI: mem04: type=7, attr=0xf, range=[0x0000000000059000-0x000000000005e000) (0MB)
[ 0.000000] EFI: mem05: type=4, attr=0xf, range=[0x000000000005e000-0x000000000005f000) (0MB)
[ 0.000000] EFI: mem06: type=3, attr=0xf, range=[0x000000000005f000-0x00000000000a0000) (0MB)
[ 0.000000] EFI: mem07: type=2, attr=0xf, range=[0x0000000000100000-0x00000000005b9000) (4MB)
[ 0.000000] EFI: mem08: type=7, attr=0xf, range=[0x00000000005b9000-0x0000000020000000) (506MB)
[ 0.000000] EFI: mem09: type=0, attr=0xf, range=[0x0000000020000000-0x0000000020200000) (2MB)
[ 0.000000] EFI: mem10: type=7, attr=0xf, range=[0x0000000020200000-0x00000000364e4000) (354MB)
[ 0.000000] EFI: mem11: type=2, attr=0xf, range=[0x00000000364e4000-0x000000003726a000) (13MB)
[ 0.000000] EFI: mem12: type=7, attr=0xf, range=[0x000000003726a000-0x0000000040000000) (141MB)
[ 0.000000] EFI: mem13: type=0, attr=0xf, range=[0x0000000040000000-0x0000000040200000) (2MB)
[ 0.000000] EFI: mem14: type=7, attr=0xf, range=[0x0000000040200000-0x000000009df35000) (1501MB)
[ 0.000000] EFI: mem15: type=2, attr=0xf, range=[0x000000009df35000-0x00000000d39a0000) (858MB)
[ 0.000000] EFI: mem16: type=4, attr=0xf, range=[0x00000000d39a0000-0x00000000d39c0000) (0MB)
[ 0.000000] EFI: mem17: type=7, attr=0xf, range=[0x00000000d39c0000-0x00000000d5df5000) (36MB)
[ 0.000000] EFI: mem18: type=4, attr=0xf, range=[0x00000000d5df5000-0x00000000d6990000) (11MB)
[ 0.000000] EFI: mem19: type=7, attr=0xf, range=[0x00000000d6990000-0x00000000d6b82000) (1MB)
[ 0.000000] EFI: mem20: type=1, attr=0xf, range=[0x00000000d6b82000-0x00000000d6b9f000) (0MB)
[ 0.000000] EFI: mem21: type=7, attr=0xf, range=[0x00000000d6b9f000-0x00000000d77b0000) (12MB)
[ 0.000000] EFI: mem22: type=4, attr=0xf, range=[0x00000000d77b0000-0x00000000d780a000) (0MB)
[ 0.000000] EFI: mem23: type=7, attr=0xf, range=[0x00000000d780a000-0x00000000d7826000) (0MB)
[ 0.000000] EFI: mem24: type=4, attr=0xf, range=[0x00000000d7826000-0x00000000d7868000) (0MB)
[ 0.000000] EFI: mem25: type=7, attr=0xf, range=[0x00000000d7868000-0x00000000d7869000) (0MB)
[ 0.000000] EFI: mem26: type=4, attr=0xf, range=[0x00000000d7869000-0x00000000d786a000) (0MB)
[ 0.000000] EFI: mem27: type=7, attr=0xf, range=[0x00000000d786a000-0x00000000d786b000) (0MB)
[ 0.000000] EFI: mem28: type=4, attr=0xf, range=[0x00000000d786b000-0x00000000d786c000) (0MB)
[ 0.000000] EFI: mem29: type=7, attr=0xf, range=[0x00000000d786c000-0x00000000d786d000) (0MB)
[ 0.000000] EFI: mem30: type=4, attr=0xf, range=[0x00000000d786d000-0x00000000d825f000) (9MB)
[ 0.000000] EFI: mem31: type=7, attr=0xf, range=[0x00000000d825f000-0x00000000d8261000) (0MB)
[ 0.000000] EFI: mem32: type=4, attr=0xf, range=[0x00000000d8261000-0x00000000d82f7000) (0MB)
[ 0.000000] EFI: mem33: type=7, attr=0xf, range=[0x00000000d82f7000-0x00000000d82f8000) (0MB)
[ 0.000000] EFI: mem34: type=4, attr=0xf, range=[0x00000000d82f8000-0x00000000d8705000) (4MB)
[ 0.000000] EFI: mem35: type=7, attr=0xf, range=[0x00000000d8705000-0x00000000d8706000) (0MB)
[ 0.000000] EFI: mem36: type=4, attr=0xf, range=[0x00000000d8706000-0x00000000d8761000) (0MB)
[ 0.000000] EFI: mem37: type=7, attr=0xf, range=[0x00000000d8761000-0x00000000d8768000) (0MB)
[ 0.000000] EFI: mem38: type=4, attr=0xf, range=[0x00000000d8768000-0x00000000d9b9f000) (20MB)
[ 0.000000] EFI: mem39: type=7, attr=0xf, range=[0x00000000d9b9f000-0x00000000d9e4c000) (2MB)
[ 0.000000] EFI: mem40: type=2, attr=0xf, range=[0x00000000d9e4c000-0x00000000d9e52000) (0MB)
[ 0.000000] EFI: mem41: type=3, attr=0xf, range=[0x00000000d9e52000-0x00000000da59f000) (7MB)
[ 0.000000] EFI: mem42: type=5, attr=0x800000000000000f, range=[0x00000000da59f000-0x00000000da6c3000) (1MB)
[ 0.000000] EFI: mem43: type=5, attr=0x800000000000000f, range=[0x00000000da6c3000-0x00000000da79f000) (0MB)
[ 0.000000] EFI: mem44: type=6, attr=0x800000000000000f, range=[0x00000000da79f000-0x00000000da8b1000) (1MB)
[ 0.000000] EFI: mem45: type=6, attr=0x800000000000000f, range=[0x00000000da8b1000-0x00000000da99f000) (0MB)
[ 0.000000] EFI: mem46: type=0, attr=0xf, range=[0x00000000da99f000-0x00000000daa22000) (0MB)
[ 0.000000] EFI: mem47: type=0, attr=0xf, range=[0x00000000daa22000-0x00000000daa9b000) (0MB)
[ 0.000000] EFI: mem48: type=0, attr=0xf, range=[0x00000000daa9b000-0x00000000daa9c000) (0MB)
[ 0.000000] EFI: mem49: type=0, attr=0xf, range=[0x00000000daa9c000-0x00000000daa9f000) (0MB)
[ 0.000000] EFI: mem50: type=10, attr=0xf, range=[0x00000000daa9f000-0x00000000daadd000) (0MB)
[ 0.000000] EFI: mem51: type=10, attr=0xf, range=[0x00000000daadd000-0x00000000dab9f000) (0MB)
[ 0.000000] EFI: mem52: type=9, attr=0xf, range=[0x00000000dab9f000-0x00000000dabdc000) (0MB)
[ 0.000000] EFI: mem53: type=9, attr=0xf, range=[0x00000000dabdc000-0x00000000dabff000) (0MB)
[ 0.000000] EFI: mem54: type=4, attr=0xf, range=[0x00000000dabff000-0x00000000dac00000) (0MB)
[ 0.000000] EFI: mem55: type=7, attr=0xf, range=[0x0000000100000000-0x000000021e600000) (4582MB)
[ 0.000000] EFI: mem56: type=11, attr=0x8000000000000001, range=[0x00000000f80f8000-0x00000000f80f9000) (0MB)
[ 0.000000] EFI: mem57: type=11, attr=0x8000000000000001, range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
[ 0.000000] ACPI: UEFI 00000000dabde000 0003E (v01 LENOVO TP-8D 00001280 PTL 00000002)
[ 0.000000] ACPI: UEFI 00000000dabdd000 00042 (v01 PTL COMBUF 00000001 PTL 00000001)
[ 0.000000] ACPI: UEFI 00000000dabdc000 00292 (v01 LENOVO TP-8D 00001280 PTL 00000002)
[ 0.795807] fb0: EFI VGA frame buffer device
[ 1.057243] EFI Variables Facility v0.08 2004-May-17
[ 9.122104] fb: conflicting fb hw usage inteldrmfb vs EFI VGA - removing generic driver

ReadEFI: /dev/sda , N 128 , 0 , , PRStart 1024 , PRSize 128

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


=================== PARTITIONS & DISKS:
sda4 : sda, not-sepboot, grubenv-ok grub2, grub-efi, update-grub, 64, with-boot, is-os, gpt-but-not-EFI, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, apt-get, grub-install, .
sda3 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, gpt-but-not-EFI, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, nopakmgr, nogrubinstall, /mnt/boot-sav/sda3.
sda1 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, is-correct-EFI, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, nopakmgr, nogrubinstall, /boot/efi.
sda5 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, gpt-but-not-EFI, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, nopakmgr, nogrubinstall, /home.

sda : GPT-BIS, GPT, no-BIOS_boot, has-correctEFI, 2048 sectors * 512 bytes

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

Model: ATA HITACHI HTS72323 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot
2 106MB 240MB 134MB Microsoft reserved partition msftres
3 240MB 87.2GB 87.0GB ntfs Basic data partition
4 87.2GB 169GB 81.9GB ext4
5 169GB 316GB 147GB ext4
6 316GB 320GB 4096MB linux-swap(v1)


=================== MOUNT:
/dev/sda4 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
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)
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)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda1 on /boot/efi type vfat (rw)
/dev/sda5 on /home type ext4 (rw)
gvfs-fuse-daemon on /home/vierlex/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=vierlex)
/dev/sda3 on /mnt/boot-sav/sda3 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


/sys/block/sda: alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 size slaves stat subsystem trace uevent
/dev: agpgart autofs block bsg btrfs-control bus char console core cpu cpu_dma_latency disk dri ecryptfs fb0 fd full fuse hpet input kmsg 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 sg0 shm snapshot snd stderr stdin stdout tpm0 uinput urandom usbmon0 usbmon1 usbmon2 v4l vga_arbiter video0 watchdog zero
/dev/mapper: control
/boot/efi: EFI
/boot/efi/EFI: Boot Microsoft ubuntu
/boot/efi/efi: Boot Microsoft ubuntu
/boot/efi/efi/Boot: bootx64.efi
/boot/efi/efi/ubuntu: grubx64.efi

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


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

Filesystem Type Size Used Avail Use% Mounted on
/dev/sda4 ext4 77G 4.1G 69G 6% /
udev devtmpfs 3.9G 12K 3.9G 1% /dev
tmpfs tmpfs 1.6G 864K 1.6G 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 3.9G 152K 3.9G 1% /run/shm
/dev/sda1 vfat 96M 18M 79M 19% /boot/efi
/dev/sda5 ext4 137G 2.2G 128G 2% /home
/dev/sda3 fuseblk 81G 30G 52G 37% /mnt/boot-sav/sda3

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

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0xf34fe538

Device Boot Start End Blocks Id System
/dev/sda1 1 625142447 312571223+ ee GPT



=================== Before mainwindow
FSCK no PASTEBIN yes WUBI no WINBOOT yes
recommendedrepair, purge, QTY_OF_PART_FOR_REINSTAL 1 no-kernel-purge
UNHIDEBOOT_ACTION yes (10s), noflag ()
PART_TO_REINSTALL_GRUB sda4, FORCE_GRUB no (sda) REMOVABLEDISK no
USE_SEPARATEBOOTPART no (sda3) grub2 ()
UNCOMMENT_GFXMODE no ATA ADD_KERNEL_OPTION no (acpi=off)
MBR_TO_RESTORE ( )
EFI detected. Please check the options.

=================== Actions
FSCK no PASTEBIN yes WUBI no WINBOOT no
bootinfo, nombraction, QTY_OF_PART_FOR_REINSTAL 1 no-kernel-purge
UNHIDEBOOT_ACTION no (10s), noflag ()
PART_TO_REINSTALL_GRUB sda4, FORCE_GRUB no (sda) REMOVABLEDISK no
USE_SEPARATEBOOTPART no (sda3) grub2 ()
UNCOMMENT_GFXMODE no ATA ADD_KERNEL_OPTION no (acpi=off)
MBR_TO_RESTORE ( )
No change has been performed on your computer. See you soon!
internet: connected


Thanks for your time and attention.



EDIT: additional Info Request





=>No boot loader is installed in the MBR of /dev/sda.




But maybe this is how it is supposed to work?




yea this is ok. boot stuff seems to be on a seperate partition, in my case sda1.
I'm very new to this UEFI thing too.




missing files like bootmgr




i don't really have a clue :D but yea, maybe thats how it suppose to be?
Instead and whats not shown in the log for some reason:
There is additional microsoft bootfiles on sda1 under /efi/microsoft/ [much stuff]



I remember also doing some kind of hack to make a UEFI windows 7 usb stick.
http://jake.io/b/2011/installing-windows-7-with-uefi-boot-on-an-x220-from-usb/
In short: creating and placing bootx64.efi on the stick so it can be booted in UEFI mode.




boot order




i decide that in my BIOS. i read somwhere that the thinkpad x220 (essential part of the serial number: 4921 http://www.lenovo.com/shop/americas/content/user_guides/x220_x220i_x220tablet_x220itablet_ug_en.pdf) doesnt really have UEFI interface or something, still, these 2 options are listed with all the other usual devices you can give a boot priority to. Right now it looks like this:



Boot Priority Order
1. ubuntu
2. Windows Boot Manager
3. USB FDD
4. USB HDD
5. ATA HDD0 HITACHI [random string]




How to avoid files being replaced with older versions in Ubuntu One?

UbuntuOne for windows has replaced an OpenOffice document with an older version of the file. I am syncing between 2 windows machines and one ubuntu machine.



Fortunately I was able to recover my work from my nightly backup. Is there some kind of log file that might help me figure out what when wrong, or how to avoid this in the future?





How to allow key functions while desktop locked

Is it possible to allow a keyboard's volume keys to continue working when your desktop is locked? Currently, the default behavior disables all special-function keys until the desktop's unlocked. I like to use my PC as a music player and leave it locked when I'm not directly at the console, but I still want to let people to control the volume if a song's too loud.





How can I change the color depth?

I'm running 11.10 and Intel HD 3000 graphics, if it helps. I've looked at previously posted solutions and tested each. None have worked so far.



My laptop has both Windows 7 and Ubuntu installed, and one day I shut down Windows 7 in a lower graphics setting because I was saving power throughout the day. I booted right into Ubuntu and noticed that the colors were no longer as smooth on the desktop background. I suspect it's just an issue with color depth. Also, I don't understand why this change occurred after I changed something in the Windows 7 OS. Anyone know?





External monitor with Macbook Pro 5,5 and Ubuntu 11.10 (Unity)

I am running a fresh install of Ubuntu 11.10 on a Macbook Pro 5,5. Everything is working great except for my external monitor. It is connected via a Mini-Displayport to VGA connector. It does not appear in Displays preferences, so I trued using the NVIDIA configuration program. It does appear there but as "DFP-2" with a maximum resolution of 640x480 (the true native resolution of the monitor is 1440x800).



I tried using disper -c and disper -S but it won't go beyond 640x480.



NVIDIA Driver Version: 280.13



Thanks for any help.





Clean up files after a process dies

I have an application that does a lot of forking, and every fork uses quite a lot of temp disk space. Currently, all of this space is used in /tmp. For various reasons, I want to clean up these tmp files asap after the process dies, preferably instantly.



The problem is that in many cases, the proc are terminated irregularly; hence the process itself should not be responsible for cleaning up its tmp files. What would be a nice way to set this up so that tmp files are removed when the process dies?



I was thinking about writing files to /tmp/myapp/$pid/ and then having a cron job every second or so that searches for directories /tmp/myapp/$pid/ and unlinks the ones for which there is no active process with that ID. But that might create a lot of overhead. Also for fun I tried if I could actually put the dir inside of the proc mkdir /proc/12345/tmp but that doesn't fly either :-)





Ubuntu 11.04 seem's like a laggy OS

I'm new to Linux/Ubuntu in general. I just Wubi installed the Ubuntu 11.04 w/Windows 7 on my Lenovo laptop - Intel i7 Quad Core 2Ghz, 4Gb ram, etc. etc... and for some reason Ubuntu is very laggy and slow.



When I'm switching between programs (Chromium, folders, software center, etc..) it doesn't run as smooth as windows 7 (I have no more than 3 programs/windows up at a time...). I don't think it's my system requirements bkz Linux OSs are known to use low system resources. Could be a bad install or do people find it slow and laggy in general or is it my PC mfg type?? I installed it using Wubi - should I do a reinstall? I've already done all the recommended updates..





OpenSSH and OpenLDAP Configuration

I have installed Ubuntu Server 11.10. I have setup LDAP with some users added.



Now i want to configure openssh to use this LDAP details to login to server. and once a user logs in each user should have their respective home directory.





Execute command before starting terminal copy file

What Happens

I write this line to copy an image to my local home dir



cp .cache/wallpaper/0_4_1280* .image.jpg



and all is well ....so I think it would be great if terminal would do this on start.
So I decide to put the line in the box to run custom command instead of shell ....
and of course no matter how i alter the line Terminal will not stat the dir and complains that dir/file doesnt exist when we know it does. If i put ls -a in the box it shows the .cache folder but will not go into it.



Screen of err



I'm starting to think I'm going about this all wrong .
So now that I've shown what I'm after, what I tried and what happens this is ....



What I want to Happen



When I click to launch terminal I would like it to execute this command and then restart at the regular prompt.



What i think i need to do is write some short bash script that will
detach gnome terminal and then execute the copy command and then restart or reattach the terminal window.



One more thing that might be an issue , (might be the one thing that is holding this all up , i dunno) is that the star is there in the copy command because the file changes (it is in the .cache folder) so the first part is always the same but the rest of the filename changes as it rotates in the .cache. Which is why i want to constantly copy the new image to a known filename, because it changes..... and i need to reference it.



Its seems so easy ....yet I cant make it go ...I don't get it





Dual-boot Windows 8 and Ubuntu, separate HDD, Win8 boot failure from GRUB

Background:




  • I installed Ubuntu 11.04 on my desktop, well, after April last year.

  • I upgraded in November to 11.10.

  • Around a month ago, I popped the SATA and power cables for the hard drive Ubuntu is on and installed Windows 8 CP to the second hard drive. (to see if I could use it as a desktop OS)

  • Three days ago, I re-connected the Ubuntu drive, used update-manager -d to go to 12.04 pre-release, and did update-grub to make sure it found the new partition. Also, I switched my default boot HDD to the Ubuntu one. (It continued to default to the Win8 one even after re-connecting the Ubuntu one.)



Now, when I boot, I get GRUB, and can boot Ubuntu just fine. GRUB also includes an entry for Windows 8 Loader. This entry will show the Beeta Fish (showing that it is in fact booting Windows 8 or some lower-level part thereof) onscreen and then a message flashes by which is 7 or 8 lines long but I cannot read. Then, my computer starts up again and I see BIOS/POST come up as though I had hit the power button following a successful power off.



Changing the default boot HDD or using the menu activated by pressing F8 during BIOS/POST to select the proper drive both result in a successful Windows 8 boot.



How can I either a) reconfigure GRUB to properly boot Windows (of course, while still booting Ubuntu) or b) configure the Windows bootloader to show up and give me the option of the Ubuntu hard drive (in which case I would turn off the GRUB menu and use the Windows drive as my default).



Using another bootloader (for instance, BURG) is okay, so long as you provide simple instructions and the boot-loader is open-source and available by PPA or a .deb file.





Trackpad and wifi won't work on an Asus EEE 1005HA

I reinstalled 11.10 on my Asus EEE 1005HA, and my mousepad hasn't been working since.



I've tried the workarounds mentioned in this post:
http://ubuntuforums.org/showthread.php?t=1867357
but, I get the message on the command line that says, "Synaptic isn't installed."



When I go to the network settings to install Synaptic, I can't turn on wifi - no wireless options exist.



How can I turn on wifi from the command line, on a new 11.10 install?
Or, is there a way to turn on the trackpad and wifi from the install thumb drive?



How can I move forward?





How do I hide Rhythmbox to just show a tray icon?

Ever since Ubuntu 11.10, it has seemingly been impossible to hide Rhythmbox and have it display just a tray icon. Instead, when lowering it, it is still shown in my Window List down the bottom of my screen, which is needlessly taking up space.



In the past, when closing the Rhythmbox window, it would disappear from the screen completely, and just show a tray icon in the top right hand corner of my screen, which I could use to show/hide it.



I'm using Ubuntu 12.04 now, and it has exactly the same problem with this as it did in 11.10. I'm using the Gnome Classic desktop. Rhythmbox is displayed in the sound section of the indicator-applet, but I can't see any way to get it to hide completely.



Is there any way to replicate the old pre-11.10 behavior where it would display only a tray icon and nothing else?





Which programs are necessary for Ubuntu?

As we know, Ubuntu comes with a lot installed on it. Many of them I either don't know what it does or just don't use. Which applications are safe to uninstall? I use mainly the basic stuff, FireFox, Thunderbird, Empathy, Shotwell, document and photo viewers. I don't think I need something like xDiagnose or xTerm





Blank Screen - Only wallpaper shows up

I installed Ubuntu from wubi in the ISO and chose the option run alongside windows. I installed it on a separate hard-disk. After I login just a blank screen shows up (shows a wallpaper and moving cursor though). I don't know what to do. Please help me soon.





How do I remove these DE's?

I have Unity, Gnome Classic and Pantheon installed and I want to remove the latter two. I want to remove all apps and such that were installed with them. What would I have to put into terminal? Thanks





How can I get the Skype notification back in the system tray?

I am running 11.04. I have Skype running but it does not show up in the notification tray. It was working until I added Skype to auto-start when I log in. Does anyone know how to make it reappear?





Can I install 12.04 by using WUBI?

It's sad becuse Ubuntu 12.04 won't come with WUBI pre-added. But is there any way to install 12.04 using WUBI?



I will Download 12.04.iso couple of days after today, and I already have 11.10 .iso image. can't I use that WUBI.exe and install 12.04 to my hard disk?



This is because my experiments on ubuntu may break it! using WUBI is the easiest to backup it!



I really don't want to download WUBI and install ubuntu through the internet (I have more PCs running ubuntu, and some got no WIndows, upgrading isn't my style)



Please help before the arrive of 12.04!!!





How to setup extetnded monitor with xrandr on netbook

I'm trying to setup an external monitor to extend my desktop for my Acer Aspire One netbook. It is running an Atom N2600 with an Intel Integrated Graphics Controller.



lspci | grep VGA output is:



00:02.0 VGA compatible controller: Intel Corporation Device 0be1 (rev 09)



xrandr output is:



xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 600, current 1024 x 600, maximum 1024 x 600
default connected 1024x600+0+0 0mm x 0mm
1024x600 0.0*



My external monitor only appears to get a signal when it is connected and I reboot the netbook, at that time I get a mirrored display but both the netwook (max 1024x600) and the external LCD have a 1920x1280 resolution. Xrandr never shows 2 displays.



How can i get xrandr to see two different displays so that I can configure them?





Ubuntu constantly freezing at random time

I recently bought completely new hardware and built a server running Ubuntu Server 11.10 x64. Most things are working good, except for one rather large issue that I'm experiencing; the system keeps randomly freezing.



The freeze could occur at any time, thought it seems they occur when the server is idle, and not doing anything in particular. I've tried to modify the grub config (I have ran sudo grub-update) and I've also updated my EFI version amongst other things.



My system is running off a 64GB Crucial M4 SSD and I have three 2TB drives hooked up into a RAID5 array.



Once the server freezes, there's no contacting it. The keyboard connected does not respond to any keypress and the server closes any connection, be it SSH, VPN or even network interfaces. I'm not an Ubuntu master, but I do want to learn more about the system and get my server working, but the constant freezes are a huge problem. Also, when it freezes and I look at the monitor, the last thing that was being displayed when it froze is still there, and the LCD I have mounted to the front of my chassi is also frozen. It's just like everything is coming to a halt.



I've posted my dmesg.log file here, though I haven't been able to find anything particular myself. But this might just be because I do not know exactly what to look for.
http://paste.ubuntu.com/835541/



Though, these lines in particular might mean something:



[   29.193372] init: ssh main process (1012) terminated with status 255
[ 29.217099] init: failsafe main process (991) killed by TERM signal


To me it looks like SSH is being shut down and some kind of failsafe process is also being killed, allowing this freeze to occur. But that might just sound crazy to whoever is experiencing enough to tell.



These are my server specifications if that might help solve the issue:




  • CPU: Intel Core i3 2120 3,3Ghz


  • GPU: Asus GeForce ENGT520


  • Motherboard: Asus P8H67-M B3


  • Memory: Corsair XMS3 DDR3 PC10666/1333MHz


  • HDD:s 3x Seagate Barracuda Green ST2000DL003 2TB Drives


  • SSD: 64GB Crucial M4




I've been trying hard to solve this issue for weeks without any bit off success, any advices are welcome!



Thanks in advance // Jonathan



EDIT: I started a tail on my syslog yesterday with the following command:



"sudo tail -f /var/log"


And now that I got home the server had frozen again, but the last entries were hours before the freezing occured, I know that because my VPN connection disconnected about 3.30PM when I was at work. Are there any other files I could tail in hopes of finding something?





How to install Lexmark S308 printer?

I have a multi function lexmark printer with a instalation cd but can get the .exe to run, Im new to the ubuntu world so i dont know how to install third party software yet. Thank for your help.





Illustrator alternative

I have just migrated to Ubuntu a few months ago, and find myself wanting Illustrator again. What is the best alternative for vector based drawing? Can Gimp do vector as well, or is it mainly pixel based like Photoshop?





How do I simulate overprinting in Adobe Reader?

On both Mac and Windows when I print a document there is an advanced screen that allows me to select an option called Simulate Overprinting, however such an option doesn't appear on the Ubuntu version.



Wikipedia on overprinting:




Overprinting refers to the process of printing one colour on top of
another in reprographics. This is closely linked to the reprographic
technique of 'trapping'. Another use of overprinting is to create a
rich black (often regarded as a colour that is "blacker than black")
by printing black over another dark colour.




This is an issue for us, as we're trying to print documents that need flattening (this is what overprinting does).



Am I missing something here, is there a way to enable overprinting on printed PDFs?



Note: Please don't confuse simulate overprinting with overprint preview, of which doesn't apply when printing.



Just to show you what I'm looking for, this is the Print > Advanced screen...
enter image description here



And this is what I see on the Ubuntu screen, not no option for overprinting
enter image description here





Team Viewer on Ubuntu! Is it running through wine?

I downloaded recently Team Viewer on my Ubuntu system, so my question is:




  1. Does it run through wine?

  2. And if yes, why is this a .deb file?

  3. Is it possible to make .deb files but running with wine?



***edit--->When I launched it for first time wine configuration showed up. Is it necessary to post a screen-shot for that?





How to edit CD Rip settings in Rhythmbox to improve mp3 quality

I'M trying to edit the mp3 rip settings in rhythmbox in order to increase the quality to 320 kbs, but the edit button is locked in Ubuntu 12.04



http://ubuntuone.com/4QqbHZ20RmWWrRZynk2ctZ



Any help please?



Thanks.-





Headphones Very Quiet in Ubuntu 12.04 with Intel HDA

Ubuntu 12.04 on an Asus G71-GX with an Intel 82801JI (ICH10 Family) HD audio controller (using the HDA Intel driver). When I plug in headphones, they are detected and the level is appropriate, but the sound through the headphones is very quiet. Tested with multiple headphones, jack works fine in Windows. Suggestions?





No internet connection via nic card

I have just installed mint on my computer for the first time and am unable to connect to the internet via the on board network card.

I have never used this system before only windows and do not no how to install drivers for the network card or how to find devices under the mint system.

As i am new to linux can anyone guide me


Thanks





Ubuntu OpenWeek, 2-4 May on Freenode

submitted by whiprush
[link] [comment]



Ubuntu 12.04 Review: the Best Yet

submitted by ingalactic
[link] [8 comments]



[Phoronix] Valve's Gabe Newell Talks Linux Steam Client, Source Engine

submitted by Smotko
[link] [41 comments]



guys... the time has come

submitted by miguelavg
[link] [11 comments]