Acer Aspire 3 hard drive not found issue needs assistance
Hi, all... I've been trying to install Mint now for weeks with precious little success. No matter what I do, I can't get my machine (Acer Aspire A317-52) to boot without the installation media. After a lot of trial-and-error, it looks like a weird laptop-specific issue where the hard drive doesn't wake on boot without being prompted. Someone has developed a script for this on an Arch site, here.
It looks something like this:
>Add an early custom hook to put the laptop to sleep before the step to mount the filesystems:
/etc/initcpio/install/suspend-to-ram
#!/bin/bash
build() {
add_binary date
add_runscript
}
help() {
echo "Suspend to RAM before filesystems get mounted so the initial ramdisk can see the internal storage"
}
/etc/initcpio/install/suspend-to-ram
#!/bin/bash
run_hook() {
FILE='/sys/class/rtc/rtc0/wakealarm'
EPOCH_TIME="$(date '+%s')"
if ! echo 0 > "$FILE"; then
reboot -f
elif ! echo "$((EPOCH_TIME + 2))" > "$FILE"; then
reboot -f
elif ! echo mem > /sys/power/state; then
reboot -f
fi
}
>This custom hook will reset the RTC alarm clock and set an alarm 2 seconds into the future for device wake-up, so you do not have to manually wake-up the laptop.
>Add it the mkinitcpio HOOKS:
/etc/mkinitcpio.conf
...
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems suspend-to-ram fsck)
...
>Finally regenerate the initramfs.
As someone new and really struggling with this, I don't see these directories or files on my machine. What might I need to do to adapt this from Arch to Mint? Do the scripts hold up fine? Where should I put them instead? Any insights that you can provide would be appreciated!
EDIT: Also crossposted to r/linux4noobs, here: Linux Mint boots to initrd prompt