LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-19-2013, 01:43 AM   #1
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Rep: Reputation: 17
cgdisk partition table writing error - but it works!(?) [Slackware64-14.1]


Hello everybody, I installed Slackware64-14.1 yesterday on my Win8-preinstalled desktop. I shrunk the Windows partition in Win8 and then added three Linux partitions (swap, /, /home) with cgdisk. But, when I choose to wrote the new partitition table cgdisk claimed that the disk might have been damaged or something (I didn't write down the message). Even though this message, I was able to install Slackware and Windows still works too.

Has anyone of you seen error messages when writing the partition table in cgdisk?

I also installed Elilo on EFI, but unfortunately my Windows boot entry was removed. I removed the Slackware entry and then Windows was found again, but I guess there is a way to keep both (maybe using two EFI partitions?)
If I want to add the Slackware boot entry again, I guess efibootmgr -q -c -d ... should do the trick?

BR
 
Old 12-19-2013, 02:10 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Hi, I wrote an article on booting from UEFI, because this is the first time I've had to do it, and it's quite different from using lilo.
http://docs.slackware.com/howtos:sla...uefi_and_elilo
Note that elilo does not support booting anything but *nix. If you want to dual boot with a non-Linux OS, then you could try to add a UEFI boot entry using efibootmgr (see article) and maybe your UEFI firmware has a way to select which entry you want to boot. If it does not, then you will have to use another bootloader like it says here:
http://www.rodsbooks.com/efi-bootloaders/elilo.html
Probably refind is what you want:
http://www.rodsbooks.com/refind/
 
Old 12-19-2013, 02:24 PM   #3
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Rep: Reputation: 45
I've seen the error you mention every time I've used cgdisk and also seen no ill effects. I saw somewhere else others have observed the same (an error, but no after-effects). It seems to be widespread. Hopefully the developers of cgdisk are looking into it.
 
Old 12-20-2013, 01:45 AM   #4
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by metaschima View Post
Hi, I wrote an article on booting from UEFI, because this is the first time I've had to do it, and it's quite different from using lilo.
http://docs.slackware.com/howtos:sla...uefi_and_elilo
Note that elilo does not support booting anything but *nix. If you want to dual boot with a non-Linux OS, then you could try to add a UEFI boot entry using efibootmgr (see article) and maybe your UEFI firmware has a way to select which entry you want to boot. If it does not, then you will have to use another bootloader like it says here:
http://www.rodsbooks.com/efi-bootloaders/elilo.html
Probably refind is what you want:
http://www.rodsbooks.com/refind/
Ok, but I thought that when the installer added the Slackware entry in the EFI table(?), that shouldn't affect the already installed Windows loader entry?
Unfortunately my HP doesn't show a boot menu by itself so I will have to stop it with escape anyway during upstart in order so choose what OS to boot.

I am able to use the EFI-USB-boot disk that was created during the installation though to start Slackware (maybe it works since that USB-disk contains another EFI partition than the internal hard drive?), could perhaps someone point out to me how I update this disk with elilo if I was about to change kernel or something else on the installed system?
That is, to be able to reproduce the boot disk creation process post-install.

Last edited by Olaus; 12-20-2013 at 08:20 AM. Reason: Add USB info
 
Old 12-20-2013, 01:27 PM   #5
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Installing the Slackware entry has no effect on the Win entry. However, it does have an effect because the UEFI firmware will default to the new entry. Yeah, you would have to stop the boot and choose to boot the other entry.

The make boot disk script is at '/var/log/setup/setup.80.make-bootdisk'.
 
Old 01-09-2014, 02:21 PM   #6
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by metaschima View Post
Installing the Slackware entry has no effect on the Win entry. However, it does have an effect because the UEFI firmware will default to the new entry. Yeah, you would have to stop the boot and choose to boot the other entry.

The make boot disk script is at '/var/log/setup/setup.80.make-bootdisk'.
I guess that I only have to edit elilo.conf on the USB-bootdisk then if I choose another kernel (and initrd)?
 
Old 01-09-2014, 02:30 PM   #7
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can edit 'elilo.conf' if you want to be able to choose between more than one kernel to boot.
 
Old 01-10-2014, 02:13 AM   #8
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by metaschima View Post
You can edit 'elilo.conf' if you want to be able to choose between more than one kernel to boot.
Sounds good, I guess elilo.conf has about the same syntax as lilo.conf?

I also figured out the hard way that I of course had to copy the new kernel and initrd to the USB disk :-)
 
Old 01-10-2014, 12:16 PM   #9
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
On the EFI system partiton you need the kernel, elilo.efi, and elilo.conf to be able to boot.

For elilo.conf see:
https://www.centos.org/docs/5/html/5...ing_ELILO.html
 
  


Reply

Tags
efi, install, partitioning


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Error using cgdisk during Arch installation Fowx Arch 1 12-15-2013 10:21 PM
Error using cgdisk during Arch installation Fowx Linux - Newbie 1 12-15-2013 08:56 PM
[SOLVED] Damn cgdisk & gpt partition table v3ct0r Linux - Newbie 6 09-10-2013 08:13 AM
writing a partition table to a loop device using a script (fdisk) krisweston Programming 31 09-15-2011 11:44 AM
Installer fails when writing partition table sevengraff Linux Mint 4 06-13-2010 08:48 PM

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

All times are GMT -5. The time now is 03:55 PM.

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