sfdisk /dev/mmcblk1 <<EOF ,,c EOF sync mkfs.vfat /dev/mmcblk1p1 sfdisk -d /dev/mmcblk1
/home/user # sfdisk /dev/mmcblk1 <<EOF > ,,c > EOF Checking that no-one is using this disk right now ... BLKRRPART: Device or resource busy This disk is currently in use - repartitioning is probably a bad idea. Umount all file systems, and swapoff all swap partitions on this disk. Use the --no-reread flag to suppress this check. Use the --force flag to overrule all checks. /home/user #
root umount /dev/mmcblk1
sfdisk /dev/mmcblk1 <<EOF ,,c EOF sync mkfs.vfat /dev/mmcblk1p1 sfdisk -d /dev/mmcblk1
| The Following User Says Thank You to woody14619 For This Useful Post: | ||
/home/user # umount /dev/mmcblk1 umount: cannot umount /dev/mmcblk1: Invalid argument /home/user #
/home/user # umount /dev/mmcblk1 umount: cannot umount /dev/mmcblk1: Invalid argument /home/user #
I'm more concerned about the fact that it thinks it's in use. As root just try typing mount and see if it's listing anything for /dev/mmcblk1. If it is, try umounting that by name. (For example, it may have /dev/mmcblk1p1 mounted? But the previous command said it had no partitions, so...)
| The Following User Says Thank You to woody14619 For This Useful Post: | ||
/home/user # mount rootfs on / type rootfs (rw) ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) tmpfs on /tmp type tmpfs (rw,noatime,size=1024k) tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755) none on /dev type tmpfs (rw,noatime,size=10240k,mode=755) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k) /dev/mmcblk0p2 on /home type ext3 (rw,noatime,errors=continue,commit=1,data=writeback) /home/opt on /opt type none (bind) nodev on /sys/kernel/debug type debugfs (0) /opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind) /opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind) /opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind) /opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind) /opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind) /dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir) /dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)
| The Following User Says Thank You to fnordianslip For This Useful Post: | ||
/home/user # umount /media mmc1 umount: cannot umount /media: Invalid argument umount: cannot umount mmc1: No such file or directory /home/user #
/dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)
umount /dev/mmcblk1p1 sfdisk /dev/mmcblk1 <<EOF ,,c EOF sync mkfs.vfat /dev/mmcblk1p1 sync sfdisk -d /dev/mmcblk1
| The Following User Says Thank You to woody14619 For This Useful Post: | ||
Not helpfull, I know, but at least I'm trying ... | The Following User Says Thank You to fnordianslip For This Useful Post: | ||