Stuff Michael Meeks is doing
Older items: 2015: ( J F M ), 2014: ( J F M A M J J A S O N D ), 2013, 2012, 2011, 2010, 2009, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, legacy html
blockdev --rereadpt /dev/sda- to have re-built the device nodes by the time it is finished; you badly need a
udevadm settlethere - otherwise, your script can rush on - just as udev is deleting and re-creating the devices. That's easy to see with a beautiful graphical loop after the blockdev:
which yields something like this pretty bitmap, and of course you can't run it on a mounted disk:#!bin/bash diskDevice=/dev/sdb blockadm --rereadpt $diskDevice iter=0 while [ $iter -lt 40 ]; do if [ -e "$diskDevice" ]; then echo -n "*" else echo -n "." fi iter=`expr $iter + 1` done
**..........................*****************************first you see it, then you don't, then it comes back again; hopefully very obvious.
My content in this blog and associated images / data under
data/ directories are (usually)
created by me and (unless obviously labelled otherwise) are licensed under
the public domain, and/or if that doesn't float your boat a CC0
license. I encourage linking back (of course) to help people decide for
themselves, in context, in the battle for ideas, and I love fixes /
improvements / corrections by private mail.
In case it's not painfully obvious: the reflections reflected here are my own; mine, all mine ! and don't reflect the views of Collabora, SUSE, Novell, The Document Foundation, Spaghetti Hurlers (International), or anyone else. It's also important to realise that I'm not in on the Swedish Conspiracy. Occasionally people ask for formal photos for conferences or fun.Michael Meeks (firstname.lastname@example.org)