Opened 7 years ago

Closed 2 years ago

Last modified 2 years ago

#13093 closed bug (fixed)

System does not recognize partitions formatted with mkfs.ext4 command.

Reported by: khallebal Owned by: nobody
Priority: normal Milestone: R1/beta4
Component: File Systems/ext2 Version: R1/Development
Keywords: ext4 mkfs.ext4 Cc:
Blocked By: Blocking:
Platform: All

Description

It's easy to verify, create a partition and format it using the mkfs.ext4 command, the partition is then unmountable and DriveSetup reports it just as "native linux", now format it with the mkfs -t ext4 again and it works as expected.

Attachments (1)

previous_syslog (140.1 KB ) - added by khallebal 5 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 by waddlesplash, 5 years ago

Please retest after hrev53401.

comment:2 by khallebal, 5 years ago

Now it shows up as an ext2 parttion in DriveSetup but can't be mounted, i get a "Bad data" error msg either from terminal or tracker, no other messages.

comment:3 by waddlesplash, 5 years ago

Please post the syslog after getting said error message.

by khallebal, 5 years ago

Attachment: previous_syslog added

comment:4 by waddlesplash, 5 years ago

ext2:[0m Inode::UpdateNodeFromDisk(1060): verification failed
ext2:[0m get_vnode: InitCheck() failed. Error: Bad data
ext2:[0m could not create root node: get_vnode() failed!
ext2:[0m Failed mounting the volume. Error: Bad data

comment:5 by khallebal, 5 years ago

Sorry for the late response,i don't have much time for haiku these last few months

comment:7 by waddlesplash, 2 years ago

Please retest on a recent nightly.

comment:8 by khallebal, 2 years ago

As of hrev55621 it does mount now, thanks for the fix guys, although unlike the ext3 partitions i have this one has no read/write support, it mounts in read-only mode even if you choose read/write and it shows up as an ext2 filesystem in DriveSetup.

comment:9 by khallebal, 2 years ago

Oh well, now it mounts in read/write again after cleaning some of the cache in /config/cache dir and removing the RosterSettings file in /config/settings/system/registrar, so i guess this ticket can be closed now.

comment:10 by waddlesplash, 2 years ago

Milestone: UnscheduledR1/beta4
Resolution: fixed
Status: newclosed

It probably auto-mounts read-only because that is what you previously selected, as with any drive. Unmounting and then re-mounting read/write is the more better solution, instead of deleting configuration files.

comment:11 by khallebal, 2 years ago

It probably auto-mounts read-only because that is what you previously selected,

I'm not sure what you mean by "auto-mounts", it never "auto-mounted", i mounted it manually every time choosing read/write mode, anyways, this has nothing to do with the ext4 fs though, i've seen this behavior with other apps/operations where new settings do not take effect until i remove one or both of those mentioned above, i'm not sure how file a ticket about this issue.

in reply to:  9 comment:12 by diver, 2 years ago

Replying to khallebal:

Oh well, now it mounts in read/write again after cleaning some of the cache in /config/cache dir and removing the RosterSettings file in /config/settings/system/registrar, so i guess this ticket can be closed now.

For the record: the only built-in applications that use cache dir are HaikuDepot, Mail, Package Kit, Repositories and notification_server. Cleaning that dir is very unlikely can cause anything related to mounting. RosterSettings in ~/config/settings/system/registrar also can't be related to that.

Mount settings are stored in ~/config/settings/mount_server and can be read with message command.

Note: See TracTickets for help on using tickets.