LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   UEFI/GPT Slackware64 14.1 install "no Linux partitions detected" error. (https://www.linuxquestions.org/questions/slackware-14/uefi-gpt-slackware64-14-1-install-no-linux-partitions-detected-error-4175572264/)

globetrotterdk 02-14-2016 05:27 PM

UEFI/GPT Slackware64 14.1 install "no Linux partitions detected" error.
 
I would like to install Slackware64 14.1 on a Lenovo IdeaCenter with an i3 processor. The computer uses UEFI/GPT and has an already existing Ubuntu/Win8 dual boot setup. The idea was to run the Slackware installer from DVD and simply reformat the already existing ext4 partitions used by Ubuntu. Unfortunately, the system installer does not detect the ext4 partitions (although it does detect the swap partition). Instead, I get a "no Linux partitions detected" error from the installer.

Any ideas? UEFI/GPT is definitely not my strong suit.

Didier Spaier 02-14-2016 08:30 PM

Launch the installer, then a soon as logged in as "root", do not type "setup" but type:
Code:

lsblk -o model,name,size,fstype
gdisk -l

and post the results here.

If you want to ease the transcription, before typing that command you can insert an USB stick with e.g. a FAT formatted partition . lsblk will tell you its name. if it's e.g. sdb1 type
Code:

mount /dev/sdb1 /floppy
lsblk -o model,name,size,fstype > /floppy/lsblk.txt
gdisk -l > /floppy/gdisk.txt
sync
umount /floppy

Then mount the stick on a running system and post the output of "cat lsblk.txt" and "cat gdisk.txt" or attach the files to your next post.

globetrotterdk 02-15-2016 12:08 AM

Quote:

Originally Posted by Didier Spaier (Post 5500275)
Launch the installer, then a soon as logged in as "root", do not type "setup" but type:
Code:

lsblk -o model,name,size,fstype
gdisk -l

and post the results here.

If you want to ease the transcription, before typing that command you can insert an USB stick with e.g. a FAT formatted partition . lsblk will tell you its name. if it's e.g. sdb1 type
Code:

mount /dev/sdb1 /floppy
lsblk -o model,name,size,fstype > /floppy/lsblk.txt
gdisk -l > /floppy/gdisk.txt
sync
umount /floppy

Then mount the stick on a running system and post the output of "cat lsblk.txt" and "cat gdisk.txt" or attach the files to your next post.

Thanks for the quick reply. Here is the output from lsblk.txt:
Code:

MODEL            NAME    SIZE FSTYPE
WDC WD10JPVX-08J sda    931.5G
                |-sda1  1000M ntfs
                |-sda2  260M vfat
                |-sda3  500M vfat
                |-sda4  128M
                |-sda5  56.7G ntfs
                |-sda6  24.4G ntfs
                |-sda7  9.3G ext4
                |-sda8  15.8G swap
                `-sda9 823.5G ext4
USB DISK 3.0    sdb    57.7G
                `-sdb1  57.7G vfat
DVD-RAM UJ8C5    sr0      4.4G iso9660

The second command kicked up the following error:
Quote:

Problem opening -l for reading! Error is 2. The specified file does not exist!
The contents of gdisk.txt is:
Code:

GPT fdisk (gdisk) version 0.8.7

Didier Spaier 02-15-2016 01:10 AM

The command should have beed "gdisk /dev/sda/", sorry.

But to be sure, please do it again with these two commands
Code:

fdisk -l /dev/sda
gdisk -l /dev/sda


worsel 02-15-2016 01:30 AM

If you are doing what I think you are doing, the SlackWare installer
will not show you any linux installed partions until you have set up
a / partition.
I've been caught in this several times.

You will need to use gdisk to delete your old linux partition first,
then reset it to type 83. Then you can go on with the install.

Didier Spaier 02-15-2016 04:15 AM

Quote:

Originally Posted by worsel (Post 5500348)
If you are doing what I think you are doing, the SlackWare installer
will not show you any linux installed partions until you have set up
a / partition.
I've been caught in this several times.

You will need to use gdisk to delete your old linux partition first,
then reset it to type 83. Then you can go on with the install.

Actually, what I suspect is that the partition type of /dev/sda7 and /dev/sda9 is of type 0700 as reported by gdisk. Unfortunately this is not a precise indication for the script /sbin/probe because this partition type, labeled "Basic Microsoft Data" and supposed to be used to host various Microsoft file systems, can also be used to host Linux file systems like e.g. ext4. Probably this happened during Ubuntu installation. But in the installer for Slackware version 14.1 /sbin/probe assumes that this as a partition used by Windows, of type either HPFS/NTFS, exFAT or W95 FAT32, but not a Linux partition.

The output of "gdisk /dev/sda" will confirm or infirm this assumption.

If it is confirmed you are right, the work around is to set the partition type to 8300 using either gdisk or cgdisk.

@globbertrotterdk: in case you want to use /dev/sda7 as your / partition, it's too small IMO. Either just make one single partition plus swap (the simpler IMO) or if you want a separate /home, give at least 15G to /.

On the long term, I think that an output of a lsblk command like the one I proposed in my first post would enhance the ability of /sbin/probe to properly detect Linux partitions or more accurately, partitions that are either of type Linux or currently used to host a Linux file system.

globetrotterdk 02-15-2016 06:23 AM

@ Didier. That is correct. I have a root partition and /home partition. I can also confirm that your supposition is correct. I have seen the type "0700" partition earlier, when I ran cgdisk to take a look. I will confirm this by running the commands again when I get a chance later today. As you think my root partition is too small, probably the best procedure is to delete the partitions and create new ones the correct size.

Didier Spaier 02-15-2016 06:55 AM

Quote:

Originally Posted by globetrotterdk (Post 5500420)
As you think my root partition is too small, probably the best procedure is to delete the partitions and create new ones the correct size.

Yes. And that should not be risky, since partitions to be deleted are adjacent and the last ones of the drive. Just delete in that order /dev/sda9, then /dev/sda8, then /dev/sda7,then create the partitions you will actually use, of type either 8300 for Linux or 8200 for Linux swap.

Also, is your firmware set up in EFI mode? If you see a GRUB screen when booting the installer, that is the case.

It seems that you already have at least one EFI partition, probably /dev/sda2 and/or /dev/sda3 that are both equipped by a FAT32 file system. It is not completely impossible that one of them contains an EFI image used by Windows 8 and the other an EFI image used by Ubuntu.

You can check the type of these partitions with gdisk or cgdisk, and also check their content mounting them one at a time as /floppy. Do not forget to umount /floppy before running setup.

If I am correct the installer will pick the first EFI partitions it finds to equip it, else (but unlikely) if there is no EFI partition yet you will have to create one.

Of course discard all I have written above if you see a Syslinux screen at boot: that would mean that your firmware is in Legacy mode thus you won't need an EFI partition to install Slackware.

globetrotterdk 02-15-2016 10:13 AM

Here is the output of fdisk:
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: 0x44e31df9

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1  1953525167  976762583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Here is the output of gdisk:
Code:

GPT fdisk (gdisk) version 0.8.7

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): C10AE57F-6D82-4567-9BC8-6CAF540E6CFC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3963 sectors (1.9 MiB)

Number  Start (sector)    End (sector)  Size      Code  Name
  1            2048        2050047  1000.0 MiB  2700 
  2        2050048        2582527  260.0 MiB  EF00  EFI system partition
  3        2582528        3606527  500.0 MiB  FFFF 
  4        3606528        3868671  128.0 MiB  0C01  Microsoft reserved part
  5        3868672      122673151  56.7 GiB    0700  Basic data partition
  6      1902323712      1953523711  24.4 GiB    2700 
  7      122673152      142204401  9.3 GiB    0700 
  8      142204928      175341567  15.8 GiB    8200 
  9      175341568      1902323711  823.5 GiB  0700

Edit----
Is the message from fdisk "Partition 1 does not start on physical sector boundary." something to worry about?

brobr 02-21-2016 01:51 PM

Quote:

Originally Posted by globetrotterdk (Post 5500517)
Edit----
Is the message from fdisk "Partition 1 does not start on physical sector boundary." something to worry about?

see http://www.linuxquestions.org/questi...9/#post5152432
but that's maybe too old.... better read the recent thread starting with...
http://www.linuxquestions.org/questi...0/#post5446586

globetrotterdk 02-22-2016 04:45 AM

Quote:

Originally Posted by brobr (Post 5503856)
see http://www.linuxquestions.org/questi...9/#post5152432
but that's maybe too old.... better read the recent thread starting with...
http://www.linuxquestions.org/questi...0/#post5446586

Thanks for the reply. I got frustrated with this UEFI mess and figured out how to boot the box in legacy mode. I wiped the hard disk, installed Win 7 in legacy mode and then a Slackware minimal install.

brobr 02-22-2016 05:23 AM

Quote:

Originally Posted by globetrotterdk (Post 5504151)
..I got frustrated with this UEFI mess and figured out how to boot the box in legacy mode.

Sorry to hear that; I went the other way, as UEFI is not going away. In this forum there has been a lot of info accumulating on Eufi stuff (for example: switch to uefi and slackware-on-uefi and actually once it is working it is easy to maintain. I found that getting the proper formatting of the efi-partition the most trickiest part... But saying that, I am not double booting with windows.


All times are GMT -5. The time now is 08:31 PM.