Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-13-2014, 11:01 PM
|
#1
|
LQ Newbie
Registered: May 2014
Posts: 10
Rep:
|
[ask] Triple Boot : 2x Windows 7 x64 + Slackware64 14.1 using LILO
Hello...
I have a problem with triple boot using LILO for 2 Windows 7 x64 + Slackware64 14.1, The problem is, i cannot boot directly from the LILO for choosing each of my Windows 7....
Here is installation order that i have done :
1. Windows 7
2. Windows 7
3. Slackware64 14.1
LILO are installed on MBR
Here is my /etc/fstab :
Code:
/dev/sda7 swap swap defaults 0 0
/dev/sda6 / reiserfs defaults 1 1
/dev/sda8 /home reiserfs defaults 1 2
/dev/sda1 /7SystemRes ntfs-3g fmask=133,dmask=022 1 0
/dev/sda2 /7-Work ntfs-3g fmask=133,dmask=022 1 0
/dev/sda3 /7-Game ntfs-3g fmask=133,dmask=022 1 0
/dev/sda5 /fat-d vfat fmask=111,dmask=000 1 0
/dev/sda9 /ntfs-e ntfs-3g fmask=133,dmask=022 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
Here is my fdisk -l :
Code:
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
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x45ef20b9
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 163842047 81817600 7 HPFS/NTFS/exFAT
/dev/sda3 163842048 327682047 81920000 7 HPFS/NTFS/exFAT
/dev/sda4 327682048 1953521663 812919808 f W95 Ext'd (LBA)
/dev/sda5 327684096 393220095 32768000 b W95 FAT32
/dev/sda6 393220159 423936375 15358108+ 83 Linux
Partition 6 does not start on physical sector boundary.
/dev/sda7 423936439 425992695 1028128+ 82 Linux swap
Partition 7 does not start on physical sector boundary.
/dev/sda8 425992759 456714239 15360740+ 83 Linux
Partition 8 does not start on physical sector boundary.
/dev/sda9 456716288 1953521663 748402688 7 HPFS/NTFS/exFAT
Here is my /etc/lilo.conf :
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
#compact # faster, but won't work on all systems.
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
prompt
#timeout = 300
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
#vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
label = Win7Loader
table = /dev/sda
# Windows bootable partition config ends
# Windows bootable partition config begins
#other = /dev/sda3
# label = 7Game
# table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda6
label = Slack14.1H
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Description :
- windows 7 are installed at /dev/sda2 and /dev/sda3
- Windows 7 System Reserved installed at /dev/sda1
- Slackware are installed at /dev/sda6
If i edit my lilo.conf to /dev/sda2 and /dev/sda3 to my Windows Entry, it cannot boot to all of my Win7, it said the bootmgr is missing (which is the bootmgr are installed at /dev/sda1).
If i edit my lilo.conf to /dev/sda1 to my Windows Entry, the Boot Manager of my Windows 7 load up, and i need to choose again which win7 that i want to boot...
My question is :
Is it possible if i just using my LILO to boot each of my Win7 without choosing again via the boot manager of Windows 7 (dont want to Choose twice) ?
|
|
|
05-13-2014, 11:25 PM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,217
Rep:
|
Maybe you should have two Windows system reserved partitions and point each of your two lilo stanzas for Windows to one of them.
Also, I don't see the point in having /dev/sda1 bootable if you install lilo on the MBR.
FYI I have only one Windows 7 installed and my lilo stanza "other" for Windows points to W7 reserved system partition. But I installed lilo on Linux root partition instead (I've read that is not recommended for some reason that I don't remember well, but I very rarely start Windows so that's not an issue for me).
Out of curiosity, why not simply have two folders instead of two Windows systems?
Last edited by Didier Spaier; 05-14-2014 at 07:26 AM.
|
|
|
05-13-2014, 11:45 PM
|
#3
|
LQ Newbie
Registered: May 2014
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
Maybe you should have two Windows system reserved partitions and point each of your two lilo stanzas for Windows to one of them.
|
The problem is, Win7 Installation automatic create the system reserved partition, as i know, it cannot create manually from the installation disc
Also when i install the 2nd Win7, it automatically add the boot entry to the /dev/sda1 (which again i cannot control it again)
Quote:
Originally Posted by Didier Spaier
Also, I don't see the point in having /dev/sda1 bootable if you install lilo on the MBR.
|
hmm... i didn't get your meaning about this, do you mean, that i won't be able to boot to /dev/sda1 if i installed my lilo on the MBR ?
Quote:
Originally Posted by Didier Spaier
FYI I have only one Windows 7 installed and my lilo stanza "other" for Widows points to W7 reserved system partition. But I installed lilo on Linux root partition instead (I've read that is not recommended for some reason that I don't remember well, but I very rarely start Windows so that's not an issue for me).
|
i never did this for my slackware installation, always use the MBR hahahaha
Quote:
Originally Posted by Didier Spaier
Out of curiosity, why not simply have two folders instead of two Windows systems?
|
I'm using two windows system because it is to divide between win7 for game and win7 for work....
win 7 game, like it's title its only for game, no antivirus, no application, just game, so if it has any problem with win7 for game, i just reinstall it, and it won't bother to win7 for work, which has many application, etc
|
|
|
05-14-2014, 05:58 AM
|
#4
|
LQ Newbie
Registered: May 2014
Posts: 10
Original Poster
Rep:
|
Anyone can i get your help please ?
|
|
|
05-14-2014, 07:11 AM
|
#5
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
|
As said by Didier, you can't; Windows 7 partitions do not contain any file to boot up, they're inside the hidden system partition (about 100 MB); from lilo (or grub) you can only say "boot from first partition, which contains itself another bootloader" (the chainloader +1 used in grub).
I don't know if you can create two different system partitions (even W7 and W8 would share the same) and I think it won't function as Windows pretends to be the first partition of disk (but I'm not sure about this).
|
|
|
05-14-2014, 07:33 AM
|
#6
|
LQ Newbie
Registered: Oct 2008
Posts: 24
Rep:
|
I am not sure this will work because i think windows partition need the boot flag to be bootable but you can try. Boot to first Windows 7 then move boot files to C:
with bcdboot
Code:
bcdboot C:\Windows /s C:
Then create a lilo entry for it, and try to boot. If it boots then do it to other windows and remove the entries what boots the other windows with bcdedit or whit EasyBCD
Last edited by Pode; 05-14-2014 at 07:35 AM.
|
|
|
05-14-2014, 07:37 AM
|
#7
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,217
Rep:
|
The only workaround I can think of at the moment is installing your two Windows OS on separate devices (just an idea, I've no experience dong that).
Or, just run one of the Windows in a virtual machine.
Oh, and I don't know if there are legal issues doing that
Last edited by Didier Spaier; 05-14-2014 at 07:38 AM.
|
|
|
05-14-2014, 07:42 AM
|
#8
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,217
Rep:
|
Quote:
Originally Posted by Pode
I am not sure this will work because i think windows partition need the boot flag to be bootable
|
No need for that but in some circumstances, e.g. to install a service pack IIRC.
|
|
|
05-14-2014, 07:48 AM
|
#9
|
Member
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211
Rep:
|
I've done something similar in the past.
I was running Windows XP + Linux + Windows 8 Release Preview to play with it.
XP and Linux were installed by the regular installation "fashion", e.g on proper NTFS and EXT4 partitions.
The fun begins with the install of a second MS Windows OS alongside e.g Windows 7 for you :
1) Backup your MBR -> dd if=/dev/sda of=/home/Nh3xus/mbr.img bs=512 count=64
2) Install your second Windows 7 in a VHD file that has been created by the Disk Manager of your first Windows 7 system.
3) Reboot to see the BOOTMGR prompt and to ensure that the said bootloader has found your second Windows system.
4) Restore your MBR and update your bootloader (e.g Lilo or Grub2)
5) Profit your triple boot.
This worked for me with Grub2.
A simple update-grub2 command set this for me very easily.
For once, the VHD files are a great concept that I like from the Microsoft side of the IT dept :
- No need for an extra NTFS partition to store your second Windows OS since it can be stored in a path such as "My Documents" of the first Windows installation
- The performances of the VHD disk is very close to a native installation.
- Deleting the VHD and updating Grub2 again to revert back to the dualboot was easy to do as well.
With the steps described above, I'm afraid that you will have to re-install your second Windows OS but at least, you will have much less troubles afterwards.
Hope this help.
Note : Windows 7 can be forced to NOT create a "System reserve" partition. That's what I do every time I install it and I've never encountered a problem or a downside at all.
Last edited by Nh3xus; 05-14-2014 at 07:50 AM.
|
|
|
05-14-2014, 09:56 AM
|
#10
|
Senior Member
Registered: Apr 2005
Posts: 2,727
|
Quote:
Originally Posted by brightstar22
Code:
# Windows bootable partition config begins
other = /dev/sda1
label = Win7Loader
table = /dev/sda
# Windows bootable partition config ends
If i edit my lilo.conf to /dev/sda1 to my Windows Entry, the Boot Manager of my Windows 7 load up, and i need to choose again which win7 that i want to boot...
My question is :
Is it possible if i just using my LILO to boot each of my Win7 without choosing again via the boot manager of Windows 7 (dont want to Choose twice) ?
|
The above configuration looks correct to me - i.e. chainloading to the other operating system's bootloader - and you will have to choose twice. As you clearly want the windows OS' as the default anyway, switch to the text based lilo menu, uncomment the timeout line and give it only a few seconds e.g. "timeout=30" to give 3 seconds. It will then move quickly onto the windows OS' boot loader screen.
|
|
|
05-14-2014, 05:57 PM
|
#11
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,966
|
I would try commenting out the "table=/dev/sda" line.
|
|
|
05-14-2014, 08:37 PM
|
#12
|
LQ Newbie
Registered: May 2014
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by gengisdave
As said by Didier, you can't; Windows 7 partitions do not contain any file to boot up, they're inside the hidden system partition (about 100 MB); from lilo (or grub) you can only say "boot from first partition, which contains itself another bootloader" (the chainloader +1 used in grub).
I don't know if you can create two different system partitions (even W7 and W8 would share the same) and I think it won't function as Windows pretends to be the first partition of disk (but I'm not sure about this).
|
Yeah, what is you say is true about the hidden system partition...thx u for your advice...
hmm...so maybe i just stick with the chain loader system and need to boot twice to my Win7 OS hahahha
ANyway thx for reply
|
|
|
05-14-2014, 08:39 PM
|
#13
|
LQ Newbie
Registered: May 2014
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by Pode
I am not sure this will work because i think windows partition need the boot flag to be bootable but you can try. Boot to first Windows 7 then move boot files to C:
with bcdboot
Code:
bcdboot C:\Windows /s C:
Then create a lilo entry for it, and try to boot. If it boots then do it to other windows and remove the entries what boots the other windows with bcdedit or whit EasyBCD
|
hmm... i'm not sure quite understand, but what bcdboot command do ?
as i know win7 need to find bootmgr to boot the OS
|
|
|
05-14-2014, 08:47 PM
|
#14
|
LQ Newbie
Registered: May 2014
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
The only workaround I can think of at the moment is installing your two Windows OS on separate devices (just an idea, I've no experience dong that).
Or, just run one of the Windows in a virtual machine.
Oh, and I don't know if there are legal issues doing that
|
Heloo again hahahahha, i have done it for separate Windows OS with separate device on my previous PC, and yes it works perfectly as i want, but this time, my PC only got 1 hard drive
For virtual machine, yeah for work, maybe i can run it from virtual machine, but considering a shared PC, and some people found that quite confusing about virtual machine, it is not convinient for them also for me
But for game, virtual machine is not an option i think hehehheheheh
For the legal issues..... hahahahaha, no comment
|
|
|
05-14-2014, 08:51 PM
|
#15
|
LQ Newbie
Registered: May 2014
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by Nh3xus
I've done something similar in the past.
I was running Windows XP + Linux + Windows 8 Release Preview to play with it.
XP and Linux were installed by the regular installation "fashion", e.g on proper NTFS and EXT4 partitions.
The fun begins with the install of a second MS Windows OS alongside e.g Windows 7 for you :
1) Backup your MBR -> dd if=/dev/sda of=/home/Nh3xus/mbr.img bs=512 count=64
2) Install your second Windows 7 in a VHD file that has been created by the Disk Manager of your first Windows 7 system.
3) Reboot to see the BOOTMGR prompt and to ensure that the said bootloader has found your second Windows system.
4) Restore your MBR and update your bootloader (e.g Lilo or Grub2)
5) Profit your triple boot.
This worked for me with Grub2.
A simple update-grub2 command set this for me very easily.
For once, the VHD files are a great concept that I like from the Microsoft side of the IT dept :
- No need for an extra NTFS partition to store your second Windows OS since it can be stored in a path such as "My Documents" of the first Windows installation
- The performances of the VHD disk is very close to a native installation.
- Deleting the VHD and updating Grub2 again to revert back to the dualboot was easy to do as well.
With the steps described above, I'm afraid that you will have to re-install your second Windows OS but at least, you will have much less troubles afterwards.
Hope this help.
Note : Windows 7 can be forced to NOT create a "System reserve" partition. That's what I do every time I install it and I've never encountered a problem or a downside at all.
|
Hello...thx for replying...
hmmm....interesting.... sorry but what is VHD ?
If win7 can be forced to not create a system reserve partition, where does bootmgr installed ?
|
|
|
All times are GMT -5. The time now is 12:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|