I have an ASUS X540U laptop where I am trying to install Ubuntu 18.04 LTS as a dual boot with an existing Windows 10. Every time the installer reaches the detecting hardware stage, the progress bar freezes, and after a couple of seconds it crashes.
Secure boot and csm are disabled.
Partition magic home edition was used to delete partitions before reinstall.
How do I solve this problem?
The steps I used:
1- created liveUSB using ddrescue -D --force then I booted from this usb pendrive successfully
2- pressed install ubuntu button
3- selected normal installation
4- selected something else and partitioned my hdd to have 16gb swap and 20gp for root and 20gb for home
5-the installation worked fine until it reached detecting hardware then froze for a while followed by a pop up message "installation crashed"
Tried unetbootin to create Live USB, problem persists in step 5
Also deleted all partitions in step 4 before starting install, problem persists