Skip to content

Instantly share code, notes, and snippets.

@farshidce
Created April 20, 2012 22:33
Show Gist options
  • Save farshidce/2432350 to your computer and use it in GitHub Desktop.
Save farshidce/2432350 to your computer and use it in GitHub Desktop.
recreating dead partition
#!/bin/sh
vgcreate VolGroup01 /dev/sdb
lvcreate --extents 100%VG --name Data VolGroup01
mkfs -t ext3 -m 0 /dev/VolGroup01/Data
#echo "/dev/VolGroup01/Data /data ext3 defaults 0 0" >> /etc/fstab
mkdir -p /data
mount /data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment