I'm not sure whether mine has bad superblock or I'm doing it all wrong. I could format it on my wife's Windows PC and save files on it.
OK. First, the 16GiB MicroSD was originally FAT32 or something like that so I fdisk d-n-w, and it told me it synced. Ejected the card and plug it in again. For extra measures, I did an mke3fs /dev/mmcblk0p1 and got an:
ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir
Maybe wrong approach so did the fdisk all over again then run lusbc on terminal. It detected the partition, I highlighted it and clicked OK. It then loops.
Your Inserted device is being detected
This will take just a few moments.
Do <span color='\''red'\''><b>NOT</b></span> attempt to view its contents while running this application.
' --auto-close --auto-kill
+ echo
+ sleep 10
++ cut -d: -f1
++ grep -e /dev/
++ sfdisk -s
+ DRIVES2='/dev/sda
/dev/sdb
/dev/mmcblk0'
++ echo /dev/sda /dev/sdb /dev/mmcblk0
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda /dev/sdb
++ grep -v /dev/sda
++ head -1
+ tmpstr=
+ '[' '' '!=' '' ']'
+ for file in '$(echo $DRIVES2)'
++ echo /dev/sda /dev/sdb
++ grep -v /dev/sdb
++ head -1
+ tmpstr=
+ '[' '' '!=' '' ']'
+ for file in '$(echo $DRIVES2)'
++ grep -v /dev/mmcblk0
++ head -1
++ echo /dev/sda /dev/sdb
+ tmpstr='/dev/sda /dev/sdb'
+ '[' '/dev/sda /dev/sdb' '!=' '' ']'
+ DEVICE=/dev/mmcblk0
+ '[' /dev/mmcblk0 == '' ']'
+ '[' '' '!=' ext2 ']'
+ '[' '' '!=' ext3 ']'
+ '[' '' '!=' ext4 ']'
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list --height=550 '--title= PCLinuxOS LiveUSB Creator 0.9.7' '--text=
<b>Select a <span color='\''blue'\''><b>Linux ext</b></span> Partition for the Install</b>
You must select a <span color='\''blue'\''><b>Linux</b></span> partition (type #83).
Highlight your selection and select <span color='\''blue'\''><b>OK</b></span>
Select <span color='\''red'\''><b>Cancel</b></span> to quit the application
' --width=550 --height=400 '--column=Partitions Details'
++ grep '^/dev/mmcblk0'
++ fdisk -l
(zenity:5802): GLib-WARNING **: Invalid file descriptor.
+ Selected_Part='/dev/mmcblk0p1 * 2048 30916607 15457280 83 Linux'
+ '[' 0 = 1 ']'
++ echo '/dev/mmcblk0p1 * 2048 30916607 15457280 83 Linux'
++ awk '{print $1}'
+ DEV_PART=/dev/mmcblk0p1
++ blkid -c /dev/null -o value -s TYPE /dev/mmcblk0p1
+ Type=
+ '[' '' '!=' ext2 ']'
+ '[' '' '!=' ext3 ']'
+ '[' '' '!=' ext4 ']'
++ grep '^/dev/mmcblk0'
++ zenity --window-icon=/usr/share/icons/pclosusb.png --list --height=550 '--title= PCLinuxOS LiveUSB Creator 0.9.7' '--text=
<b>Select a <span color='\''blue'\''><b>Linux ext</b></span> Partition for the Install</b>
You must select a <span color='\''blue'\''><b>Linux</b></span> partition (type #83).
Highlight your selection and select <span color='\''blue'\''><b>OK</b></span>
Select <span color='\''red'\''><b>Cancel</b></span> to quit the application
' --width=550 --height=400 '--column=Partitions Details'
++ fdisk -l
Any ideas while I do some packaging tasks? TIA