As in the topic, the install to the Micro-SD card works, but it fails to mount the partition to /tmp/osmc_mnt, so does not write the preseed file. The Pi then doesn’t know to use the USB stick, so it installs to the SD card, not the USB stick as desired.
This happens every time. What information can I gather so the installer can be fixed?
In case it may help, here’s the install log for one attempt:
Thu Jun 7 21:09:48 2018 OSMC Installer running on Linux
Thu Jun 7 21:09:48 2018 Detected locale as en_PH
Thu Jun 7 21:09:48 2018 Attempting to load translation for locale en_PH
Thu Jun 7 21:09:48 2018 Could not load translation!
Thu Jun 7 21:09:48 2018 Resolving a mirror
Thu Jun 7 21:09:49 2018 Resolved mirror to http://ftp.acc.umu.se/mirror/osmc.tv/osmc/download/
Thu Jun 7 21:09:49 2018 Enumerating supported devices
Thu Jun 7 21:09:49 2018 Added the following devices
Thu Jun 7 21:09:49 2018 Vero 4K
Thu Jun 7 21:09:49 2018 Vero 2
Thu Jun 7 21:09:49 2018 Vero
Thu Jun 7 21:09:49 2018 Raspberry Pi 1 / Zero
Thu Jun 7 21:09:49 2018 Raspberry Pi 2 / 3
Thu Jun 7 21:09:49 2018 Apple TV
Thu Jun 7 21:09:49 2018 Checking for updates
Thu Jun 7 21:09:49 2018 Checking for updates by downloading http://ftp.acc.umu.se/mirror/osmc.tv/osmc/download//installers/latest_linux
Thu Jun 7 21:09:51 2018 Acquired mirror file
Thu Jun 7 21:09:51 2018 No new update is available
Thu Jun 7 21:10:01 2018 The user has selected English as their language
Thu Jun 7 21:10:01 2018 The user has selected Raspberry Pi 2 / 3 as their device
Thu Jun 7 21:10:01 2018 Attempting to download device versions file http://ftp.acc.umu.se/mirror/osmc.tv/osmc/download/installers/versions_RBP2
Thu Jun 7 21:10:02 2018 Found a build called 2018.04-1
Thu Jun 7 21:10:02 2018 Found a build called 2018.03-2
Thu Jun 7 21:10:02 2018 Found a build called 2018.02-1
Thu Jun 7 21:10:02 2018 Found a build called 2018.01-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.12-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.10-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.08-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.07-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.06-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.05-2
Thu Jun 7 21:10:02 2018 Found a build called 2017.04-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.03-1
Thu Jun 7 21:10:02 2018 Found a build called 2017.02-2
Thu Jun 7 21:10:02 2018 Found a build called 2017.01-1
Thu Jun 7 21:10:12 2018 The user has selected a local image for Raspberry Pi 2 / 3 with file location: file:///home/my/OSMC_TGT_rbp2_20180502.img.gz
Thu Jun 7 21:10:12 2018 Disabling internal install for device Raspberry Pi 2 / 3 as it does not support it
Thu Jun 7 21:10:23 2018 USB installation selected
Thu Jun 7 21:11:00 2018 Wireless network configured with SSID XXXXXXXX key value XXXXX
Thu Jun 7 21:11:00 2018 Running partprobe to inform operating system about partition table changes
Thu Jun 7 21:11:01 2018 Enumerating imageable devices for Linux
Thu Jun 7 21:11:01 2018 New disk device entry created with entry point /dev/loop0, 256MiB free space and label
Thu Jun 7 21:11:01 2018 New disk device entry created with entry point /dev/loop1, 256MiB free space and label
Thu Jun 7 21:11:01 2018 New disk device entry created with entry point /dev/loop2, 256MiB free space and label
Thu Jun 7 21:11:01 2018 New disk device entry created with entry point /dev/loop3, 256MiB free space and label
Thu Jun 7 21:11:01 2018 New disk device entry created with entry point /dev/sda, 465.8GiB free space and label
Thu Jun 7 21:11:01 2018 New disk device entry created with entry point /dev/sdb, 3.7GiB free space and label
Thu Jun 7 21:11:13 2018 Device selected: 120 /dev/sdb 3.7GiB
Thu Jun 7 21:11:17 2018 EULA has been accepted
Thu Jun 7 21:11:17 2018 Extracting /home/my/OSMC_TGT_rbp2_20180502.img.gz
Thu Jun 7 21:11:26 2018 Finished extraction. Going to write image
Thu Jun 7 21:11:26 2018 Requesting confirmation from user
Thu Jun 7 21:11:31 2018 User confirmed
Thu Jun 7 21:11:31 2018 Unmounting /dev/sdb
Thu Jun 7 21:11:31 2018 Running partprobe to inform operating system about partition table changes
Thu Jun 7 21:11:33 2018 Writing /home/my/OSMC_TGT_rbp2_20180502.img to /dev/sdb
Thu Jun 7 21:12:23 2018 Running partprobe to inform operating system about partition table changes
Thu Jun 7 21:12:24 2018 Image successfully written to device
Thu Jun 7 21:12:24 2018 Deleting the uncompressed image to save space
Thu Jun 7 21:12:24 2018 Creating preseeder
Thu Jun 7 21:12:24 2018 Adding preseed stringd-i target/storage string usb
Thu Jun 7 21:12:24 2018 Adding preseed stringd-i network/interface string wlan
Thu Jun 7 21:12:24 2018 Adding preseed stringd-i network/auto boolean true
Thu Jun 7 21:12:24 2018 Adding preseed stringd-i network/ssid string XXXXXXXXX
Thu Jun 7 21:12:24 2018 Adding preseed stringd-i network/wlan_keytype string 1
Thu Jun 7 21:12:24 2018 Adding preseed stringd-i network/wlan_key string XXXXXXXX
Thu Jun 7 21:12:24 2018 Writing preseeder
Thu Jun 7 21:12:24 2018 Running partprobe to inform operating system about partition table changes
Thu Jun 7 21:12:25 2018 Mounting the first filesystem on /dev/sdb
Thu Jun 7 21:12:25 2018 Trying to umount before we are remounting and writing the preseed.
Thu Jun 7 21:12:25 2018 Unmounting /dev/sdb1
Thu Jun 7 21:12:25 2018 Running partprobe to inform operating system about partition table changes
Thu Jun 7 21:12:25 2018 Unmounting /dev/sdb
Thu Jun 7 21:12:25 2018 Running partprobe to inform operating system about partition table changes
Thu Jun 7 21:12:26 2018 Mounting /dev/sdb1 to /tmp/osmc_mnt
Thu Jun 7 21:12:26 2018 Could not mount filesystem!
If it need privileges, shouldn’t it get them automatically? I installed the installer and invoked it from the menu. There was no warning that it needed to be run by root. If it doesn’t work when you do that then it should only be in sbin where only root has access to it.
Funny, the SD card had been mounted and formatted already, and written to successfully. The failure is attempting to remount it to write the preseed. It seems a request for sudo rights has been missed.
Checked the source again for my reference.
The program needs to be run as root, and you should be prompted for this when you run the installer.
No – the installer only mounts the card after imaging. It does not do any formatting. A mount will only be attempted if you use any preseeding options.
This is how we start with privileges, or at least attempt to:
if [[ $EUID -eq 0 ]]; then
$cmd
elif command -v gksudo; then
gksu -k $cmd
elif command -v kdesu; then
kdesu $cmd
elif command -v xdg-su; then
xdg-su -c $cmd
else
sudo $cmd
fi
Autofs is not installed by default in Mint. I don’t have it in my system. One of the first things I did after install is disable all the automount stuff I could find.
Can we get the error code from the failed mount somehow?