Skip to content

Commit

Permalink
try to reread partition
Browse files Browse the repository at this point in the history
  • Loading branch information
woodp committed Jan 31, 2018
1 parent 0093439 commit 8e2a1e1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions virtual-machines/single-vm/extensions/linux/format-disk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# format-disk.sh
#
#!/bin/bash

partprobe
# Format and mount drive
(
echo o
echo n
echo p
echo 1
echo
echo
echo w
)|fdisk /dev/$1
partprobe
mkfs -t ext3 /dev/$11
mkdir /data$2
mount /dev/$11 /data$2

0 comments on commit 8e2a1e1

Please sign in to comment.