How to dual boot Debian 12 with existing another Linux installation by manual partitioning?

Hey, did you see this clever piece of technology

It senses when cars are coming and emits noise and light. The animals learn what it means and have time to get off the roadway.

And @Skywalker71 … you had better not mix msdos and gpt partition tables. Either pull the windiws disk, or use msdos for linux. @Daniel_Phillips knows what will work mixing win and linux.

1 Like

I have already read and tried that. Grub saved successfully but the problem persists.

But this time I made Fedora use ext4 filesystem. See the 79th post. I posted the picture taken at the time of installing Fedora. So there is no btrfs which would clash with MBR partition table.

Ok. I would do that but tell me why a dual boot is not possible with a non-UEFI BIOS setup and MBR partition table?! It doesn’t make any sense!!!

Indeed Windows on a separate disk and cannot interact with Linux, at least not through bootloader.

Yes! That happened once, when I first installed Fedora changing the BIOS to UEFI as per some tutorial on YouTube and Windows failed to boot. That’s why I can’t use UEFI in the first place and I can’t do that because all data drives were formatted when BIOS was not set to UEFI. So even if I change the BIOS to UEFI and reformat Windows and Linux disks, those data drives might not be accessible and if something wrong happens to those drives, I will be dead. :cold_face::cold_face::cold_face: So we should forget about UEFI and GPT, instead we have to solve the problem with the current setup of legacy BIOS and MBR filesystem.

:+1:t4:

@Skywalker71
So, what do you want first Fedora or Debian?

2 Likes

Fedora will be great and I need it in a way that if I remove the other distro, it will not disturb Fedora.

Maybe you can’t make an MBR disk to boot with your UEFI now, and vice versa.
(Note: most UEFIs have a compatibility suppor module -CSM- or something similar, which enables them to boot MBR disks even if UEFI mode is enabled.)

Once an OS has booted, it should not have problem to access either disk type.
Here’s parted -l from my desktop:

root@Nagygep:/home/laco# parted -l
Model: ATA CT120BX500SSD1 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 1      17,4kB  120GB  120GB  ext4


Model: ATA Micron_1300_MTFD (scsi)
Disk /dev/sdb: 2048GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  2048GB  2048GB  primary  ext4


Model: ATA ST2000DX002-2DV1 (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  2000GB  2000GB  ext4


Model: SAMSUNG MZVLB256HAHQ-000H1 (nvme)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system     Name  Flags
 1      1049kB  256MB  255MB   fat32                 boot, esp
 3      256MB   190GB  190GB   ext4
 2      190GB   253GB  62,6GB  ext4
 4      253GB   256GB  3221MB  linux-swap(v1)        swap


root@Nagygep:/home/laco#

There’s one disk with the legacy MBR partition table (msdos).
I have no problems accessing it, in fact it’s the “extension” of my /home on this computer.

In your case the advances of UEFI are not obvious, the one I like is the possibility of having more than 4 (primary) partitions, which would come handy when multibooting different distros :wink:
Say 2 systems partitions, 2 home partitions (4 used up already), 1 swap partition, 1 common data partition, and of course the EFI partition.
It’s possible to make it on MBR via extended partitions, but flexibility is nowhere near.

If I read that guide properly, solving USB/iommu problem of your mobo requires UEFI mode.
How to fix USB 2.0, USB 3.0 and Ethernet issues on Linux for Gigabyte GA 970A DS3P AM3+ motherboard.

  1. Enter in the UEFI BIOS SETUP by pressing Delete key when you computer start
  2. In Peripherals tab, enable “IOMMU Controller”
  3. Press F10 and select YES to save this setting.
    4. Boot your Linux distro’s in UEFI Mode
  4. Open a terminal as root (or prefix by sudo) and type :

But if Fedora meets your needs without any further actions, I think it’s your distro.

2 Likes

On second thought, I think I should leave this experimental project and concentrate on my main priorities. I have lot of works to do.

  1. Making either Davinci Resolve work with my GPU or making Kdenlive recognise my GPU.
  2. To do the above, I need to make AMDGPU driver work as it should which I still couldn’t figure out. Though @kovacslt has given me a clue of installing ocl-icd but I don’t know how to install it as there is no documentation.
  3. If I would be able to make them work peoperly, which I have to anyhow, I have to learn their interface and working procedure, though I have already started doing that in Windows but changing OS everytime when I have to do some professional work, is very inconvenient.
  4. I have to figure out how can I work with Apache, MariaDB, PHP, Wordpress and Joomla in Fedora. Working with these in Windows is so much less complicated but I have to figure it out anyway.
  5. Then I have to start use Linux as my main OS and have to pretend that there was no OS named Windows.

So, as I am a newbie, I have given you enough trouble and you have patiently tolerated my tortures. But I couldn’t cope up with your expectations as I have several blockades. If it be a new PC, with all new fresh hardware, I think the job would be much easier, for you to guide me and for me to follow that. If in the next year, I would be able to change my existing hardwares to new ones, I will again start this dual boot project which I think I should have. Till then, thank you all for your efforts to help me which I couldn’t live upto. Sorry. :disappointed:

2 Likes

With zero Fedora experience I’d say
sudo dnf install ocl-icd
But this is just a shot in the dark :slight_smile:

2 Likes

It is possible.
I was just being wary of msdos partition table combined with Btrfs
but
Now you ar not going to use Btrfs in Fedora…so yes use msdos partitioning idf you want
also
See @Daniel_Phillips …msdos partitioning may be better for compatabiity with your Windows.

2 Likes

I think that is a wise decision.
It took me years to learn how to manage grub with multiboot, and I still make mistakes.

Hope you get there with Fedora. I think it would still be a good idea to avoid Btrfs in Fedora… it is an additional complication you dont need.

4 Likes

I did that when I saw your link but I put the command wrong. I wrote ‘olc’ instead of ‘ocl’… :expressionless:
Anyway, I ran the command (in Fedora 41 fully updated, ‘dnf’ has been changed to ‘dnf5’) and it showed:

Package “ocl-icd-2.3.2-7.fc41.x86_64” is already installed.

Ok. Now I am going to install some video editor just to check whether they recognise the AMD GPU or not. If they do, then I will install Davinci Resolve and then we will see what Davinci has to say.

This time I have installed Fedora with ext4 filesystem.

1 Like

I entered “Fedora 41 davinci” into DuckduckGo.
Look what did I find:

:wink:

But just install Davinci first, see what happens.
Also, check if you have these groups:
cat /etc/group | grep -E "render|video"
(If you are member, the user name will show up too)

2 Likes

The result:

video:x:39:
render:x:105:

What does this mean??!!

Those groups exist, but has no members.
Add your user to them:

sudo usermod -a -G video skywalker
sudo usermod -a -G render skywalker

Instead “skywalker” use your actual username.
Logout, then login back, so the new membership takes effect.
Now you can use opencl (hopefully).

To show you the effect, I removed myself from those groups:

And when I got back myself to those groups:

Edit2:
for some reason I needed to reboot to changes take effect. You may need it too.

2 Likes

László, may I ask why you are not in wheel group? Is it that Debian has sudo group instead? I have used Debian so few times and every time I install it I need to duckduckgo how to use sudo😂 and even now I can’t remember… it’s something “visudo, add your user to ALL=(ALL) ALL”

1 Like

Wheel group is old BSD thinking… Gentoo and Void have it, but not Debian

3 Likes

There’s no such group on my system :slight_smile:
I’m not even a sudoer, I use my computers with a very restricted account.
I need to su adminuser to get a prompt with sudo caps, then sudo su to get root.
Not comfortable, but I do admin tasks only now&then, and the additional login step helps to keep the system secure from myself… :slight_smile:

4 Likes

You go security first I see👍 that is cool but not easy if you tinker a lot like I do

3 Likes

Thanks for the info, learn something new everyday!!!

4 Likes