Have a flawlessly running OSMC PI2 and WD Elements 3.5" 1TB USB HDD setup for more than 1 year.
I want another one OSMC setup with my other PI2 and the WD Red 3TB 3.5" in external rack.
I’ve made the USB install SD Card, and put it in PI2. The install starts, but I got can’t mount root notification. What is the problem or I make something wrong? Does Pi2 supports 3TB drives or problems with Red HDD’s? Please help me.
The same WD Red 3TB is working ok formatted GPT/NTFS and attached to my working PI2 + WD 1TB setup.
Update: Tried with friends Raspberry Pi 3 and my WD Red 3TB. The same happens.
diff --git a/installer/target/qt_target/qt_target_installer/mainwindow.cpp b/installer/target/qt_target/qt_target_installer/mainwindow.cpp
index 7cdddc1..e719ded 100644
@@ -209,7 +209,7 @@ void MainWindow::install()
if (device->hasRootChanged() && utils->getOSMCDev() != "atv") // && utils.getOSMCDev() != "pc" eventually.. -- cause we want boot there too.
logger->addLine("Must mklabel as root fs is on another device");
- utils->mklabel(rootBase, false);
+ utils->mklabel(rootBase, true);
utils->mkpart(rootBase, "ext4", "4096s", "100%");
It should only require a one line change.
However, I made the choice to use msdos partition table to preserve compatibility where possible for <=2TB disks on old operating systems that don’t support this partition table properly. So I would prefer to refine the above change to create a GPT label iff >2TB.
Here’s a test build, please let me know how it goes. You can choose ‘local image’ in the OSMC Installer and select this file after downloading it.
Thu Jan 1 00:00:08 1970 Starting OSMC installer
Thu Jan 1 00:00:17 1970 Detecting device we are running on
Thu Jan 1 00:00:17 1970 Mounting boot filesystem
Thu Jan 1 00:00:17 1970 Trying to mount to MNT_BOOT (/mnt/boot)
Thu Jan 1 00:00:17 1970 Using device->boot: /dev/mmcblk0p1 and FS: fat32
Thu Jan 1 00:00:17 1970 Preseed file found, will attempt to parse
Thu Jan 1 00:00:17 1970 Found a definition for storage: usb
Thu Jan 1 00:01:26 1970 Creating root partition
Thu Jan 1 00:01:26 1970 From a root partition of /dev/sda1, I have deduced a base device of /dev/sda
Thu Jan 1 00:01:26 1970 Must mklabel as root fs is on another device
Thu Jan 1 00:01:26 1970 Going to mklabel with device: /dev/sda with a label type of GPT
Thu Jan 1 00:01:28 1970 Calling mkpart for device: /dev/sda and fs: ext4 with start 4096s and end 100%
Thu Jan 1 00:01:29 1970 Calling fmtpart for partition /dev/sda1 and fstype ext4
Thu Jan 1 00:02:13 1970 Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=2 blocks, Stripe width=1024 blocks
183148544 inodes, 732566016 blocks
36628300 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
22357 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544
osmc@osmc:~$ grab-logs -A
grep: /var/log/apt/term.log: No such file or directory
grep: /var/log/apt/history.log: No such file or directory
df: cannot read table of mounted file systems
Unable to write temporary log to /var/tmp/uploadlog.txt