Created
September 21, 2015 13:49
-
-
Save dukedougal/fd0ba9b6f1593ed7ca06 to your computer and use it in GitHub Desktop.
Create msdos bootable ext4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ip-10-0-0-249:/home/ubuntu# fdisk /dev/xvdf | |
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel | |
Building a new DOS disklabel with disk identifier 0x548c70c6. | |
Changes will remain in memory only, until you decide to write them. | |
After that, of course, the previous content won't be recoverable. | |
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) | |
Command (m for help): m | |
Command action | |
a toggle a bootable flag | |
b edit bsd disklabel | |
c toggle the dos compatibility flag | |
d delete a partition | |
l list known partition types | |
m print this menu | |
n add a new partition | |
o create a new empty DOS partition table | |
p print the partition table | |
q quit without saving changes | |
s create a new empty Sun disklabel | |
t change a partition's system id | |
u change display/entry units | |
v verify the partition table | |
w write table to disk and exit | |
x extra functionality (experts only) | |
Command (m for help): n | |
Partition type: | |
p primary (0 primary, 0 extended, 4 free) | |
e extended | |
Select (default p): p | |
Partition number (1-4, default 1): 1 | |
First sector (2048-10485759, default 2048): | |
Using default value 2048 | |
Last sector, +sectors or +size{K,M,G} (2048-10485759, default 10485759): | |
Using default value 10485759 | |
Command (m for help): a | |
Partition number (1-4): 1 | |
Command (m for help): w | |
The partition table has been altered! | |
Calling ioctl() to re-read partition table. | |
Syncing disks. | |
root@ip-10-0-0-249:/home/ubuntu# mkfs.ext4 /dev/xvdf | |
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 | |
327680 inodes, 1310720 blocks | |
65536 blocks (5.00%) reserved for the super user | |
First data block=0 | |
Maximum filesystem blocks=1342177280 | |
40 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 | |
Allocating group tables: done | |
Writing inode tables: done | |
Creating journal (32768 blocks): done | |
Writing superblocks and filesystem accounting information: done | |
root@ip-10-0-0-249:/home/ubuntu# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment