Skip to content
  • Mike Fleetwood's avatar
    Stop trying to access device '/dev/mapper/No RAID disks' (#786031) · fc5cc1d3
    Mike Fleetwood authored and Curtis Gedak's avatar Curtis Gedak committed
    Running GParted on AltLinux with dmraid installed but with no configured
    RAID arrays produces this error:
        # gparted
        ...
        Could not stat device /dev/mapper/No RAID disks - No such file or directory.
    
    Most distributions use dmraid 1.0.0.rc16 which reports no raid disks
    like this:
        # dmraid -sa -c
        no raid disks
        # echo $?
        1
    
    However AltLinux had the slightly older version, dmraid 1.0.0.rc14,
    which reported no raid disks like this:
        # dmraid -sa -c
        No RAID disks
        # echo $?
        0
    
    So because dmraid 1.0.0.rc14 reported success, exit status 0, and the
    "No RAID disks" message was not in lower case, that text was considered
    a disk device in a DMRaid array.  Fix by checking for "no raid disks" in
    any case.
    
    Bug 786031 - Could not stat device /dev/mapper/No RAID disks - No such
                 file or directory
    fc5cc1d3