dual boot

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

dual boot

Postby rallen32 » Mon Jul 30, 2012 10:29 am

hi I am new...and old...old as in age new as in gnulinux. i have dual boot mint and windows7. rarely use windows but have been playing with comand line trying to compile dccnightmare without much luck but now i cannot boot into windows. it just says it isnt there. I can see it from mint and move around there but not boot into it. any help/ideas? dccnightmare questions too but dual boot for now...

oh and keep it simple please like me
here is fdisk ls

bob@bob-PORTEGE-R700 ~ $ sudo fdisk -l
[sudo] password for bob:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7ed84752

Device Boot Start End Blocks Id System
/dev/sda1 * 1 52 409600 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 52 35305 283173886+ 7 HPFS/NTFS
/dev/sda3 35305 60802 204801025 5 Extended
/dev/sda5 35305 59792 196690944 83 Linux
/dev/sda6 59792 60802 8109056 82 Linux swap / Solaris
bob@bob-PORTEGE-R700 ~ $
thanks
bob
rallen32
 
Posts: 6
Joined: Mon Jul 30, 2012 10:21 am

Postby Dutch_Master » Mon Jul 30, 2012 10:43 am

As long as it's there, you can recover it by re-installing Grub (the bootloader)
Code: Select all
sudo <enter password>
grub-install /dev/sda5
This installs Grub into your Linux partition and it should pick up your Win-OS partition too.
Dutch_Master
LXF regular
 
Posts: 2471
Joined: Tue Mar 27, 2007 1:49 am

dual boot

Postby rallen32 » Mon Jul 30, 2012 3:44 pm

thanks. i tried it and got warnings only ...

bob@bob-PORTEGE-R700 ~ $ su
Password:
bob-PORTEGE-R700 bob # grub-install /dev/sda5
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition-less disk or to a partition. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.
rallen32
 
Posts: 6
Joined: Mon Jul 30, 2012 10:21 am

Postby MartyBartfast » Mon Jul 30, 2012 5:02 pm

I think you need
Code: Select all
grub-install /dev/sda


without the partition number (5).
I have been touched by his noodly appendage.
User avatar
MartyBartfast
LXF regular
 
Posts: 820
Joined: Mon Aug 22, 2005 7:25 am
Location: Hants, UK

dual boot

Postby rallen32 » Mon Jul 30, 2012 7:37 pm

Hi there, thanks for your efforts but this does not work either. The command ran successfully saying 'installation finished. no error reported' but had no effect. I get the boot screen options and when i choose windows it says

error: no such device E2869C4E869C2557
error: no such disk
rallen32
 
Posts: 6
Joined: Mon Jul 30, 2012 10:21 am

Postby towy71 » Mon Jul 30, 2012 8:29 pm

You might find that /dev/sda1 is a rescue partition and the bootable partition is /dev/sda2 but my poor old brain can't remember what way to fix that in these new-fangled grub2 thingies :wink: :roll:
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4276
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

Postby nelz » Mon Jul 30, 2012 8:40 pm

Code: Select all
sudo update-grub
should fix that.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

dual boot

Postby rallen32 » Mon Jul 30, 2012 9:27 pm

sudo update-grub removed the Windows7 boot option from the list
rallen32
 
Posts: 6
Joined: Mon Jul 30, 2012 10:21 am

Postby nelz » Mon Jul 30, 2012 11:20 pm

Does
Code: Select all
sudo os-prober

detect your Windows installation?
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

dual boot

Postby rallen32 » Tue Jul 31, 2012 6:44 am

nothing....

bob-PORTEGE-R700 bob # sudo os-prober
bob-PORTEGE-R700 bob #
rallen32
 
Posts: 6
Joined: Mon Jul 30, 2012 10:21 am

Postby nelz » Tue Jul 31, 2012 8:55 am

os-prober is called by grub-mkconfig to find non-Linux installations. It is failing to find your Windows system, which is why it is not included in the GRUB menu.

It appears that your Windows setup has been damaged, this may be as simple as the boot flag not being set on its partiton. You may need to boot your Windows rescue disc/partition and run fixmbr - or whatever it's called for your Windows version - before booting a live CD and reinstalling GRUB.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

dual boot

Postby rallen32 » Tue Jul 31, 2012 10:08 am

thank you... i was beginning to think (very vaguely) along those lines at least that i'd have to do something with Windows first and i know from the past it mucks up my Linux side. Will have a try and post back if i still have an OS to do it. ha ha! thanks for all the advice its always good to speak to Linux folk.
bob
rallen32
 
Posts: 6
Joined: Mon Jul 30, 2012 10:21 am


Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest