Bug 372954 - Plasmashell Crash when changing several partitions with parted and formatting them
Summary: Plasmashell Crash when changing several partitions with parted and formatting...
Status: RESOLVED DUPLICATE of bug 345871
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices (show other bugs)
Version: 5.8.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-26 13:15 UTC by Thomas Weissel
Modified: 2016-11-30 16:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weissel 2016-11-26 13:15:53 UTC
every time i run a script that formats my usb flashdrives with 3 partitions 
(fat32, fat32, ext4) plasmashell crashes.

reproducable : 99%



this is the script:
  

        echo "# PARTITIONING DEVICE #"
   

        LIFESIZEEND=$(( $WINSHARESIZE + $LIFESIZE ))

        sudo partprobe $SDX

        sudo parted -s $SDX mktable MSDOS
        
        sleep 1
        
        sudo partprobe $SDX
        
        sudo parted -s $SDX mkpart primary fat32 0% $WINSHARESIZE
        sudo parted -s $SDX mkpart primary fat32 $WINSHARESIZE $LIFESIZEEND
        sudo parted -s $SDX mkpart primary ext4 $LIFESIZEEND 100%
        
      
        echo "# setting boot flag to second partition   #"
    
        
        sudo parted -s $SDX set 2 boot on
        sudo parted -s $SDX print
        

        echo ""
        echo " WAITING FOR DEVICE TO SETTLE ...... "
        echo ""
        sleep 4

        sudo partprobe $SDX

        echo ""
        echo "#    CREATING FILESYSTEMS        #"
        echo ""

        sudo mkfs.vfat -F 32 -n WINSHARE ${SDX}1
        sleep 1
        sudo mkfs.vfat -F 32 -n LIFECLIENT ${SDX}2
        sleep 1
        echo "mkfs.ext4"
        sudo mkfs.ext4 -L casper-rw ${SDX}3 > /dev/null 2>&1  #hide output
        sleep 1
        #sudo mkfs.ext2 -b 4096 -L home-rw ${SDX}3
        sudo partprobe


        echo "#    Finished Partitioning       #"
Comment 1 Christoph Feck 2016-11-30 16:21:13 UTC

*** This bug has been marked as a duplicate of bug 345871 ***