diff --git a/src/apps/bootmanager/DrivesPage.cpp b/src/apps/bootmanager/DrivesPage.cpp index 0babdb7d4a..1bb9acfbee 100644 --- a/src/apps/bootmanager/DrivesPage.cpp +++ b/src/apps/bootmanager/DrivesPage.cpp @@ -195,6 +195,10 @@ DriveItem::DrawItem(BView* owner, BRect frame, bool complete) message = B_TRANSLATE_COMMENT("Incompatible format!", "Cannot install"); break; + case B_READ_ONLY_DEVICE: + message = B_TRANSLATE_COMMENT("Read only!", + "Cannot install"); + break; default: message = B_TRANSLATE_COMMENT("Cannot access!", "Cannot install"); diff --git a/src/apps/bootmanager/LegacyBootMenu.cpp b/src/apps/bootmanager/LegacyBootMenu.cpp index 185b31d376..297e29789c 100644 --- a/src/apps/bootmanager/LegacyBootMenu.cpp +++ b/src/apps/bootmanager/LegacyBootMenu.cpp @@ -325,6 +325,9 @@ LegacyBootMenu::CanBeInstalled(const BootDrive& drive) if (visitor.FirstOffset() < (int)sizeof(kBootLoader)) return B_PARTITION_TOO_SMALL; + if (device.IsReadOnlyMedia()) + return B_READ_ONLY_DEVICE; + return B_OK; }