View Single Post

  #3 (permalink)  
Old 11-17-2006, 01:41 PM
monk's Avatar
monk monk is offline
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Try something as follows:

Code:
echo ""
echo -n "formatting /dev/$dev ....mkfs.ext3 /dev/$dev"
mkfs.ext3 -Fq /dev/$dev > /dev/null
mount /dev/$dev /mnt/$dev  > /dev/null
[ "$?" == "0" ] &&  echo -n " ... DONE!" || echo -n " ...  Failed!"
echo ""
Reply With Quote