Skip to content

Commit

Permalink
test with sfdisk
Browse files Browse the repository at this point in the history
  • Loading branch information
woodp committed Feb 1, 2018
1 parent 01a67c1 commit 5795c2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
10 changes: 1 addition & 9 deletions virtual-machines/single-vm/extensions/linux/format-disk.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@

partprobe
# Format and mount drive
(
echo o
echo n
echo p
echo 1
echo
echo
echo w
)|fdisk /dev/sdd
echo ';' | sfdisk /dev/sdd
partprobe
mkfs -t ext3 /dev/sdd1
mkdir /data2
Expand Down
10 changes: 1 addition & 9 deletions virtual-machines/single-vm/extensions/linux/format-disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@

partprobe
# Format and mount drive
(
echo o
echo n
echo p
echo 1
echo
echo
echo w
)|fdisk /dev/sdc
echo ';' | sfdisk /dev/sdc
partprobe
mkfs -t ext3 /dev/sdc1
mkdir /data1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/woodp/reference-architectures/woodp/single-vm-linux/virtual-machines/single-vm/extensions/linux/format-disk.sh",
"https://raw.githubusercontent.com/woodp/reference-architectures/woodp/single-vm-linux/virtual-machines/single-vm/extensions/linux/format-disk.1.sh",
"https://raw.githubusercontent.com/mspnp/reference-architectures/master/scripts/linux/install-apache.sh",
"https://raw.githubusercontent.com/mspnp/reference-architectures/master/virtual-machines/single-vm/extensions/linux/single-vm.sh"
]
Expand Down

0 comments on commit 5795c2a

Please sign in to comment.