Skip to content

Instantly share code, notes, and snippets.

@teaforthecat
Created June 7, 2011 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teaforthecat/1012330 to your computer and use it in GitHub Desktop.
Save teaforthecat/1012330 to your computer and use it in GitHub Desktop.
$ dd if=/dev/zero of=/dev/sdb
$ sfdisk -d /dev/sda | sfdisk /dev/sdb
$ fdisk /dev/sdb
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 29649 238155561 83 Linux
/dev/sdb2 29650 30401 6040440 5 Extended
/dev/sdb5 29650 30401 6040408+ 82 Linux swap / Solaris
$ mkfs -t ext2 /dev/sdb1
$ mkfs -t ext3 /dev/sdb2
mke2fs 1.40.8 (13-Mar-2008)
mkfs.ext3: inode_size (128) * inodes_count (0) too big for a
filesystem with 0 blocks, specify higher inode_ratio (-i)
or lower inode count (-N).
????????
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment