LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2010, 05:41 AM   #1
aryn07
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
Unhappy Slackware won't boot in dual boot with windows 7...


Alright it might be long but I just wrote what I did, please remember while answering that I am a newbie.

So I got slackware 13 from the website and created 4 partitions (primary) and left some (100GB) space as I planned to install windows 7 in that. After installing slack, when I booted from windows DVD (rtm) in partition section it said I already have 4 primary partition so windows cannot used the rest of space despite the fact that it was free (windows even grayed all options like new partition and format etc. for that space). So I thought I'd create 2-3 primary partition for linux (slackware) so that windows can use the free space and make it a primary partition.

So, Next I formatted with slack (3 partition, 2 Primary, 1 extended, total space for slack 50GB) and after its installation I worked my way with windows, but it just created one partition of 100Gb, won't let me create any saying all primary partitions are created. Anyway, I created that partition and installed windows 7. But it messed up my lilo (slack won't show in boot menu) neither can I create any new partition.


After all I reformatted again created 2 partitions for windows (that actually became 3 as windows 7 create 100Mb separate partition for system). Installed windows correctly. Then I booted with slack , which allowed only creating 1 partition as 3 were already there. So I created 1 extended partition, in which I created 4 partition 1 to mount for /boot (100M), 1 for /swap (3G), 1 for home (10G), 1 for / (35G) everything worked fine till I reached last point to install lilo. At that point it said cannot install Lilo (I tried all options simple, expert, install to MBR etc.) but it just won't install. Anyway, after that it said you can install it manually so I clicked OK. Then it said setup complete, remove disk and press alt+ctrl+del to reboot, which I did. But there is just windows 7, no slack ?

what should I do now? I know its installed in there. I saw partitions with some tool. Please tell me what to do ? I am very sad...
Anyone help......

Last edited by aryn07; 01-22-2010 at 07:50 AM. Reason: Just adding SOLVED :)
 
Old 01-21-2010, 07:50 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Here's what I had to do to install and dual-boot Win7 and Slackware 13.0 64-bit.

I had to delete all the partitioning on the drive (because I'd blown away Vista, installed Slackware 13.0 on the entire drive then went back to install Win7 and... well, ring around the rosey).

You install Win7 first. I gave it 20G (I'm really not going to use it for much of anything it's just that I paid the Microsoft Tax so, dammit, I put it on). Win7 creates, as you've noted three partitions, all primary; they look like this in cfdisk /dev/sda:
Code:
   Name           Flags        Part Type    FS Type             [Label]          Size (MB)
 ---------------------------------------------------------------------------------------------
                                             Unusable                                  1.05   *
    sda1                         Primary     NTFS                                    104.86   *
    sda2                         Primary     NTFS                [^B]              20866.67   *
Install it, boot it, let it get all the critical updates, yadda, yadda, then insert the Slackware disk and reboot.

You're only going to have one primary left, sda3; that wants to be your root partition. The rest of them are swap followed by whatever else you want to do. My partitions are these:
Code:
    sda3           Boot          Primary     Linux ext3                            10001.95   *
    sda5                         Logical     Linux swap                             5996.23   *
    sda6                         Logical     Linux ext3                            20003.89   *
    sda7                         Logical     Linux ext3                            20003.89   *
    sda8                         Logical     Linux ext3                            20003.89   *
    sda9                         Logical     Linux ext3                            20003.89   *
    sda10                        Logical     Linux ext3                            20003.89   *
    sda11                        Logical     Linux ext3                           113066.60   *
Note: You must toggle the Boot flag off on the Win7 partition and toggle it on on the Slackware root partition.

The whole partitioning scheme looks like this on my machine:
Code:
                                 cfdisk (util-linux-ng 2.14.2)

                                     Disk Drive: /dev/sda
                              Size: 250059350016 bytes, 250.0 GB
                     Heads: 255   Sectors per Track: 63   Cylinders: 30401

    Name           Flags        Part Type    FS Type             [Label]          Size (MB)
 ---------------------------------------------------------------------------------------------
                                             Unusable                                  1.05   *
    sda1                         Primary     NTFS                                    104.86   *
    sda2                         Primary     NTFS                [^B]              20866.67   *
    sda3           Boot          Primary     Linux ext3                            10001.95   *
    sda5                         Logical     Linux swap                             5996.23   *
    sda6                         Logical     Linux ext3                            20003.89   *
    sda7                         Logical     Linux ext3                            20003.89   *
    sda8                         Logical     Linux ext3                            20003.89   *
    sda9                         Logical     Linux ext3                            20003.89   *
    sda10                        Logical     Linux ext3                            20003.89   *
    sda11                        Logical     Linux ext3                           113066.60   *
And, just for drill, mount displays
Code:
/dev/root on / type ext4 (rw,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/sda6 on /usr/local type ext4 (rw)
/dev/sda7 on /opt type ext4 (rw)
/dev/sda8 on /var/lib/mysql type ext4 (rw)
/dev/sda9 on /var/lib/virtual type ext4 (rw)
/dev/sda10 on /home type ext4 (rw)
/dev/sda11 on /spares type ext4 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /fat-c type fuseblk (rw,allow_other,default_permissions,blksize=4096)
Why cfdisk says ext3 and mount says ext4 (which is what they are) I dunno.

Now, install Slackware, write the boot to the MBR and you'll have dual-boot.

Just as an aside, I was going to install Win7 in VirtualBox but it turns out that the blasted CPU does not support virtualization, so, dual-boot is the only way on my machine. If I had a CPU that supports virtualization, betcha believe this thing would not be dual-boot.

Anyway, hope this helps some.

[EDIT]
I'd like to give credit to whoever it was that gave me the hint but darned if I can remember who it was. My sincere apologies.
[/EDIT]

Last edited by tronayne; 01-21-2010 at 09:11 AM.
 
Old 01-21-2010, 07:58 AM   #3
aryn07
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tronayne View Post
Here's what I had to do to install and dual-boot Win7 and Slackware 13.0 64-bit.

I had to delete all the partitioning on the drive (because I'd blown away Vista, installed Slackware 13.0 on the entire drive then went back to install Win7 and... well, ring around the rosey).

You install Win7 first. I gave it 20G (I'm really not going to use it for much of anything it's just that I paid the Microsoft Tax so, dammit, I put it on). Win7 creates, as you've noted three partitions, all primary; they look like this in cfdisk /dev/sda:
Code:
   Name           Flags        Part Type    FS Type             [Label]          Size (MB)
 ---------------------------------------------------------------------------------------------
                                             Unusable                                  1.05   *
    sda1                         Primary     NTFS                                    104.86   *
    sda2                         Primary     NTFS                [^B]              20866.67   *
Install it, boot it, let it get all the critical updates, yadda, yadda, then insert the Slackware disk and reboot.

You're only going to have one primary left, sda3; that wants to be your root partition. The rest of them are swap followed by whatever else you want to do. My partitions are these:
Code:
    sda3           Boot          Primary     Linux ext3                            10001.95   *
    sda5                         Logical     Linux swap                             5996.23   *
    sda6                         Logical     Linux ext3                            20003.89   *
    sda7                         Logical     Linux ext3                            20003.89   *
    sda8                         Logical     Linux ext3                            20003.89   *
    sda9                         Logical     Linux ext3                            20003.89   *
    sda10                        Logical     Linux ext3                            20003.89   *
    sda11                        Logical     Linux ext3                           113066.60   *
Note: You must toggle the Boot flag off on the Win7 partition and toggle it on on the Slackware root partition.

The whole partitioning scheme looks like this on my machine:
Code:
                                 cfdisk (util-linux-ng 2.14.2)

                                     Disk Drive: /dev/sda
                              Size: 250059350016 bytes, 250.0 GB
                     Heads: 255   Sectors per Track: 63   Cylinders: 30401

    Name           Flags        Part Type    FS Type             [Label]          Size (MB)
 ---------------------------------------------------------------------------------------------
                                             Unusable                                  1.05   *
    sda1                         Primary     NTFS                                    104.86   *
    sda2                         Primary     NTFS                [^B]              20866.67   *
    sda3           Boot          Primary     Linux ext3                            10001.95   *
    sda5                         Logical     Linux swap                             5996.23   *
    sda6                         Logical     Linux ext3                            20003.89   *
    sda7                         Logical     Linux ext3                            20003.89   *
    sda8                         Logical     Linux ext3                            20003.89   *
    sda9                         Logical     Linux ext3                            20003.89   *
    sda10                        Logical     Linux ext3                            20003.89   *
    sda11                        Logical     Linux ext3                           113066.60   *
And, just for drill, mount displays
Code:
/dev/root on / type ext4 (rw,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/sda6 on /usr/local type ext4 (rw)
/dev/sda7 on /opt type ext4 (rw)
/dev/sda8 on /var/lib/mysql type ext4 (rw)
/dev/sda9 on /var/lib/virtual type ext4 (rw)
/dev/sda10 on /home type ext4 (rw)
/dev/sda11 on /spares type ext4 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /fat-c type fuseblk (rw,allow_other,default_permissions,blksize=4096)
Why cfdisk says ext3 and mount says ext4 (which is what they are) I dunno.

Now, install Slackware, write the boot to the MBR and you'll have dual-boot.

Just as an aside, I was going to install Win7 in VirtualBox but it turns out that the blasted CPU does not support virtualization, so, dual-boot is the only way on my machine. If I had a CPU that supports virtualization, betcha believe this thing would not be dual-boot.

Anyway, hope this helps some.
Oh Man, I can't thank you in words....
I am just gonna try that...
And I'll come back to know if it works.
 
Old 01-21-2010, 10:37 AM   #4
aryn07
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I did the same...
but there was an error at last point (when it asks to install lilo) I selected MBR and it said can't install lilo...
It also poped up some warning that my VGA doesn't support the frame I selected so (something) will fall under text mode... (probably it was something related to boot selection, I can't remember right now...).
Than it said there was some error in 1st partition (the windows one) and said I could install lilo later manully. So I clicked ok.
Now nothing shows up....?
What to do...?
 
Old 01-21-2010, 11:06 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
you can use your slackware disk to boot your slackware installation, the disk tells you how at the boot prompt, slackware will boot to command line then try to rerun lilo again
 
Old 01-21-2010, 05:28 PM   #6
aryn07
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I tried to do so, at the boot prompt I typed hugesmp.s root=/dev/sda3
it booted though, but won't let me do anything related to lilo, also there was no files in boot directory as I checked them. I just don't understand why would it won't install lilo at all. I tried to format with ext4 also (when ext3 didn't work) but same error.
Also it said my video card does not support the frame rate I selected so the booting will fall under text.
Has it something to do with my graphic card, its nvidia 9400 gt if that matters.
What am I supposed to do now?
 
Old 01-22-2010, 07:02 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
If you boot your Slackware disk and get logged in, use cfdisk /dev/sda and check that none of the Win7 partitions are bootable and that the Slackware root partition, looks like it's /dev/sda3, is bootable. Probably is, but never hurts to look just to make sure. Double-check that you're selecting the correct partitions for /usr, /home, or whatever you've decided on. In this setup with Win7, your root ought to be /dev/sda3 and your swap will be /dev/sda5; other partitions will start at /dev/sda6 and go up from there.

It might be worth a shot to simply reinstall Slackware, do a full install, assign partitions, accept the defaults for everything (except your network settings probably) and when you get to the booting stuff let in install automatically then select the MBR when you get to that screen; when you say OK to the MBR, it's written so don't do it again before you reboot the first time. Don't fiddle with settings for your video card, let it default (it'll default to something that will work) and, you know, it's only the boot screen, all text, nothing fancy.

All of that, on every machine I own works just fine.

Hope this helps some.
 
Old 01-22-2010, 07:30 AM   #8
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Rep: Reputation: 17
If you don't wanna fiddle with the MBR, (I didn't, and I also installed Slack AFTER Windows, worked flawlessly), you can use these instructions in order for the Win boot-loader to load your lilo or grub boot:
http://www.justlinux.com/forum/archi.../t-150601.html
and/or
http://port25.technet.com/archive/20...M-Support.aspx
I assume that the Win7 and Vista boot loaders work the same way.
 
Old 01-22-2010, 07:49 AM   #9
aryn07
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks everyone !
I finally got it to work !
Threre was some problem with my dvd.
I burned dvd again installed windows, then slack, and wooah Lilo showed 2 menu to boot, either windows or slack!
Thanks everyone who helped, now I am thing to really switch to linux, windows is really !@#$~.
 
Old 01-22-2010, 08:56 AM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by Olaus View Post
If you don't wanna fiddle with the MBR, (I didn't, and I also installed Slack AFTER Windows, worked flawlessly), you can use these instructions in order for the Win boot-loader to load your lilo or grub boot:
http://www.justlinux.com/forum/archi.../t-150601.html
and/or
http://port25.technet.com/archive/20...M-Support.aspx
I assume that the Win7 and Vista boot loaders work the same way.
This is easier than what that thread recommends, and it does the same thing:

http://neosmart.net/dl.php?id=1

Last edited by dugan; 01-22-2010 at 08:58 AM.
 
  


Reply

Tags
dual boot, partitions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Slackware 13 with FreeBSD, but Issue Dual Booting PC-BSD Photon Blizzard *BSD 2 11-09-2009 11:55 AM
Dual Boot Slackware 13 with FreeBSD, but Issue Dual Booting PC-BSD Photon Blizzard Linux - Newbie 1 10-22-2009 10:07 PM
Boot Fails on Dual Boot Slackware 12 linuxbird Linux - General 3 07-20-2008 03:08 PM
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 06:04 PM
system alarm on boot in slackware 10.0 but not win2000(dual boot) Arch Stanton Slackware 3 01-24-2005 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration