Jump to content











Photo
- - - - -

boot win7


  • Please log in to reply
6 replies to this topic

#1 Giacomino Timillero

Giacomino Timillero
  • Members
  • 3 posts
  •  
    Italy

Posted 26 November 2012 - 04:56 PM

Good morning,
I'm Giacomino Timillero and I have a question for you.
In the notebook than I use for work i have Windows 7 installed, and I can't intasll GNU/Linux.
In a 8GB small pendrive I have installed Lubuntu 12.10 in persistent mode, and I'd like then the syslinux view at the boot two selections: Lubuntu & Windows.
In the pendrive I have changed the file /syslinux/syslinux.conf, and Lubuntu start, but Windows no.
I have tried with this lines:


LABEL windows
MENU LABEL Windows
COM32 chain.c32
APPEND hd0 1

The comand sudo fdisk -l get

lubuntu@lubuntu:~$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 testine, 63 settori/tracce, 60801 cilindri, totale 976773168 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x67f3c087

Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 2048 2459647 1228800 7 HPFS/NTFS/exFAT
/dev/sda2 2459648 955267071 476403712 7 HPFS/NTFS/exFAT
/dev/sda3 955267072 976771119 10752024 7 HPFS/NTFS/exFAT

Disco /dev/sdb: 8004 MB, 8004304896 byte
255 testine, 63 settori/tracce, 973 cilindri, totale 15633408 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00043c4c

Dispositivo Boot Start End Blocks Id System
/dev/sdb1 * 2048 15631244 7814598+ c W95 FAT32 (LBA)

Disk /dev/sdc: 16.0 GB, 16037969920 bytes
64 testine, 32 settori/tracce, 15295 cilindri, totale 31324160 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x000d2dad

Dispositivo Boot Start End Blocks Id System
/dev/sdc1 * 32 31324159 15662064 c W95 FAT32 (LBA)

Can you help me?

PS: sorry for my bad english!

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 26 November 2012 - 06:38 PM

I almost cannot believe to my eyes :).
Finally an Italian that knows how to post a question :worship: (by posting relevant data instead of the usual "vague" "generic" nonsense) :smiling9:

First thing welcome to the board.

The issue is likely due to the filesystem used on your internal hard disk, you have three partitions all formatted as NTFS.

The support for NTFS in syslinux is very recent and - to some extents - still experimental, see:
http://reboot.pro/to...ux-please-test/

You may need to update the Syslinux version you are using or (most probably simpler/easier) use grub4dos as secondary bootloader (i.e. load from the syslinux on your USB stick grub4dos and from it chainload the Windows 7 in your internal hard disk).

If you choose this latter, get latest grub4dos from here (get latest "Featured"):
http://code.google.c.../downloads/list

You only need the file grub.exe or grldr from the archive, then:
http://diddy.boot-la...stall_linux.htm
http://www.rmprepusb...inload-syslinux

If everything works, you should get to a grub> prompt.
At it type (and press [ENTER] after each line:

find --set-root /bootmgr

chainloader /bootmgr

boot

and you should boot to the Windows 7.

If the above works, we will talk of putting this in a menu.lst (so that you have not to type the commands, but for tests command line is advisable).

:cheers:
Wonko
  • Tripredacus likes this

#3 ady

ady

    Frequent Member

  • Advanced user
  • 165 posts

Posted 26 November 2012 - 07:43 PM

With


LABEL windows

		 MENU LABEL Windows

		 COM32 chain.c32

		 APPEND hd0 1




you are pointing to a partition.

Try with


LABEL windows

MENU LABEL Windows

COM32 chain.c32

APPEND hd0


or even


LABEL windows

MENU LABEL Windows

COM32 chain.c32

APPEND hd0 0



to point to the MBR of the first hard drive as seen by the BIOS.

#4 Giacomino Timillero

Giacomino Timillero
  • Members
  • 3 posts
  •  
    Italy

Posted 26 November 2012 - 08:54 PM

Thanks at alls for your answers!
The first solution, with use grub4dos, work wery well.
I created in /boot/grub/ of the pendrive the file menu.lst with this code:


timeout 0

default 0

color black/black black/black

title Windows

find --set-root /bootmgr

chainloader /bootmgr

boot


and all is ok! :cheers:

With the ady's solution, instead, when i selected windows after one second of black screen back the syslinux's menu

Edited by Giacomino Timillero, 26 November 2012 - 08:56 PM.


#5 ady

ady

    Frequent Member

  • Advanced user
  • 165 posts

Posted 26 November 2012 - 10:05 PM

With the ady's solution, instead, when i selected windows after one second of black screen back the syslinux's menu


My suggestion may be valid if you are still using Syslinux (and chain.c32) to boot, but you say you are now not using Syslinux.

If you are still using Syslinux to boot and you still see the same boot menu after selecting that entry again and again, then maybe your USB drive is the one identified by the BIOS as hd0. If that's the case, then you would need to use "hd1" or "hd1 0" or whichever code that reflects how the BIOS is seeing the first local HDD. Additionally, I am assuming we are talking about BIOS (not EFI) and MBR (not GPT).

Other possible option using Syslinux may be localboot[.c32].

#6 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 27 November 2012 - 09:41 AM

Just for the record, you can remove the final "boot" statement from menu.lst as it is implied when in a .lst, and only needed on command line.

If you only need to have one entry in menu.lst an idea could be to edit the embedded menu.lst in the grldr file.
The directives in there now look for and load the actual menu.lst:

default 0

timeout 0

title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst

errorcheck off

configfile /boot/grub/menu.lst

configfile /grub/menu.lst

if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff

if "%@root:~1,1%"=="f" && find --set-root --devices=f /menu.lst && configfile /menu.lst

find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst

find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst

find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst

errorcheck on

commandline

title commandline

commandline

title reboot

reboot

title halt

halt


You can replace that with the contents of your simple menu.lst, those are the very last few bytes of grldr, you can use a hex editor or grubmenu.exe, part of the grubinst package:
https://code.google..../downloads/list


:cheers:
Wonko

#7 Giacomino Timillero

Giacomino Timillero
  • Members
  • 3 posts
  •  
    Italy

Posted 28 November 2012 - 06:52 PM

My suggestion may be valid if you are still using Syslinux (and chain.c32) to boot, but you say you are now not using Syslinux.

If you are still using Syslinux to boot and you still see the same boot menu after selecting that entry again and again, then maybe your USB drive is the one identified by the BIOS as hd0. If that's the case, then you would need to use "hd1" or "hd1 0" or whichever code that reflects how the BIOS is seeing the first local HDD. Additionally, I am assuming we are talking about BIOS (not EFI) and MBR (not GPT).

Other possible option using Syslinux may be localboot[.c32].


wery well!
with

LABEL Windows2

  MENU LABEL Windows2

  COM32 chain.c32

  APPEND hd1 1


i can start windows with syslinux direct!

Thank you at all 2 for your time.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users