Skip to content

Instantly share code, notes, and snippets.

@Motoma
Created September 21, 2010 16:39
Show Gist options
  • Save Motoma/589992 to your computer and use it in GitHub Desktop.
Save Motoma/589992 to your computer and use it in GitHub Desktop.
MotomaSTYLE raiddemo # fdisk smbmountpoint/image
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
You must set cylinders.
You can do this from the extra functions menu.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): x
Expert command (m for help): c
Number of cylinders (1-1048576): 1024
Expert command (m for help): r
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1024, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1024, default 1024): 1024
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): fd
Changed system type of partition 1 to fd (Linux raid autodetect)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment