Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: dualboot Win7+linuxMint13 [vyřešeno]  (Přečteno 4597 krát)

rastafa

  • Návštěvník
  • Příspěvků: 31
dualboot Win7+linuxMint13 [vyřešeno]
« kdy: 11 Ledna 2013, 13:59:25 »
Zdar ubuntáci , mám problém  :)

Nainštaloval som linuxMint vedla Win7 na jeden disk cez USB. Disk som nerozdeľoval manuálne...len som pri inštalácii Mintu určil koľko miesta si má win7 nechať pre seba.
Inštaloval som to z USB klúča.
Problém je v tom že keď zapnem notebook tak mi nedá na výber aký systém chcem zapnúť ale rovno nabehne LinuxMint.
Ale ak nechám zapojení USB klúč v notebooku tak mi dá na výber medzi Win7 a Linuxom.

Ako to spraviť aby som nemusel bootovat s USB klúčom ak chcem zapnút win7.

Výpis: fdisk -l

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 / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0b277fa7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   349196534   174494843+   7  HPFS/NTFS/exFAT
/dev/sda3       614637568   625123327     5242880    c  W95 FAT32 (LBA)
/dev/sda4       349198334   614637567   132719617    5  Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5       349198336   606382079   128591872   83  Linux
/dev/sda6       606384128   614637567     4126720   82  Linux swap / Solaris

Partition table entries are not in disk order



Ma niekto radu čo s tým?
« Poslední změna: 11 Ledna 2013, 22:12:17 od František Zatloukal »
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

Cuore

  • Závislák
  • ***
  • Příspěvků: 2534
Re:dualboot Win7+linuxMint13
« Odpověď #1 kdy: 11 Ledna 2013, 14:49:58 »
Obnov grub na správný disk, tobě se při instalaci vytvořil na USB klíči
http://wiki.ubuntu.cz/grub2

rastafa

  • Návštěvník
  • Příspěvků: 31
Re:dualboot Win7+linuxMint13
« Odpověď #2 kdy: 11 Ledna 2013, 15:12:38 »
To som už skúšal  :( sudo apt-get install grub
ešte prikladám výpis z boot_info_script:
Kód: [Vybrat]
                  Boot Info Script 0.61      [1 April 2012]


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

 => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the
    same drive in partition #5 for /boot/grub/stage2 and /boot/grub/menu.lst.
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and uses an
    embedded config file:
   
    ---------------------------------------------------------------------------
    search.fs_uuid 02242001-cbbc-4167-9c72-7834bf654423 root
    set prefix=($root)/boot/grub
    ---------------------------------------------------------------------------
    -----.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

    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

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Linux Mint 13 Maya
    Boot files:        /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab
                       /boot/grub/core.img

sda6: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.03 2010-10-22 ........>..sr>..........9...0...~.....~...f...M.f.f....f..0~....>E}.u......
    Boot sector info:  Syslinux looks at sector 3300336 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/bootx64.efi /ldlinux.sys

============================ 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 / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848   349,196,534   348,989,687   7 NTFS / exFAT / HPFS
/dev/sda3         614,637,568   625,123,327    10,485,760   c W95 FAT32 (LBA)
/dev/sda4         349,198,334   614,637,567   265,439,234   5 Extended
/dev/sda5         349,198,336   606,382,079   257,183,744  83 Linux
/dev/sda6         606,384,128   614,637,567     8,253,440  82 Linux swap / Solaris


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 8019 MB, 8019509248 bytes
20 heads, 16 sectors/track, 48947 cylinders, total 15663104 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    *             80    15,663,103    15,663,024   b W95 FAT32


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        3A6E7E3F6E7DF3CB                       ntfs       System Reserved
/dev/sda2        7652816F528134C1                       ntfs       
/dev/sda3        AAB4-0C4B                              vfat       HP_TOOLS
/dev/sda5        02242001-cbbc-4167-9c72-7834bf654423   ext4       
/dev/sda6        0d5e708a-7d22-472b-b525-fb17bb2dd580   swap       
/dev/sdb1        EE5E-AE01                              vfat       

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

Device           Mount_Point              Type       Options

/dev/sda1        /media/System Reserved   fuseblk    (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda2        /media/7652816F528134C1  fuseblk    (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda3        /media/HP_TOOLS          vfat       (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
/dev/sda5        /                        ext4       (rw,errors=remount-ro)
/dev/sdb1        /media/EE5E-AE01         vfat       (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)


=========================== sda5/boot/grub/menu.lst: ===========================

--------------------------------------------------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=02242001-cbbc-4167-9c72-7834bf654423 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=02242001-cbbc-4167-9c72-7834bf654423

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Linux Mint 13 Maya, kernel 3.2.0-23-generic
uuid 02242001-cbbc-4167-9c72-7834bf654423
kernel /boot/vmlinuz-3.2.0-23-generic root=UUID=02242001-cbbc-4167-9c72-7834bf654423 ro quiet splash
initrd /boot/initrd.img-3.2.0-23-generic
quiet

title Linux Mint 13 Maya, kernel 3.2.0-23-generic (recovery mode)
uuid 02242001-cbbc-4167-9c72-7834bf654423
kernel /boot/vmlinuz-3.2.0-23-generic root=UUID=02242001-cbbc-4167-9c72-7834bf654423 ro  single
initrd /boot/initrd.img-3.2.0-23-generic

title Chainload into GRUB 2
root 02242001-cbbc-4167-9c72-7834bf654423
kernel /boot/grub/core.img

title Linux Mint 13 Maya, memtest86+
uuid 02242001-cbbc-4167-9c72-7834bf654423
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------

=========================== sda5/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="Windows 7 (loader) (on /dev/sda1)"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

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

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

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

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 02242001-cbbc-4167-9c72-7834bf654423
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos5)'
  search --no-floppy --fs-uuid --set=root 02242001-cbbc-4167-9c72-7834bf654423
  set locale_dir=($root)/boot/grub/locale
  set lang=sk_SK
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=17
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/10_mint_theme ###

### BEGIN /etc/grub.d/11_linux ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/sda5)' --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 02242001-cbbc-4167-9c72-7834bf654423
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=02242001-cbbc-4167-9c72-7834bf654423 ro   quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/sda5) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 02242001-cbbc-4167-9c72-7834bf654423
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=02242001-cbbc-4167-9c72-7834bf654423 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
### END /etc/grub.d/11_linux ###

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

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

### BEGIN /etc/grub.d/14_memtest86+_proxy ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 02242001-cbbc-4167-9c72-7834bf654423
linux16 /boot/memtest86+.bin
}
### END /etc/grub.d/14_memtest86+_proxy ###

### BEGIN /etc/grub.d/15_os-prober_proxy ###
### END /etc/grub.d/15_os-prober_proxy ###

### BEGIN /etc/grub.d/16_memtest86+_proxy ###
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 02242001-cbbc-4167-9c72-7834bf654423
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/16_memtest86+_proxy ###

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

### BEGIN /etc/grub.d/18_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/18_custom ###

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

=============================== sda5/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/sda5 during installation
UUID=02242001-cbbc-4167-9c72-7834bf654423 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=0d5e708a-7d22-472b-b525-fb17bb2dd580 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 206.653434753 = 221.892435968  boot/grub/core.img                             1
 264.794055939 = 284.320452608  boot/grub/grub.cfg                             1
 264.803859711 = 284.330979328  boot/grub/menu.lst                             1
 214.646144867 = 230.474543104  boot/grub/stage2                               1
 167.430187225 = 179.776794624  boot/initrd.img-3.2.0-23-generic               1
 214.644268036 = 230.472527872  boot/vmlinuz-3.2.0-23-generic                  1
 167.430187225 = 179.776794624  initrd.img                                     1
 214.644268036 = 230.472527872  vmlinuz                                        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=white/light-gray

menuentry "Start Linux Mint" {
set gfxpayload=keep
linux /casper/vmlinuz  file=/cdrom/preseed/mint.seed boot=casper quiet splash --
initrd /casper/initrd.lz
}
menuentry "Start Linux Mint (compatibility mode)" {
set gfxpayload=keep
linux /casper/vmlinuz  file=/cdrom/preseed/mint.seed boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --
initrd /casper/initrd.lz
}
menuentry "Check the integrity of the medium" {
set gfxpayload=keep
linux /casper/vmlinuz  boot=casper integrity-check 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/mint.seed boot=casper quiet splash --

label ubnentry0
menu label Start Linux Mint
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper  quiet splash --

label ubnentry1
menu label Start in compatibility mode
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper xforcevesa nomodeset b43.blacklist=yes  ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --

label ubnentry2
menu label Integrity check
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz boot=casper integrity-check  quiet splash --

label ubnentry3
menu label Memory test
kernel /isolinux/memtest
append initrd=/ubninit

label ubnentry4
menu label Boot from local drive
kernel /ubnkern
append initrd=/ubninit

label ubnentry5
menu label Start Linux Mint (compatibility mode)
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/mint.seed boot=casper xforcevesa ramdisk_size=1048576 root=/dev/ram rw noapic noapci nosplash irqpoll --

label ubnentry6
menu label Check the integrity of the medium
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz boot=casper integrity-check 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)

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

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

 menu.c32                           :  COM32R module (v4.xx)

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




« Poslední změna: 11 Ledna 2013, 16:29:35 od František Zatloukal »
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

František Zatloukal

  • Závislák
  • ***
  • Příspěvků: 1799
    • frantisek.zatloukalu.eu
Re:dualboot Win7+linuxMint13
« Odpověď #3 kdy: 11 Ledna 2013, 16:31:11 »
To som už skúšal  :( sudo apt-get install grub
Toto ale není oprava GRUBU :)
Pročti si to pořádně: http://wiki.ubuntu.cz/grub2#obnovení_grub2_pomocí_livecd
First they ignore you, then they laugh at you,
then they fight you, then you win.
Powered by Fedora 22 | Ubuntu 15.10

Cuore

  • Závislák
  • ***
  • Příspěvků: 2534
Re:dualboot Win7+linuxMint13
« Odpověď #4 kdy: 11 Ledna 2013, 16:59:55 »
tady jsem psal v jednom příspěvku jak obnovit zavaděč, tak podle toho postupuj, jen si to trochu uprav podle svého systému
Citace
Vyzkoušej ještě tenhle postup, dej LiveCD a zvol si možnost vyzkoušet. Jak budeš v systému, otevři si GParted a mrkni na oddíly disku, jestli není náhodou nějaký poškozený atd. Pokud jsou všechny viditelné, tak si najdi svůj kořenový adresář toho mrtvého ubuntu. Pokud si nejsi jistý, tak ho klidně připoj (v GParted je to hračka) a podívej se na jeho obsah, bude mít adresáře jako je /etc/, /bin/, /boot/,atd. Pokud ho máš identifikovaný a předtím si ho připojoval (aby si ho prohledal) tak ho hlavně nezapomeň opět odpojit!! V mém případě mám kořenový adresář /dev/sdc4, tak ti sepíši postup pro můj PC ty si jen upravíš název podle tvého kořenového adresáře. Otevři terminál a zadej tyto příkazy:
Kód: [Vybrat]

sudo mkdir /mnt/ubuntu
sudo mount /dev/sdc4 /mount/ubuntu
sudo mount --bind /dev /mnt/ubuntu/dev
sudo mount -t proc none /mnt/ubuntu/proc
sudo chroot /mnt/ubuntu
sudo grub-install --no-floppy /dev/sdc

Takže pokud tvůj kořenový adresář bude třeba /dev/sda1 dáš ho v druhém příkazu místo /dev/sdc4 a na konci místo /dev/sdc dáš dev/sda....
Restartuj počítač a snad to půjde. Dávej pozor, aby ti nevyskočila žádná chyba při zadávání příkazů. Pokud by poslední příkaz selhal vyzkoušej ještě
Kód: [Vybrat]

sudo grub-install --recheck --no-floppy /dev/sdc

rastafa

  • Návštěvník
  • Příspěvků: 31
Re:dualboot Win7+linuxMint13
« Odpověď #5 kdy: 11 Ledna 2013, 17:27:19 »
Kód: [Vybrat]
tak som isiel podla wiki :

[quote]sudo grub-install --root-directory=/mnt /dev/sda
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /mnt/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'. [/quote]

po restarte:
[quote]sudo update-grub
[sudo] password for fero:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.2.0-23-generic
Found GRUB 2: /boot/grub/core.img[/quote]
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

teraz mi pri starte z disku da na výber len linux:



Uploaded with ImageShack.us



ale ak dám bootovat z USB z ktorého som inštaloval linux tak mam na výber aj windows, no liveCD z neho neviem spustiť:



Uploaded with ImageShack.us

Ako keby win zavádzač presunulo na USB.

tak uz neviem  ???

« Poslední změna: 11 Ledna 2013, 17:32:33 od rastafa »
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

rastafa

  • Návštěvník
  • Příspěvků: 31
Re:dualboot Win7+linuxMint13
« Odpověď #6 kdy: 11 Ledna 2013, 18:43:46 »
poradí niekto ako ten zavadzac pre win7 z usb presunút na disk. aby som nemusel bootovat z usb keď chcem spustiť win7.

pomoooc.
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

František Zatloukal

  • Závislák
  • ***
  • Příspěvků: 1799
    • frantisek.zatloukalu.eu
Re:dualboot Win7+linuxMint13
« Odpověď #7 kdy: 11 Ledna 2013, 20:28:40 »
To vypadá, jako kdybys měl na disku legacy grub (zastaralou verzi). Zkus tedy
Kód: [Vybrat]
sudo update-grub2
Restartovat a vyber možnost Chainload into GRUB 2. Co to ukáže?
First they ignore you, then they laugh at you,
then they fight you, then you win.
Powered by Fedora 22 | Ubuntu 15.10

rastafa

  • Návštěvník
  • Příspěvků: 31
Re:dualboot Win7+linuxMint13
« Odpověď #8 kdy: 11 Ledna 2013, 20:58:13 »
tak to nejde
Kód: [Vybrat]
~ $ sudo update-grub2
sudo: update-grub2: command not found


ak vyberiem chainload into GRUB2 tak vyhodí ERROR11. a po potvrdený ma vráti späť



Uploaded with ImageShack.us

« Poslední změna: 11 Ledna 2013, 21:01:51 od rastafa »
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

František Zatloukal

  • Závislák
  • ***
  • Příspěvků: 1799
    • frantisek.zatloukalu.eu
Re:dualboot Win7+linuxMint13
« Odpověď #9 kdy: 11 Ledna 2013, 21:13:39 »
Zkus toto:
Kód: [Vybrat]
sudo apt-get install grub2
sudo grub-install /dev/sda
sudo update-grub2
First they ignore you, then they laugh at you,
then they fight you, then you win.
Powered by Fedora 22 | Ubuntu 15.10

rastafa

  • Návštěvník
  • Příspěvků: 31
Re:dualboot Win7+linuxMint13
« Odpověď #10 kdy: 11 Ledna 2013, 21:27:35 »
dal som
Kód: [Vybrat]
fero@fero-HP ~ $ sudo apt-get install grub2
[sudo] password for fero:
Načítavajú sa zoznamy balíkov... Hotovo
Vytvára sa strom závislostí             
Načítavajú sa stavové informácie... Hotovo
Nainštalujú sa nasledovné extra balíky:
  grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common
Navrhované balíky:
  multiboot-doc grub-emu xorriso desktop-base
Nasledovné balíky sa ODSTRÁNIA:
  grub
Nainštalujú sa nasledovné NOVÉ balíky:
  grub-gfxpayload-lists grub-pc grub2 grub2-common
Nasledovné balíky sa aktualizujú:
  grub-common grub-pc-bin
2 aktualizovaných, 4 nových nainštalovaných, 1 na odstránenie a 513 neaktualizovaných.
Je potrebné stiahnuť 3 174 kB archívov.
Po tejto operácii sa na disku uvoľní 1 561 kB.
Chcete pokračovať [Y/n]? y
Získava sa:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-pc-bin amd64 1.99-21ubuntu3.7 [867 kB]
Získava sa:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-common amd64 1.99-21ubuntu3.7 [2 068 kB]
Získava sa:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub2-common amd64 1.99-21ubuntu3.7 [94,2 kB]
Získava sa:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-pc amd64 1.99-21ubuntu3.7 [140 kB]
Získava sa:5 http://archive.ubuntu.com/ubuntu/ precise/main grub-gfxpayload-lists amd64 0.6 [3 506 B]
Získava sa:6 http://archive.ubuntu.com/ubuntu/ precise-updates/universe grub2 amd64 1.99-21ubuntu3.7 [2 514 B]
3 174 kB sa stiahlo za 21 s (144 kB/s)                                         
Pripravuje sa nastavenie balíkov ...
(Číta sa databáza ... momentálne je nainštalovaných 140965 súborov alebo adresárov.
Odstraňuje sa grub ...
Spracúvajú sa spúšťače man-db ...
(Číta sa databáza ... momentálne je nainštalovaných 140921 súborov alebo adresárov.
Pripravuje sa nahradenie grub-pc-bin 1.99-21ubuntu3 (pomocou .../grub-pc-bin_1.99-21ubuntu3.7_amd64.deb) ...
Rozbaľuje sa náhrada grub-pc-bin ...
Pripravuje sa nahradenie grub-common 1.99-21ubuntu3 (pomocou .../grub-common_1.99-21ubuntu3.7_amd64.deb) ...
Rozbaľuje sa náhrada grub-common ...
Selecting previously unselected package grub2-common.
Rozbaľuje sa grub2-common (z .../grub2-common_1.99-21ubuntu3.7_amd64.deb) ...
Selecting previously unselected package grub-pc.
Rozbaľuje sa grub-pc (z .../grub-pc_1.99-21ubuntu3.7_amd64.deb) ...
Selecting previously unselected package grub-gfxpayload-lists.
Rozbaľuje sa grub-gfxpayload-lists (z .../grub-gfxpayload-lists_0.6_amd64.deb) ...
Selecting previously unselected package grub2.
Rozbaľuje sa grub2 (z .../grub2_1.99-21ubuntu3.7_amd64.deb) ...
Spracúvajú sa spúšťače ureadahead ...
ureadahead will be reprofiled on next reboot
Spracúvajú sa spúšťače man-db ...
Spracúvajú sa spúšťače install-info ...
Nastavuje sa balík grub-common (1.99-21ubuntu3.7) ...
Inštaluje sa nová verzia konfiguračného súboru /etc/grub.d/00_header ...

Konfiguračný súbor „/etc/grub.d/10_linux“
 ==> Zmazané (vami alebo skriptom) od doby inštalácie.
 ==> Distribútor balíka dodal upravenú verziu.
   Čo s tým chcete urobiť?  Možné voľby sú:
    Y or I  : nainštalovať verziu od správcu balíka
    N or O  : ponechať momentálne nainštalovanú verziu
      D     : zobraziť rozdiely medzi verziami
      Z     : spustiť shell a preskúmať situáciu
 Predvolenou operáciou je ponechanie vašej aktuálnej verzie.
*** 10_linux (Y/I/N/O/D/Z) [predvolené=N] ?

co dalej?
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

František Zatloukal

  • Závislák
  • ***
  • Příspěvků: 1799
    • frantisek.zatloukalu.eu
Re:dualboot Win7+linuxMint13
« Odpověď #11 kdy: 11 Ledna 2013, 21:34:13 »
Y
First they ignore you, then they laugh at you,
then they fight you, then you win.
Powered by Fedora 22 | Ubuntu 15.10

rastafa

  • Návštěvník
  • Příspěvků: 31
Re:dualboot Win7+linuxMint13
« Odpověď #12 kdy: 11 Ledna 2013, 21:44:44 »
dal som Y a vybehko mi toto:

Kód: [Vybrat]
Nastavenie balíka                                                               
                                                                               
                                                                               
 ┌─────────────────────────┤ Nastavovanie grub-pc ├──────────────────────────┐ 
 │ A new version of configuration file /etc/default/grub is available, but   │ 
 │ the version installed currently has been locally modified.                │ 
 │                                                                           │ 
 │ What do you want to do about modified configuration file grub?            │ 
 │                                                                           │ 
 │        install the package maintainer's version                           │ 
 │        keep the local version currently installed                         │ 
 │        show the differences between the versions                          │ 
 │        show a side-by-side difference between the versions                │ 
 │        show a 3-way difference between available versions                 │ 
 │        do a 3-way merge between available versions (experimental)         │ 
 │        start a new shell to examine the situation                         │ 
 │                                                                           │ 
 │                                                                           │ 
 │                                  <Ok>                                     │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
                                                                               
                                                                               
   

ktorý riadok mám potvrdit?
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

František Zatloukal

  • Závislák
  • ***
  • Příspěvků: 1799
    • frantisek.zatloukalu.eu
Re:dualboot Win7+linuxMint13
« Odpověď #13 kdy: 11 Ledna 2013, 22:04:02 »
První.
First they ignore you, then they laugh at you,
then they fight you, then you win.
Powered by Fedora 22 | Ubuntu 15.10

rastafa

  • Návštěvník
  • Příspěvků: 31
Re:dualboot Win7+linuxMint13
« Odpověď #14 kdy: 11 Ledna 2013, 22:17:48 »
dakujem za pomoc. uz to bootuje ako ma  ;)

pomohlo:

Kód: [Vybrat]
sudo apt-get install grub2
sudo grub-install /dev/sda
sudo update-grub2



Uploaded with ImageShack.us
« Poslední změna: 11 Ledna 2013, 22:19:50 od rastafa »
asus EEE 1000HD , ubuntu 10.04 32 bit
HP Probook 4330s Intel® Core™ i3-2350M CPU @ 2.30GHz , dualboot: Windows7 64bit + LinuxMint13 64bit

František Zatloukal

  • Závislák
  • ***
  • Příspěvků: 1799
    • frantisek.zatloukalu.eu
Re:dualboot Win7+linuxMint13 [vyřešeno]
« Odpověď #15 kdy: 11 Ledna 2013, 22:34:05 »
Ok ;)
First they ignore you, then they laugh at you,
then they fight you, then you win.
Powered by Fedora 22 | Ubuntu 15.10

 

Provoz zaštiťuje spolek OpenAlt.