Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: dualboot win7/ubuntu9.04 (dubbel SATA!)  (gelezen 1810 keer)

stereopanda

  • Gast
dualboot win7/ubuntu9.04 (dubbel SATA!)
« Gepost op: 2009/10/01, 09:34:58 »
Hey allemaal,
Ik heb een probleempje met het maken van een dualboot. Ik beschik over 2 samsung spinpoints van 1TB waarvan er op eentje Windows 7 staat, en op de andere ubuntu 9.04. De windows 7 schijf heb ik al enkele maanden in gebruik gehad, waarna ik een paar dagen geleden de 2e schijf erbij heb gekocht om ubuntu op te installeren. Echter na deze installatie is het voor mij onmogelijk geworden om te booten naar windows, aangezien ik dan verschillende grub errors om mijn error krijg geslingerd, zoals bijvoorbeeld error 13 en een andere melding die zegt dat deze partitie geen valid boot partition is.

Ik heb zelf al geprobeerd om mijn menu.lst bestand aan te passen met onder andere de volgende parameters:
title Microsoft Windows 7
rootnoverify (hd0,1)
map (hd0) (hd1)
map (hd1) (hd0)
savedefault
makeactive
chainloader +1

title Microsoft Windows 7
rootnoverify (hd0,1)
makeactive
chainloader +1

en

title Microsoft Windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1

Hier ook nog de weergave van mijn boot summary:
============================= Boot Info Summary: ==============================

 => Grub0.97 is installed in the MBR of /dev/sda and looks at sector 600457279
    on boot drive #2 for the stage2 file. A stage2 file is at this location on
    /dev/sdb. Stage2 looks on partition #1 for /boot/grub/menu.lst.
 => No boot loader is installed in the MBR of /dev/sdb

sda1: _________________________________________________________________________

    File system:       vfat
    Boot sector type:  BSD4.4: Fat32
    Boot sector info:  According to the info in the boot sector, sda1 starts
                       at sector 0. But according to the info from fdisk,
                       sda1 starts at sector 40.
    Operating System: 
    Boot files/dirs:   

sda2: _________________________________________________________________________

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

sdb1: _________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 9.04
    Boot files/dirs:   /boot/grub/menu.lst /etc/fstab

sdb2: _________________________________________________________________________

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

sdb5: _________________________________________________________________________

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

=========================== 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
Disk identifier: 0x00000000

Partition  Boot         Start           End          Size  Id System

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


GUID Partition Table detected.

Partition           Start           End          Size System
/dev/sda1              40       409,639       409,600 System/Boot Partition
/dev/sda2         409,640 1,953,260,871 1,952,851,232 HFS+

Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00095b47

Partition  Boot         Start           End          Size  Id System

/dev/sdb1    *             63 1,918,177,064 1,918,177,002  83 Linux
/dev/sdb2       1,918,177,065 1,953,520,064    35,343,000   5 Extended
/dev/sdb5       1,918,177,128 1,953,520,064    35,342,937  82 Linux swap / Solaris


blkid -c /dev/null: ____________________________________________________________

/dev/sda1: LABEL="EFI" UUID="3F3C-1AF6" TYPE="vfat"
/dev/sdb1: UUID="4b4e9052-bba3-4859-8b9d-1087ac733ed2" TYPE="ext3"
/dev/sdb5: TYPE="swap" UUID="309c260f-cdd7-419d-8a87-92897c0a97fc"

=============================== "mount" output: ===============================

/dev/sdb1 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-15-generic/volatile type tmpfs (rw,mode=755)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/niels/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=niels)


=========================== sdb1/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-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        10

## 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'
# 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=4b4e9052-bba3-4859-8b9d-1087ac733ed2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=4b4e9052-bba3-4859-8b9d-1087ac733ed2

## 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        Ubuntu 9.04, kernel 2.6.28-15-generic
uuid        4b4e9052-bba3-4859-8b9d-1087ac733ed2
kernel        /boot/vmlinuz-2.6.28-15-generic root=UUID=4b4e9052-bba3-4859-8b9d-1087ac733ed2 ro quiet splash
initrd        /boot/initrd.img-2.6.28-15-generic
quiet

title        Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
uuid        4b4e9052-bba3-4859-8b9d-1087ac733ed2
kernel        /boot/vmlinuz-2.6.28-15-generic root=UUID=4b4e9052-bba3-4859-8b9d-1087ac733ed2 ro  single
initrd        /boot/initrd.img-2.6.28-15-generic

title        Ubuntu 9.04, kernel 2.6.28-11-generic
uuid        4b4e9052-bba3-4859-8b9d-1087ac733ed2
kernel        /boot/vmlinuz-2.6.28-11-generic root=UUID=4b4e9052-bba3-4859-8b9d-1087ac733ed2 ro quiet splash
initrd        /boot/initrd.img-2.6.28-11-generic
quiet

title        Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid        4b4e9052-bba3-4859-8b9d-1087ac733ed2
kernel        /boot/vmlinuz-2.6.28-11-generic root=UUID=4b4e9052-bba3-4859-8b9d-1087ac733ed2 ro  single
initrd        /boot/initrd.img-2.6.28-11-generic

title        Ubuntu 9.04, memtest86+
uuid        4b4e9052-bba3-4859-8b9d-1087ac733ed2
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title        Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows 7
rootnoverify (hd0,1)
map (hd0) (hd1)
map (hd1) (hd0)
savedefault
makeactive
chainloader +1


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

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' 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    defaults        0       0
# / was on /dev/sdb1 during installation
UUID=4b4e9052-bba3-4859-8b9d-1087ac733ed2 /               ext3    relatime,errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=309c260f-cdd7-419d-8a87-92897c0a97fc none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

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


 307.4GB: boot/grub/menu.lst
 307.4GB: boot/grub/stage2
 307.4GB: boot/initrd.img-2.6.28-11-generic
 307.4GB: boot/initrd.img-2.6.28-15-generic
 307.3GB: boot/vmlinuz-2.6.28-11-generic
 307.4GB: boot/vmlinuz-2.6.28-15-generic
 307.4GB: initrd.img
 307.4GB: initrd.img.old
 307.4GB: vmlinuz
 307.3GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader  on sda2

00000000  57 00 00 00 61 00 72 00  2d 00 4c 00 42 00 00 00  |W...a.r.-.L.B...|
00000010  73 00 72 00 2d 00 4c 00  61 00 74 00 6e 00 2d 00  |s.r.-.L.a.t.n.-.|
00000020  4d 00 45 00 00 00 90 90  65 00 73 00 2d 00 41 00  |M.E.....e.s.-.A.|
00000030  52 00 00 00 65 00 6e 00  2d 00 54 00 54 00 00 00  |R...e.n.-.T.T...|
00000040  61 00 72 00 2d 00 4a 00  4f 00 00 00 73 00 72 00  |a.r.-.J.O...s.r.|
00000050  2d 00 43 00 79 00 72 00  6c 00 2d 00 52 00 53 00  |-.C.y.r.l.-.R.S.|
00000060  00 00 90 90 65 00 73 00  2d 00 50 00 45 00 00 00  |....e.s.-.P.E...|
00000070  65 00 6e 00 2d 00 42 00  5a 00 00 00 61 00 72 00  |e.n.-.B.Z...a.r.|
00000080  2d 00 53 00 59 00 00 00  73 00 6d 00 6e 00 2d 00  |-.S.Y...s.m.n.-.|
00000090  46 00 49 00 00 00 90 90  73 00 72 00 2d 00 4c 00  |F.I.....s.r.-.L.|
000000a0  61 00 74 00 6e 00 2d 00  52 00 53 00 00 00 90 90  |a.t.n.-.R.S.....|
000000b0  65 00 73 00 2d 00 43 00  4f 00 00 00 65 00 6e 00  |e.s.-.C.O...e.n.|
000000c0  2d 00 30 00 32 00 39 00  00 00 90 90 61 00 72 00  |-.0.2.9.....a.r.|
000000d0  2d 00 59 00 45 00 00 00  73 00 6d 00 73 00 2d 00  |-.Y.E...s.m.s.-.|
000000e0  46 00 49 00 00 00 90 90  62 00 73 00 2d 00 43 00  |F.I.....b.s.-.C.|
000000f0  79 00 72 00 6c 00 2d 00  42 00 41 00 00 00 90 90  |y.r.l.-.B.A.....|
00000100  65 00 73 00 2d 00 56 00  45 00 00 00 65 00 6e 00  |e.s.-.V.E...e.n.|
00000110  2d 00 4a 00 4d 00 00 00  61 00 72 00 2d 00 4f 00  |-.J.M...a.r.-.O.|
00000120  4d 00 00 00 73 00 6d 00  61 00 2d 00 53 00 45 00  |M...s.m.a.-.S.E.|
00000130  00 00 90 90 73 00 72 00  2d 00 43 00 79 00 72 00  |....s.r.-.C.y.r.|
00000140  6c 00 2d 00 42 00 41 00  00 00 90 90 65 00 73 00  |l.-.B.A.....e.s.|
00000150  2d 00 44 00 4f 00 00 00  65 00 6e 00 2d 00 5a 00  |-.D.O...e.n.-.Z.|
00000160  41 00 00 00 61 00 72 00  2d 00 54 00 4e 00 00 00  |A...a.r.-.T.N...|
00000170  73 00 6d 00 61 00 2d 00  4e 00 4f 00 00 00 90 90  |s.m.a.-.N.O.....|
00000180  73 00 72 00 2d 00 4c 00  61 00 74 00 6e 00 2d 00  |s.r.-.L.a.t.n.-.|
00000190  42 00 41 00 00 00 90 90  66 00 72 00 2d 00 4d 00  |B.A.....f.r.-.M.|
000001a0  43 00 00 00 65 00 73 00  2d 00 50 00 41 00 00 00  |C...e.s.-.P.A...|
000001b0  65 00 6e 00 2d 00 49 00  45 00 00 00 61 00 72 00  |e.n.-.I.E...a.r.|
000001c0  2d 00 4d 00 41 00 00 00  73 00 6d 00 6a 00 2d 00  |-.M.A...s.m.j.-.|
000001d0  53 00 45 00 00 00 90 90  62 00 73 00 2d 00 4c 00  |S.E.....b.s.-.L.|
000001e0  61 00 74 00 6e 00 2d 00  42 00 41 00 00 00 90 90  |a.t.n.-.B.A.....|
000001f0  66 00 72 00 2d 00 4c 00  55 00 00 00 65 00 73 00  |f.r.-.L.U...e.s.|
00000200

Dit echter allemaal zonder succes! :(
Beide schijven worden in mijn BIOS herkent waarbij de 1e schijf (windows) wordt aangegeven als master omdat deze primary is, en de 2e schijf (ubuntu) als slave. Dus dit zou verder prima moeten zijn.
Is er iemand die me bij dit probleem kan helpen?

Gegroet,
Niels
« Laatst bewerkt op: 2009/10/01, 09:37:13 door stereopanda »

Offline track

  • Lid
Re: dualboot win7/ubuntu9.04 (dubbel SATA!)
« Reactie #1 Gepost op: 2009/10/01, 13:52:44 »
Hoi Niels,

welkom op het forum !

In jouw geval zou ik haast voorstellen dat je de Win..- schijf niet aantast
(rsp. nu de bootsector weer herstelt)  en liever gewoon de 2de schijf geheel voor Uby gebruikt. 
Dan hoef je maar in het BIOS- menu voor de ene of andere schijf te kiezen en dat was het.
Praktisch dus: even bij de eerste schif de stekker eruit (of in het BIOS afzetten), dan Uby installeren,
en de stekker weer in (rsp. in het BIOS).

Voor het herstel van de  mbr startsector:  http://sites.google.com/site/computertip/grub  hoofdstuk 3.
Ken je ook deze handleidingen:  http://wiki.ubuntu-nl.org/InstallatieDesktopJaunty
en  http://sites.google.com/site/computertip/  en  http://wiki.ubuntu-nl.org/  ?

Vriendelijke groet,

track

stereopanda

  • Gast
Re: dualboot win7/ubuntu9.04 (dubbel SATA!)
« Reactie #2 Gepost op: 2009/10/01, 15:12:21 »
Hoi Niels,

welkom op het forum !

In jouw geval zou ik haast voorstellen dat je de Win..- schijf niet aantast
(rsp. nu de bootsector weer herstelt)  en liever gewoon de 2de schijf geheel voor Uby gebruikt. 
Dan hoef je maar in het BIOS- menu voor de ene of andere schijf te kiezen en dat was het.
Praktisch dus: even bij de eerste schif de stekker eruit (of in het BIOS afzetten), dan Uby installeren,
en de stekker weer in (rsp. in het BIOS).

Voor het herstel van de  mbr startsector:  http://sites.google.com/site/computertip/grub  hoofdstuk 3.
Ken je ook deze handleidingen:  http://wiki.ubuntu-nl.org/InstallatieDesktopJaunty
en  http://sites.google.com/site/computertip/  en  http://wiki.ubuntu-nl.org/  ?

Vriendelijke groet,

track

Ik heb ubuntu en windows al geinstalleerd, dus om dit nu weer opnieuw te installeren zie ik niet zo zitten.
Ik wil gewoon de entry in mijn grub fixen zodat mijn dualboot gaat werken.. op het moment krijg ik namelijk alleen maar grub 13 errors als ik mijn windows partitie wil benaderen, en naar mijn idee moet er toch wel een oplossing zijn om dit gewoon aan de praat te krijgen.. of niet?

Dus op het moment heb ik:
[HDD1] Windows -> boot niet via Grub loader -> Error
[HDD2] Ubuntu -> Grub loader -> Boot wel naar ubuntu

Offline track

  • Lid
Re: dualboot win7/ubuntu9.04 (dubbel SATA!)
« Reactie #3 Gepost op: 2009/10/01, 16:50:21 »
Nee, dat was zeker niet de bedoeling !
(wij zitten niet meer in het Win..-tijdperk toch ?)

Je kunt uiteraard ook alleen de startsectoren even weer recht zetten (beiden dan).
Dat zou betekenen, op schijf 1  weer de startsector (= mbr) van Win.. (zoals ik al zei)
en op de twede schijf (na afkoppelen van schijf 2 en opstarten van CD) dan volgens
dezelfde handleiding, hoofdstuk 2.  dan de  mbr  aan grub te geven.
(bijkomend voordeel: je kunt de schijf 2 onafhankelijk van schijf 2 opstarten !)

Als je perse toch op schijf 1 de startsector van grub wilt hebben kan dat ook uiteraard.
Volgens mij wordt dat dan dit:
title Microsoft Windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1
- tenzij je hebt er een herstelpartitie, en jouw W7 zit op  /dev/sda2 .
(n.b.: de "hd" telt altijd vanaf "0" !)

track