Garuda Linux installation on iMac 21 2009, problems

This is the main issues

GNU Parted 3.6
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA Intenso SSD Sata (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name                  Flags
1      20.5kB  210MB  210MB  fat32        EFI System Partition  boot, esp
2      210MB   255GB  255GB  hfs+
3      255GB   256GB  650MB  hfs+

(parted) mklabel gpt
Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you
want to continue?
Yes/No? y
(parted) print
Model: ATA Intenso SSD Sata (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start  End  Size  File system  Name  Flags

(parted) quit
Information: You may need to update /etc/fstab.


╭─garuda@garuda in ~ as 🧙 took 54s
╰─λ sudo parted /dev/sda
GNU Parted 3.6
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA Intenso SSD Sata (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name                  Flags
1      20.5kB  210MB  210MB  fat32        EFI System Partition  boot, esp
2      210MB   255GB  255GB  hfs+
3      255GB   256GB  650MB  hfs+

(parted)

As you can see we haven't solved anything because once we reopen parted we notice that nothing changes.
I encounter this problem with any attempt to make a change to the SSD of this computer.
The system behaves as if everything went well, but in reality it did nothing

Okay, it looks like the partition table is not wiping the disk so let's try this:

Back in parted, after you set the GPT disk label and it shows an empty disk try making a partition and let's see what it says.

mkpart

It doesn't matter what filesystem you choose, it can be ext2 or ext4 or whatever it offers as the default. Put 0% for the start and 100% for the end, and we will see if it succeeds.

OK

GNU Parted 3.6
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA Intenso SSD Sata (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name                  Flags
1      20.5kB  210MB  210MB  fat32        EFI System Partition  boot, esp
2      210MB   255GB  255GB  hfs+
3      255GB   256GB  650MB  hfs+

(parted) mklabel gpt
Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you
want to continue?
Yes/No? y
(parted) mkpart
Partition name?  []? Garuda
File system type?  [ext2]? ext4
Start? 0
End? 100
Warning: The resulting partition is not properly aligned for best performance: 34s % 2048s != 0s
Ignore/Cancel? Ignore
(parted) print
Model: ATA Intenso SSD Sata (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name    Flags
1      17.4kB  100MB  100MB  ext4         Garuda

(parted)


So, quit and restart console


GNU Parted 3.6
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA Intenso SSD Sata (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name                  Flags
1      20.5kB  210MB  210MB  fat32        EFI System Partition  boot, esp
2      210MB   255GB  255GB  hfs+
3      255GB   256GB  650MB  hfs+

(parted)

Nothing, as you can see

it seems like every attempt to touch the drive is not accepted

This should have %, like this:

mkpart primary ext4 0% 100%

After quit, let’s try to make a file system on the partition.

sudo mkfs.ext4 /dev/sda1

If it doesn’t throw an error, let’s check that it succeeded with lsblk -f.

It does kind of seem that way–very curious…:thinking:

GNU Parted 3.6
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA Intenso SSD Sata (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name                  Flags
1      20.5kB  210MB  210MB  fat32        EFI System Partition  boot, esp
2      210MB   255GB  255GB  hfs+
3      255GB   256GB  650MB  hfs+

(parted) mkpart
Partition name?  []? garuda
File system type?  [ext2]? ext4
Start? 0%
End? 100%
Warning: You requested a partition from 0.00B to 256GB (sectors 0..500118191).
The closest location we can manage is 17.4kB to 20.0kB (sectors 34..39).
Is this still acceptable to you?
Yes/No? yes
Warning: The resulting partition is not properly aligned for best performance: 34s % 2048s != 0s
Ignore/Cancel? Ignore
(parted) sudo mkfs.ext4 /dev/sda1
align-check TYPE N                       check partition N for TYPE(min|opt) alignment
help [COMMAND]                           print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END     make a partition
name NUMBER NAME                         name partition NUMBER as NAME
print [devices|free|list,all]            display the partition table, or available devices, or free space,
or all found partitions
quit                                     exit program
rescue START END                         rescue a lost partition near START and END
resizepart NUMBER END                    resize partition NUMBER
rm NUMBER                                delete partition NUMBER
select DEVICE                            choose the device to edit
disk_set FLAG STATE                      change the FLAG on selected device
disk_toggle [FLAG]                       toggle the state of FLAG on selected device
set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
type NUMBER TYPE-ID or TYPE-UUID         type set TYPE-ID or TYPE-UUID of partition NUMBER
unit UNIT                                set the default unit to UNIT
version                                  display the version number and copyright information of GNU Parted
align-check TYPE N                       check partition N for TYPE(min|opt) alignment
help [COMMAND]                           print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END     make a partition
name NUMBER NAME                         name partition NUMBER as NAME
print [devices|free|list,all]            display the partition table, or available devices, or free space,
or all found partitions
quit                                     exit program
rescue START END                         rescue a lost partition near START and END
resizepart NUMBER END                    resize partition NUMBER
rm NUMBER                                delete partition NUMBER
select DEVICE                            choose the device to edit
disk_set FLAG STATE                      change the FLAG on selected device
disk_toggle [FLAG]                       toggle the state of FLAG on selected device
set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
type NUMBER TYPE-ID or TYPE-UUID         type set TYPE-ID or TYPE-UUID of partition NUMBER
unit UNIT                                set the default unit to UNIT
version                                  display the version number and copyright information of GNU Parted
align-check TYPE N                       check partition N for TYPE(min|opt) alignment
help [COMMAND]                           print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END     make a partition
name NUMBER NAME                         name partition NUMBER as NAME
print [devices|free|list,all]            display the partition table, or available devices, or free space,
or all found partitions
quit                                     exit program
rescue START END                         rescue a lost partition near START and END
resizepart NUMBER END                    resize partition NUMBER
rm NUMBER                                delete partition NUMBER
select DEVICE                            choose the device to edit
disk_set FLAG STATE                      change the FLAG on selected device
disk_toggle [FLAG]                       toggle the state of FLAG on selected device
set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
type NUMBER TYPE-ID or TYPE-UUID         type set TYPE-ID or TYPE-UUID of partition NUMBER
unit UNIT                                set the default unit to UNIT
version                                  display the version number and copyright information of GNU Parted
(parted) lsblk /f
align-check TYPE N                       check partition N for TYPE(min|opt) alignment
help [COMMAND]                           print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END     make a partition
name NUMBER NAME                         name partition NUMBER as NAME
print [devices|free|list,all]            display the partition table, or available devices, or free space,
or all found partitions
quit                                     exit program
rescue START END                         rescue a lost partition near START and END
resizepart NUMBER END                    resize partition NUMBER
rm NUMBER                                delete partition NUMBER
select DEVICE                            choose the device to edit
disk_set FLAG STATE                      change the FLAG on selected device
disk_toggle [FLAG]                       toggle the state of FLAG on selected device
set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
type NUMBER TYPE-ID or TYPE-UUID         type set TYPE-ID or TYPE-UUID of partition NUMBER
unit UNIT                                set the default unit to UNIT
version                                  display the version number and copyright information of GNU Parted
align-check TYPE N                       check partition N for TYPE(min|opt) alignment
help [COMMAND]                           print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END     make a partition
name NUMBER NAME                         name partition NUMBER as NAME
print [devices|free|list,all]            display the partition table, or available devices, or free space,
or all found partitions
quit                                     exit program
rescue START END                         rescue a lost partition near START and END
resizepart NUMBER END                    resize partition NUMBER
rm NUMBER                                delete partition NUMBER
select DEVICE                            choose the device to edit
disk_set FLAG STATE                      change the FLAG on selected device
disk_toggle [FLAG]                       toggle the state of FLAG on selected device
set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
type NUMBER TYPE-ID or TYPE-UUID         type set TYPE-ID or TYPE-UUID of partition NUMBER
unit UNIT                                set the default unit to UNIT
version                                  display the version number and copyright information of GNU Parted
(parted) quit
Information: You may need to update /etc/fstab.


╭─garuda@garuda in ~ as 🧙 took 21m57s
╰─λ lsblk -f
NAME   FSTYPE   FSVER            LABEL                    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                                                  0   100% /run/miso/sfs/livefs
loop1  squashfs 4.0                                                                                  0   100% /run/miso/sfs/mhwdfs
loop2  squashfs 4.0                                                                                  0   100% /run/miso/sfs/desktopfs
loop3  squashfs 4.0                                                                                  0   100% /run/miso/sfs/rootfs
sda
├─sda1 vfat     FAT32            EFI                      67E3-17ED
├─sda2 hfsplus                   MacOs                    658da1e5-576e-3827-b74e-4c41cc3faa44
└─sda3 hfsplus                   Recovery HD              300b38d2-6474-3d84-88d6-438875687ac7
sdb    iso9660  Joliet Extension GARUDA_DR460NIZED_RAPTOR 2023-05-01-21-27-23-00
├─sdb1 iso9660  Joliet Extension GARUDA_DR460NIZED_RAPTOR 2023-05-01-21-27-23-00                     0   100% /run/miso/bootmnt
└─sdb2 vfat     FAT12            MISO_EFI                 CC34-06DF
sdc
sr0
zram0                                                                                                         [SWAP]

╭─garuda@garuda in ~ as 🧙 took 40ms
╰─λ

This one is for outside of parted. It looks like parted is not working anyway, but let’s take a look at what mkfs says.

╭─garuda@garuda in ~ as 🧙 took 40ms
╰─λ sudo mkfs.ext4 /dev/sda1
mke2fs 1.47.0 (5-Feb-2023)
/dev/sda1 contains a vfat file system labelled 'EFI'
Proceed anyway? (y,N) y
Discarding device blocks: done
Creating filesystem with 204800 1k blocks and 51200 inodes
Filesystem UUID: ef60939c-2091-41e4-a5b2-6c592fda722b
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done


╭─garuda@garuda in ~ as 🧙 took 4s
╰─λ

Ok now how can I verify the outcome of some changes?

Run lsblk -f again.

It looks like it has kept the partitioning, despite our efforts to remove it. Try running mkfs on the hfs+ partitions and see if it succeeds.

sudo mkfs.ext4 /dev/sda2
sudo mkfs.ext4 /dev/sda3
╭─garuda@garuda in ~ as 🧙 took 4s
╰─λ lsblk -f
NAME   FSTYPE   FSVER            LABEL                    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                                                  0   100% /run/miso/sfs/livefs
loop1  squashfs 4.0                                                                                  0   100% /run/miso/sfs/mhwdfs
loop2  squashfs 4.0                                                                                  0   100% /run/miso/sfs/desktopfs
loop3  squashfs 4.0                                                                                  0   100% /run/miso/sfs/rootfs
sda
├─sda1 vfat     FAT32            EFI                      67E3-17ED
├─sda2 hfsplus                   MacOs                    658da1e5-576e-3827-b74e-4c41cc3faa44
└─sda3 hfsplus                   Recovery HD              300b38d2-6474-3d84-88d6-438875687ac7
sdb    iso9660  Joliet Extension GARUDA_DR460NIZED_RAPTOR 2023-05-01-21-27-23-00
├─sdb1 iso9660  Joliet Extension GARUDA_DR460NIZED_RAPTOR 2023-05-01-21-27-23-00                     0   100% /run/miso/bootmnt
└─sdb2 vfat     FAT12            MISO_EFI                 CC34-06DF
sdc
sr0
zram0                                                                                                         [SWAP]

╭─garuda@garuda in ~ as 🧙 took 10ms
╰─λ sudo mkfs.ext4 /dev/sda2
mke2fs 1.47.0 (5-Feb-2023)
/dev/sda2 contains a hfsplus file system labelled 'MacOs'
Proceed anyway? (y,N) y
Discarding device blocks: done
Creating filesystem with 62304872 4k blocks and 15581184 inodes
Filesystem UUID: 3e5da86f-75b7-4946-bd63-17ba70602460
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done


╭─garuda@garuda in ~ as 🧙 took 9s
╰─λ sudo mkfs.ext4 /dev/sda3
mke2fs 1.47.0 (5-Feb-2023)
/dev/sda3 contains a hfsplus file system labelled 'Recovery HD'
Proceed anyway? (y,N) y
Discarding device blocks: done
Creating filesystem with 158692 4k blocks and 39680 inodes
Filesystem UUID: 6d9d8a5b-098f-46f4-b3eb-fc9429f99a08
Superblock backups stored on blocks:
32768, 98304

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
mkfs.ext4: Inode checksum does not match inode while creating orphan file

╭─garuda@garuda in ~ as 🧙 took 2s
[🔴] × lsbk /f
find-the-command: "lsbk" is not found locally, searching in repositories...
find-the-command: /var/cache/pkgfile/*.files are out of date, update? [Y/n] n
find-the-command: command not found: "lsbk"

╭─garuda@garuda in ~ as 🧙 took 11s
[🔍] × lsblk -f
NAME   FSTYPE   FSVER            LABEL                    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                                                  0   100% /run/miso/sfs/livefs
loop1  squashfs 4.0                                                                                  0   100% /run/miso/sfs/mhwdfs
loop2  squashfs 4.0                                                                                  0   100% /run/miso/sfs/desktopfs
loop3  squashfs 4.0                                                                                  0   100% /run/miso/sfs/rootfs
sda
├─sda1 vfat     FAT32            EFI                      67E3-17ED
├─sda2 hfsplus                   MacOs                    658da1e5-576e-3827-b74e-4c41cc3faa44
└─sda3 hfsplus                   Recovery HD              300b38d2-6474-3d84-88d6-438875687ac7
sdb    iso9660  Joliet Extension GARUDA_DR460NIZED_RAPTOR 2023-05-01-21-27-23-00
├─sdb1 iso9660  Joliet Extension GARUDA_DR460NIZED_RAPTOR 2023-05-01-21-27-23-00                     0   100% /run/miso/bootmnt
└─sdb2 vfat     FAT12            MISO_EFI                 CC34-06DF
sdc
sr0
zram0                                                                                                         [SWAP]

╭─garuda@garuda in ~ as 🧙 took 10ms
╰─λ

Is it possible that it's due to the fact that I'm on an Apple ecosystem?
I know they tend to be very restrictive about their users' choices.

However, I thank you very much for this help you are giving me even though it is all so difficult and stressful

Hmm, it's certainly a weird one. Is this SSD coated with Teflon?!

Let's try this one, an oldie but a goodie:

sudo dd if=/dev/zero of=/dev/sda bs=1M

It might take a while to finish. When it does, run lsblk -f again.

1 Like

it doesn t do nothing

╭─garuda@garuda in ~ as 🧙 took 10ms
╰─λ sudo dd if=/dev/zero of=/dev/sda bs=1M

Let’s try clearing the PRAM.

  1. Shut down your computer and disconnect all USB devices (except wired keyboards).

  2. Press the power button to turn on your Mac.

  3. Immediately press and hold the Option, Command, P, and R keys on your keyboard.

image

  1. Hold down these keys for 20 seconds, during which time your Mac will appear to restart.
  • On older Macs that chime upon startup, hold down the keys until you hear a second chime.
  • For Macs with the Apple T2 Security Chip, hold the keys until the Apple logo appears and disappears a second time. Here’s a list of Mac models with the T2 chip.
  1. Release the keys and let your Mac finish rebooting.

Then boot back to the live environment and see if the installer is able to get any further.

3 Likes

in this moment im using a windows keyboard. does it change something?

I think you can still do it.

Although Windows and Mac keyboards feature most of the same keys, there are a few that differ. When using a Windows keyboard on a Mac, the Windows key is used instead of the Command key, and the Alt key is used in place of the Option key. For example, the Undo shortcut would use Windows+Z instead of Command+Z. It’s also worth noting that their positions are reversed on the two types of keyboards.

comparison of Windows and Mac keyboards

So:

:window: + Alt + P + R

3 Likes

Nothing changes.
I cleaned the pram I think. I pressed ctrl + windows/mac + r + p.
The computer started loading and then shut down. I think it went well.

But allow me, I keep thinking, what if the problem is that some components are missing from the partition manager?

When I open it it tells me that it needs some tools, and it sends me back to the link I left in the first messages with some files that I don’t know how to open

Edit.Forgive me, I now realize that I made a mistake with the commands. Now I’ll try again

Edit. Ok i tried with the right command. Nothing changes.

So, there’s possibility that the problem is this message:

No support tools were found for file systems currently present on hard disks in this computer:

|Partition|File System|Support Tools|URL|
| --- | --- | --- | --- |
|/dev/sda3|hfsplus|diskdev_cmds|https://opensource.apple.com/tarballs/diskdev_cmds/|

As long as the support tools for these file systems are not installed you will not be able to modify them.

You should find packages with these support tools in your distribution's package manager.

it appears when i open kde partition manager, and in the link there’s some downlodable files, but i don’t know how eventually use them

Hello, would you be able to boot in MacOS recovery mode? You would then be able to use MacOS disk Utility to erase the disk

Hi. Unfortunately i tried. But It doesn’t help

You need additional utilities installed if you want to interact with an HFS+ filesystem from Linux because support is not built in to the kernel. In your case, you are trying to completely reformat the disk so it doesn’t matter one bit what filesystems are on there. You do not need to install HFS+ support to reformat a drive. Note also the FAT32 partition similarly resists being deleted or reformatted, and that is a filesystem well-supported by Linux.

Your issue is something is preventing you from making changes to the disk. It doesn’t seem like you can delete or change the contents of the disk in any way. I have to guess this is some kind of Apple intervention, but searching around I can’t seem to find anything about it. It doesn’t seem like a common problem people have with Macs.

It’s probably a long shot, but there is another Apple utility you can reset called the SMC. You can try resetting that to see if it makes any difference: How to reset NVRAM, PRAM, SMC on a Mac | Macworld

If that doesn’t work, I’d be interested in seeing if you have better luck after swapping out the hard drive.

1 Like

In Recovery Mode/Disk Utility did you select “View-Show All Devices” and then select the drive icon at the top of the list to actually erase the drive? (instead of only erasing volumes) This is NOT something I have to do when I’ve installed Garuda on old iMacs but worth a try.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.