LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-07-2022, 11:28 AM   #1
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Rep: Reputation: 4
How to partition 4TB disk to dual boot slackware15 + win7


Have a new 4TB disk which i need to partition prior to installing slack 15.

I want to have Win7 on the first partition, linux swap on the second, and slackware on the third partition.

I read that i can't use fdisk to create the partions because fdisk doesnt support partion size > 2TB, so I need to use gdisk instead. However windows 7 doesnt support GPT partions created by gdisk.

So, what would be best option to create the partition scheme that lets me dual boot windows 7 and slackware on a 4TB disk?

My current system is partitioned like this:
sda 1TB
sda1 200GB win7 boot partition
sda2 linux swap
sda3 linux slackware uses remaining disk space
 
Old 02-07-2022, 02:26 PM   #2
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 781
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
well if you have uefi system you can have small vfat partition first, to be efi partition, which can boot both windows7 as well as slackware. 500MB is more than sufficient.

then a 1TB partition for your windows7.

then a 1TB partition for everything in slackware except home

then a 1.95TB partition for slackware's /home folder, for all your user data. (subtracted the 500MB for the first).

If you need swap, you can create a swap file with dd, format it with mkswap, and add it to fstab to be mounted like a swap partition.
 
Old 02-07-2022, 10:41 PM   #3
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
Thanks for responding.

Looks like my system does support UEFI, but I never had to use it before. Looks like i will in order to use the 4TB disk.

So... if I understand what I've been reading, basically I'll need to:
1) create my GPT partitions
2) enable UEFI in BIOS
3) install win7 and slackware to their respective partitions, and
4) figure out how to configure GRUB or elilo or some other boot manager to boot the efi loaders in the efi system partition.

Am I on the right track?
 
Old 02-07-2022, 11:39 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
I would like to propose a different way of solving the UEFI problem. I bought a second hand computer last summer which has Windows 10 on it. I haven't used Windows in 20 years but I thought I would keep it in the off chance that I might have a use for it some day. Using Windows utilities I drastically downsized the two Windows partitions. I installed a SSD drive as a second drive and installed Debian 11 partitions across most of the hard drive and all of the SSD drive. Then I repeatedly tried to install GRUB so that it recognized both Debian and Windows. I couldn't get that to work. I arrived at the situation that if UEFI is enabled in the BIOS the machine will boot into Windows but does not recognize the existence of Debian. If UEFI is disabled in the BIOS then the machine will boot into Debian but does not recognize the existence of Windows. That is fine with me and I run the machine with UEFI disabled.

gparted shows the existence of the two Windows partitions on the hard drive and gives names of the correct file systems on those drives. When I open konsole and mount the Windows partitions the fat32 partition mounts correctly. When I mount the Windows ntfs partition the mount command tells me that Windows is hibernating and mount will only mount the ntfs partition as read only. Interesting.
 
Old 02-08-2022, 03:31 PM   #5
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
My understanding is that UEFI needs to be enabled if you want to boot from a disk that has GPT partitions, which I need in order to use all the space on the 4TB disk.
But I may end up trying something like you did. Either install windows on a smaller disk or just in a VM on my Slackware. I hardly use windows anymore, it may not even be worth trying to dual boot.
 
Old 02-08-2022, 07:17 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
My understanding is that UEFI needs to be enabled if you want to boot from a disk that has GPT partitions,
This all depends on how the system firmware/bios in implemented.
I'm able to boot the same linux install in either uefi or legacy on this system.
Windows will only install in uefi mode on gpt, whereas linux can be install either/or.

When booting gpt disk in legacy mode if you use grub as the bootloader will need a 2mb empty partition flagged bios-grub. This partition isn't needed with lilo.
 
1 members found this post helpful.
Old 02-08-2022, 09:07 PM   #7
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 781
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I'll frankly admit Windows95 was the last version of Windows I ever used, so I looked it up, and from this link:

Quote:
When you try to boot your Windows 7 from a GPT drive, you must be using 64-bit Windows 7 and have a UEFI motherboard.
Reading through the thread, I'm not sure if it mentioned whether or not your achitecutre is 64bit... but if it is, and your motherboard supports uefi, I would enable it in the bios settings, use gpt, and then I think you are totally on the right track with post #3..

With elilo, slackware should populate the efi parition, mounted at /boot/efi with EFI/SLACKWARE, and in that folder will be the efi firmware, elilo.conf, the kernel, and the initrd. To have it boot Windows, create another directory on the efi partition, /EFI/WINDOWS, and put the windows efi boot stuff, whatever that may be, in there--I suspect, that's where Windows 7 would put it. And as a fail safe, you can create a /EFI/BOOT directory, also containing your windows stuff, or which ever one you want to boot--I have to create this directory to get slackware64 to boot on 64bit apple intel computers.

there is a powerful tool that root can use to manage efi boot menu, but as with all powerful tools, you can hurt yourself if used incorrectly: efibootmgr.

Code:
man efibootmgr
.

Once setup this way, when you press whichever key your bios uses to bring up the boot menu, all efi boot entries will be options to start up from.
 
Old 02-09-2022, 05:04 PM   #8
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
I installed slackware 15 on the GPT partitioned disk and skipped windows for now.

I installed elilo when prompted, skipped the lilo install. After the install finished i tried booting and it hung. I got two messages from elilo (i think it was elilo):
loading kernel vmlinuz.... done
loading file initrd.gz.... done

then it hung, no error msgs, had to reset the computer to reboot.

If i rebooted to my slackware usb installer I got what looked like a grub menu with a bunch of kernel choices. I could boot into my installed slackware 15 using both the generic and huge kernels.

After booting from the grub menu, the efi partition was mounted on /boot/efi.

/boot/efi/EFI/SLACKWARE/ contained:
-rwxr-xr-x 1 root root 160 Feb 8 12:04 elilo.conf*
-rwxr-xr-x 1 root root 238531 Jun 12 2018 elilo.efi*
-rwxr-xr-x 1 root root 9845790 Feb 8 12:03 initrd.gz*
-rwxr-xr-x 1 root root 7495840 Feb 2 08:06 vmlinuz*

elilo.conf:
chooser=simple
delay=1
timeout=1
#
image=vmlinuz
label=vmlinuz
initrd=initrd.gz
read-only
append="root=/dev/sda3 vga=normal ro"

I tried copying the huge kernel to /boot/efi/EFI/SLACKWARE/ and changing elilo.conf image line to point to that kernel, and commented out the intrd line, but it still hung trying to load the kernel.

Any ideas what could be wrong? How can I troubleshoot this?
 
Old 02-09-2022, 08:15 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
change vga=normal to video=1024x768 or something similar in elilo.conf
 
Old 02-09-2022, 10:49 PM   #10
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
Quote:
change vga=normal to video=1024x768 or something similar in elilo.conf
Thanks, but that didn't help.

I'm not sure I'm actually seeing the elilo chooser. What I see when it hangs is:

Code:
Elilo v3.16 for EFI/x86_64
Loading kernel vmlinuz.... done
Loading file initrd.gz.... done
then it hangs.

Shouldn't I be seeing some kind of boot prompt or a menu?

After I did the install I noticed that there was a new option called "Slackware" in my UEFI setup in my BIOS. So I'm guessing that the installer probably ran efibootmgr to modify the firmware. I'll play around with efibootmgr, maybe I can reinstall that entry in the firmware.
 
Old 02-10-2022, 10:17 PM   #11
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
I got grub to boot into slack15 on my system. I'll figure out what to do about Win7 later.
Right now my cpu fan died, so I cant do much til I replace the fan.

Thanks to everyone that responded.
This is solved.
 
Old 02-23-2022, 03:59 AM   #12
cd1yba
LQ Newbie
 
Registered: Feb 2022
Posts: 1

Rep: Reputation: 1
About Windows

When you're using dualboot with Windows, note that EACH TIME you use windows you have to REBOOT for shutdown windows properly and get the full access hardware and windows partitions

I know it's stupid but it is. When you're using shutdown in fact you're just "sleeping" win's OS

After that, everything will be OK for use GNU/Linux OS
 
1 members found this post helpful.
  


Reply



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
[SOLVED] win7 no longer booting after installed endea linux. need help in undo or recover win7 os andrewysk Linux - Newbie 32 12-31-2020 06:26 AM
4TB HD on Kubuntu 14.10 - shows as 2tb (1.7 actually) but Fdisk says 4TB. - What can I do? cilbuper Linux - Hardware 10 12-14-2015 06:34 PM
UEIF Dual Boot Win7 & CentOS only boots Win7 wigglytoes Linux - General 3 12-30-2013 05:53 AM
[SOLVED] Need advise after adding 4TB disk (FC17, KDE) kaza Linux - Software 3 10-22-2012 01:33 AM
[SOLVED] After Upgrading from Win7-32 to WIN7-64 can't mount cifs shares pobrika Linux - Networking 2 07-21-2010 08:15 PM

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

All times are GMT -5. The time now is 09:53 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