Skip to content

Error when updating drive created with fs_type ext2 #29

@JonnyTech

Description

@JonnyTech

Update fails on drive with ext2 filesystem due to `Unknown parameter 'umask``:

$ sudo ./multios-usb.sh -u /dev/sdb

MultiOS-USB updater

Mounting partition /dev/sdb2...
mount: /tmp/tmp.AH6bN14apn/part_data: wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

==================================================================
Installation error!
Below are the details that may be helpful when reporting the issue
==================================================================
Exit code: 32
Arguments: -u /dev/sdb
==================================================================
$ sudo dmesg |tail -1
[  699.315251] ext2: Unknown parameter 'umask`
$ sudo parted /dev/sdb print
Model: Kingston DataTraveler 2.0 (scsi)
Disk /dev/sdb: 15.5GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name              Flags
 1      1049kB  27.3MB  26.2MB  fat16        EFI System        hidden, msftdata
 2      27.3MB  10.8GB  10.7GB  ext2         Linux filesystem
 3      10.8GB  15.5GB  4735MB  fat32                          msftdata

Changed line 178 from

sudo mount -o umask=0000 "${devp}2" "$part_data"

to

sudo mount "${devp}2" "$part_data"

then the update works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions