- #Disc - /dev/sda1 with everything
- pvcreate /dev/sda1
- vgcreate cc11rocksVG /dev/sda1
- lvcreate --size 300G --name boot cc11rocksVG
- resize2fs /dev/sda1 300G #Failed
- pvdisplay #This is what showed up
- ### --- Physical volume ---
- PV Name /dev/sda1
- VG Name cc11rocksVG
- PV Size 691.28 GiB / not usable 3.34 MiB
- Allocatable yes
- PE Size 4.00 MiB
- Total PE 176967
- Free PE 100167
- Allocated PE 76800
- PV UUID wvMkB9-0KHW-fK7v-rMxi-gnwy-ycLL-dhuRmu
- ###
- #Without the "#", I added those to show that they were the output
- root@ubuntu:/dev# mkfs.ext4 /dev/cc11rocksVG/boot #Output below
- ###mke2fs 1.42 (29-Nov-2011)
- Filesystem label=
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- Stride=0 blocks, Stripe width=0 blocks
- 19660800 inodes, 78643200 blocks
- 3932160 blocks (5.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=0
- 2400 block groups
- 32768 blocks per group, 32768 fragments per group
- 8192 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
- 4096000, 7962624, 11239424, 20480000, 23887872, 71663616
- Allocating group tables: done
- Writing inode tables: done
- Creating journal (32768 blocks): done
- Writing superblocks and filesystem accounting information: done
- ###
- #Questions
- Are all of my files gone? Where do I go from here? I originally had Ubuntu 12.04 LTS on /dev/sda1 (sda2 & sda5 are swap, nothing else on drive).
SHARE
TWEET
LVM
a guest
Aug 19th, 2012
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

