Opened 2 years ago

Closed 22 months ago

#18081 closed bug (fixed)

Read-only mount attribute not remembered across reboot

Reported by: thebuck Owned by: stippi
Priority: high Milestone: R1/beta5
Component: Servers/mount_server Version: R1/beta4
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by thebuck)

R1beta4tc0, automount settings:

  • automatic mount: (1st) do not auto-mount
  • mount at boot: (2nd) mount previously mounted disks

But my previously read-only mounted EXT filesystem is mounted read-write on next boot.

At the same time another previously not-mounted EXT is correctly not mounted.

Haiku booted from a MBR partitioned thumbdrive (with handcrafted MBR, BeFS partition extracted from iso, dd'ed to partition, makebootabletiny).
Set failsafe video in bootmenu.
x86_64.
MBR partition table where the EXTs reside.
Traditional BIOS.

I do not know of any working hrev.

Increases chance of data loss, so setting to high priority. Guessed component.

Attachments (1)

SYSTEM-mounted.txt (930 bytes ) - added by thebuck 2 years ago.
Mounting did not update the file, so this is from after a reboot

Download all attachments as: .zip

Change History (9)

comment:1 by thebuck, 2 years ago

Description: modified (diff)

comment:2 by waddlesplash, 2 years ago

Does it work on beta3? Or is there the same behavior?

in reply to:  2 comment:3 by thebuck, 2 years ago

Same behavior on beta3.

comment:4 by thebuck, 2 years ago

[Back on B4TC0] Same also with:

GPT partition table
+ NTFS (Windows (C:), but not the Recovery which can only mount ro)
+ FAT32 (the EFI system partition)
+ EXT4

On this machine, R1beta3 cannot get to a working desktop (I believe it worked in the past, however...)

comment:5 by thebuck, 2 years ago

NO DIFFERENCE in /Haiku/home/config/settings/mount_server (view BeFS using Linux) after having mounted ro versus rw.

comment:6 by diver, 2 years ago

Please attach the output of message ~/config/settings/mount_server.

Last edited 2 years ago by diver (previous) (diff)

by thebuck, 2 years ago

Attachment: SYSTEM-mounted.txt added

Mounting did not update the file, so this is from after a reboot

comment:7 by Jim906, 22 months ago

The mount server's MountArchivedVisitor looks for a mountFlags member of this settings message before mounting a partition, but ArchiveVisitor::Visit isn't adding this member to the settings.

I uploaded a possible fix: https://review.haiku-os.org/c/haiku/+/6080.

comment:8 by waddlesplash, 22 months ago

Milestone: UnscheduledR1/beta5
Resolution: fixed
Status: newclosed

Patch merged in hrev56786

Note: See TracTickets for help on using tickets.