SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I'm trying to setup slackware 13.37 on a laptop with windows 7 installed on it. I want to keep the windows 7 (just in case). I've tried following the guide on efi at docs.slackware.com but I'm having no success.
I do know that linux will run on this laptop, ubuntu 12.10 does install and run, and so does fedora 17. But Slackware is my linux.
When I boot up the laptop, I must hit escape key and let the bios act as a lilo boot selector. I do not have a legacy bios mode option in the bios.
When I hit escape, for a usb key for example, it will list :
So to boot my usb key with systemrescuecd on it, I have to select 'centon' and it works. If I were to select "UEFI: centon" it would not boot. I hope that helps clarify the state of this bios w.r.t. legacy and uefi.
My slackware 13.37 is fully residing on /dev/sda6 from a restore using fsarchiver from the systemrescuecd sitting on my centon thumbdrive. I have edited my fstab and mkinitrd.conf accordingly. I have successfuly chrooted into slackware and rebuilt my initrd.
contents of /etc/mkinitrd.conf
# separate multiples with a colon : mark
sda3 windows 7
sda4 windows data drive
sda8 fedora broken no longer boots after running fsarchiver due to uuid changes
sda9 ntfs recovery
At this point in time, I have no 'slackware' option in the BIOS' operating system list when I hit the escape key. It appears that it does not see my slackware efi setup.
I did try and compile elilo, but I get this message:
I tried to follow that guide, but that guide is very confusing to me. He talks about two methods of installation at a time, and bounces back and forth for me to read. I'm not knocking him/her I appreciate their efforts, but it simply doesnt work for me.
That said I was using the 32bit version as the Slackware 13.37 that I want to use is 32 bit version.
I'm not ready for Slackware 14 yet (I'm still building packages) so I can always upgrade later. And per the release notes, Slackware has been efi compatible for a few releases now, so that was my logic.
Also, maybe I'm wrong here, but your advice would mean having to boot up your computer with a thumb drive all the time? Is that what you do?
I have two hard drives with windows7 and the efi boot partition on sdb. I have linux on sda and was able to install GRUB2 to sda and boot from there.
Regarding creating the USB boot - there is so much that can go wrong that I think it is best to keep it simple at first. Use the huge kernel and initrd from the installation CD and first time round don't even include root=/dev/sda6 in elilo.conf to prove that the thing will boot. I am not convinced that you should be using the 32 bit elilo. You can always experiment and see what works for you.
At this stage you should do thing as in the document. Use /EFI/BOOT/BOOTX64.EFI on the usb stick and you should at least see an option for booting off the usb stick. ( I use F8 to get the boot list)
If your PC is not even seeing your efi it suggests to me either that it does not like the directory structure in your usb stick or you have the formatting of the stick wrong. An alternative to try would ( after very careful backing up ) put the kernel, initrd and elilo in the folder where your current windows boot efi is. (at you own risk)
I followed the instructions in that how-to exactly and the USB stick worked fine, however 2 days of trying to get it to work from the hard drive failed every time. I went so far as to implement my "known good" setup from the USB stick installer to the hard drive just as a proof of concept and my machine would never see it as UEFI. It didn't matter if I used gdisk and gpt fat partitions of type fd00. Just didn't work. I eventually realized my machine has a legacy bios option buried in the options and I went from there. I actually have lilo working on gpt disks? I don't understand it, but it boots perfectly so I'm sticking with it until this all becomes a little smoother. I did use the 64 bit version, I'm not sure it should really matter so long as it's appropriate for the hardware since it is independent and prior to the OS. Isn't ia32 for itanium though? I believe that was the original intention for elilo, was to boot itanium machines.
I am a little worried about this whole issue and hope the gurus are working on it. As far as I can see it the routine slackware installation will not even complete on the latest motherboards; LILO will not run. Much as I love Slackware and will continue to use it I am concerned that it is too difficult for new users to get it booting now and it may become dead in the water.
Well, I just reinstalled fedora 17 to see if I could get that to boot up Slackware and I simply cannot figure out what Fedora is doing.
They've got some hybrid grub going on, and their documentation site clearly states it's out of date for version 17, and I'm giving up on that option.
I tried opensuse, it installed but wouldn't boot.
So now I just made the USB boot thumbdrive per the instructions.
I used gparted on my slack 13.37 , formatted the drive as fat32, then had gparted set the boot flag on the thumbdrive. Voila! I can boot the thumbdrive, and I'm running setup right now on 64bit Slackware.
I really don't want to use 64bit, this is the only hardware I have that is 64bit, so I guess now, if this does succeed, I'll have a lot of program building to do But that's the least of my worries, that's just time to edit my buildsystem for the arch.
My question at this moment, is where to place the copies of the thumbdrive to on my system? The author of the doc does not say where to put them. I'm guessing I have to put the efi files for Slackware somewhere on the same fat32 partition that windows 7 and fedora had installed files too.
Ok I got this too install correctly with Slack 64 and uefi.
I renamed the file to bootx64.efi
I put the bootx64.efi, bzImage, elilo.conf (edited to reflect my sda6 partition of slack), and initrd.img (all from the usb key) on the fat32 partition that both windows and fedora used to install their efi files.
My bios did not "automagically" see my files I placed on the sda1/fat32 partition for my slackware.
I know bios' are all different, I just wanted to detail what I did here.
So I went into my bios, went to boot,
-then "Add new boot option:
-then "Add boot option" , I hit enter and typed slackware. I guessed that it was asking me for a name, I lucked out. The tiny help field on top right is very slim in details.
-then "Select Filesystem" . when I hit enter on that, a field comes up prefilled, beginning with characters PCI(1F|2)...... it wouldn't allow me to edit or delete anything, so I guess that this was my internal hard drive. This laptop does not have an internal cd/dvd and only has one drive. So since I couldnt changed anything I assumed it knew what it was doing. If I had mulitple drives, I can see this would be a nightmare to know which is the drive. Since I can't do anything on this option, I went to my last option.
- the "Path for boot option" I typed in "\EFI\Boot\bootx64.efi" . Of note, in the top right, the help says to use path in the following format: fs0:\path\filename.efi
However if I actually use the fs0: in the path, it will not work. So my bios entry is as above.
I did NOT have to put any files at all into slackware's "/" or "/etc" at all whatsoever. I only have my efi files on my /dev/sda1 partition, and that isn't even mounted at all at boot of my slackware. So again, /dev/sda1 is not referenced in my /etc/fstab.
My original post has it's location, I didn't change it all. Yes I can still boot the windows 7.
My bios let's me set Windows 7 as default boot option, or slackware now as the default.
In the event I want to boot the laptop, and not use default, as soon as I press power key, I see the bios boot splash, I hit the escape key, I get presented with a list of boot options, windows, slackware, thumb drive, etc and I simply arrow key to the choice I want and hit enter. Similar to regular lilo, imo.
I may do a restfs from fsarchiver of my 32bit slack 13.37 where I had fedora installed, and see if I can get that to work, now that I understand the bios and elilo now.