SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# gdisk -l /dev/nvme0n1
GPT fdisk (gdisk) version 1.0.8
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/nvme0n1: 976773168 sectors, 465.8 GiB
Model: CT500P5PSSD8
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): A2D2048A-AC44-48F2-CC50-B6CFE2D9F99E
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 618495 301.0 MiB EF00 Basic data partition
2 618496 240312319 114.3 GiB 0700 Basic data partition
3 240312320 262279167 10.5 GiB 0700 Basic data partition
4 262279168 976773119 340.7 GiB 0700 Basic data partition
slackware boots from a partition /dev/nvme0p1, where grub is installed in usb mode.
Why USB mode?
What do you get when you do:
Code:
# grub-install /dev/nvme0n1p1
Where it says "0700" for partitions 2, 3 & 4, it should say: 8200 for partition 3 and 8300 for partitions 2 & 4.
Code:
1 2048 618495 301.0 MiB EF00 Basic data partition
2 618496 240312319 114.3 GiB 0700 Basic data partition
3 240312320 262279167 10.5 GiB 0700 Basic data partition
4 262279168 976773119 340.7 GiB 0700 Basic data partition
0700 is a Microsoft partition.
Quote:
Originally Posted by marco70
Can be converted -> paragon software.
Not sure if I like that idea, but anyhow... Paragon only runs in Windows, no? I guess you did it from Windows which is why your partition types are wrong.
Quote:
Originally Posted by marco70
No windows sytem.
Is there any data on this disk that you need to keep?
I am not 100% sure what you are trying to do. Are you now going to do a reinstall of Slackware and use grub as your bootloader instead of elilo? If so that's as simple as not install lilo or elilo when promoted and at the very end of the install do not restart but select no to drop down to a shell then just run...
Code:
chroot /mnt
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub (Or whatever name you want instead of grub)
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot
Yes, I will be installing again.
Thanks to everyone for your help.
It is like this now:
Code:
# gdisk -l /dev/nvme0n1
GPT fdisk (gdisk) version 1.0.8
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/nvme0n1: 976773168 sectors, 465.8 GiB
Model: CT500P5PSSD8
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): A2D2048A-AC44-48F2-CC50-B6CFE2D9F99E
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 4077 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 575487 280.0 MiB EF00
2 577536 240312319 114.3 GiB 8300
3 240312320 262279167 10.5 GiB 8200
4 262279168 976773119 340.7 GiB 8300
It worked without reinstallation with gparted, I changed the flags.
two commands were enough. Time to start 25s
Thanks rkelsen
You can easily convert a disk from MBR to GPT (there is some risk but I have have done it successfully with a classroom of computers)
Simply open the disk as root with gdisk and it will prompt you to convert it.
You need a small amount of unused space at the start and end of the disk (from memory I used 1MB, which was overkill) as the GPT table takes more room than the MBR one, so you do need to be able to shrink that first partition. Luckily for me the first partition was swap.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.