archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
5.95k stars 514 forks source link

PermissionError #2396

Open DevLenn opened 5 months ago

DevLenn commented 5 months ago

Hi,

i don't understand why i'm getting the following error by executing archinstall with root permission in order to install arch. It's not my first time installing arch and i would consider my self as a somewhat-experienced arch user, it's just i've never experieced the following error:

image

Btw: it's running in a vmware VM

Tacit-git commented 5 months ago

vbox, error too

Torxed commented 5 months ago

Could it be that it's in use? Mounted or otherwise?

DevLenn commented 5 months ago

@Torxed nope, created two different virtual drives on two different vm's, and tried Installing on both of them. Same Error. Tried updating pacman keys and packages as well...

Torxed commented 5 months ago

Could you try: # python -c "with open('/dev/yourDevice', 'wb') as p:; p.write(bytearray(1024))"

And if that fails, which it should, try: # dd if=/dev/zero of=/dev/yourDevice bs=1 count=1024

And if that fails, which it should not, try: # parted /dev/yourDevice mklabel gpt

And lastly, can you post your virtual disk setup? If you have custom SCSI controllers etc I'll need those too, and root hubs if you have custom PCI hubs/ports. And the disk conf itself, such as virtio driver etc.

DevLenn commented 5 months ago

first command didn't fail, it just returned nothing. My disk is a .vmdk created automatically by vmware (File --> create new virtual machine --> typical (recommendet) --> i will install the operating system later --> Linux 5x kernel 64 bit --> ..., just the normal procedure of creating a vm), --> SCSI 128gb I dont know which file the disk conf is in vmware workstation Dont have any custom stuff

last time i installed arch should be around august/september of last year. everything worked normally back then, on bare metall same as on VMs

Torxed commented 5 months ago

Weird, the first command is just a copy paste from our source code oÔ. I can give it a try with vmware workstation or something.

DevLenn commented 5 months ago

yeah idk, very weird, never had a probem with archinstall before... does it work for you in vmware?

HarbingerOfFire commented 2 months ago

@DevLenn I'm having the same problem on vmware 17.5.2 Pro workstation. I have it configured under "Other Linux 6.x kernel 64-bit" with 32 gb of space. I found the best solution was to change the disk configuration from using the loopback (/dev/loop0) to using the vmware solution (/dev/sda) image

upbqdn commented 1 month ago

I'm getting the same error on Framework 13 AMD.

upbqdn commented 1 month ago

Could you try: # python -c "with open('/dev/yourDevice', 'wb') as p:; p.write(bytearray(1024))"

And if that fails, which it should, try: # dd if=/dev/zero of=/dev/yourDevice bs=1 count=1024

And if that fails, which it should not, try: # parted /dev/yourDevice mklabel gpt

And lastly, can you post your virtual disk setup? If you have custom SCSI controllers etc I'll need those too, and root hubs if you have custom PCI hubs/ports. And the disk conf itself, such as virtio driver etc.

All commands fail with access denied.