LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Dual boot issues (http://www.linuxquestions.org/questions/slackware-14/dual-boot-issues-4175438783/)

IainL 11-26-2012 11:57 AM

Dual boot issues
 
Here is my situation. I shrunk my windows 7 partition to make room for slackware, I then used unetbootin to install slackware 14 32bit on the rest of the hard drive. After that I setup lilo modifying the boot thing (can't remember its name), booting into slackware works perfectly but I have the missing bootMGR error when trying to boot into windows from lilo so I think I messed up my windows settings in lilo.

I believe that to fix this I should use a windows 7 disk to boot from and then repair the bootmgr with it, and then when I'm in windows I can use some kind of boot manager to setup up dual booting. However, I'm at uni and I have no discs to burn and only one 32gb usb stick. Ideally I would like to setup my usb stick to have slackware 14 image and windows 7 image on it, is this possible and how would I go about it? I think it would be dangerous to remove slackware from the usb and just have windows because if i mess it up I might be locked out of both systems, correct me if I'm wrong though.

Any help is much appreciated :).

Grischuna 11-26-2012 12:07 PM

Quote:

Originally Posted by IainL (Post 4837367)
Here is my situation. I shrunk my windows 7 partition to make room for slackware, I then used unetbootin to install slackware 14 32bit on the rest of the hard drive. After that I setup lilo modifying the boot thing (can't remember its name), booting into slackware works perfectly but I have the missing bootMGR error when trying to boot into windows from lilo so I think I messed up my windows settings in lilo.

Any help is much appreciated :).

Possibly you are trying to boot from the wrong Windows7 partition. Windows 7 comes normally with two partition. A small boot and the normal root partition. So just try to edit again your lilo.conf and instead of /dev/sda2 set /dev/sda1 as the boot partition for Windows7.

Hope it helps.

Cheers,

IainL 11-26-2012 12:29 PM

I made that mistake then fixed it earlier today but made no difference. Could it have caused problems because during install I set it to sda2? Your input is much appreciated ;)

IainL 11-26-2012 03:42 PM

Would it be at all possible to repair the bootmgr from within slackware? I've trawled google for a bit but haven't found anything about that.

markush 11-26-2012 03:45 PM

Could you please (as root) execute the command
Code:

fdisk -l
and post the output here. Also please post the output of
Code:

df -h
and the part of your lilo.conf where Windows is configured.

Markus

IainL 11-26-2012 03:50 PM

This is the output from the commands and the relative section of lilo.conf, your help is much appreciated

Code:

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848  850745343  425269248    7  HPFS/NTFS/exFAT
/dev/sda3      850745344  950749968    50002312+  83  Linux
/dev/sda4      950749969  970750893    10000462+  82  Linux swap

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3        47G  9.3G  36G  21% /
tmpfs          1.6G    0  1.6G  0% /dev/shm
/dev/sda2      406G  239G  167G  59% /media/ECE6380DE637D694

  other = /dev/sda1
  label = Windows7
  table = /dev/sda


markush 11-26-2012 03:56 PM

This seems to be correct, the small Windows-partition is the bootpartition and has to be set in lilo.conf.

Don't forget to run lilo (as root) after you changed anything in lilo.conf!

Normally when you made a mistake, lilo will show an errormessage when you run it. So: what happens when you exectute
Code:

lilo
Markus

IainL 11-26-2012 03:58 PM

Ah, i haven't ran the lilo command at all, lets restart and see what happens haha. I'll report back shortly :)

IainL 11-26-2012 04:07 PM

GOOD NEWS! everything works perfectly, didn't realise it would be so easy :) I can't thank you enough

markush 11-26-2012 04:09 PM

I'm happy to read that you've solved your problem. Please don't forget to use the thread-tools and mark this thread as solved.

Markus


All times are GMT -5. The time now is 07:13 AM.