incorporate partprobe in a shell script
fdisk /dev/sdb << EOF
n
p
EOF
partprobe
mkfs.ext3 /dev/sdb1
In the above script, after creating the new partiotion, partprobe is not rereading the partiotion table.
getting an error
The device apparently does not exist; did you specify it correctly?
Does anyone know of a approach to add partprobe in a shell script?
|