Skip to content

Instantly share code, notes, and snippets.

@HostOnNet
Last active August 29, 2015 13:56
Show Gist options
  • Save HostOnNet/9204750 to your computer and use it in GitHub Desktop.
Save HostOnNet/9204750 to your computer and use it in GitHub Desktop.
disk partitions
boby@bizhat ~/.config $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 19G 4.6G 13G 27% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.9G 12K 2.9G 1% /dev
tmpfs 596M 1.5M 595M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.0G 7.6M 3.0G 1% /run/shm
none 100M 16K 100M 1% /run/user
/dev/sdb6 200G 18G 172G 10% /home
/dev/sr1 58M 58M 0 100% /media/boby/Idea Net Setter
/dev/sda5 79G 288M 74G 1% /media/boby/b1ebdc91-64a8-46b0-a9ee-8e71c659bba0
boby@bizhat ~/.config $ sudo fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x4df2bfef
Device Boot Start End Blocks Id System
/dev/sda1 63 2047 992+ 42 SFS
Partition 1 does not start on physical sector boundary.
/dev/sda2 * 2048 976657 487305 42 SFS
/dev/sda3 976658 3907027119 1953025231 42 SFS
Partition 3 does not start on physical sector boundary.
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x93520d5c
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 39178239 19588096 83 Linux
/dev/sdb2 39180286 488396799 224608257 5 Extended
/dev/sdb5 39180288 62615551 11717632 82 Linux swap / Solaris
/dev/sdb6 62617600 488396799 212889600 83 Linux
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1bd91bd8
Device Boot Start End Blocks Id System
/dev/sdc1 * 63 81915434 40957686 7 HPFS/NTFS/exFAT
/dev/sdc2 503814528 585745964 40965718+ 7 HPFS/NTFS/exFAT
/dev/sdc3 81915435 1953519615 935802090+ f W95 Ext'd (LBA)
/dev/sdc5 81915498 491524739 204804621 7 HPFS/NTFS/exFAT
/dev/sdc6 491526144 503812095 6142976 7 HPFS/NTFS/exFAT
/dev/sdc7 636948480 1953519615 658285568 7 HPFS/NTFS/exFAT
Partition table entries are not in disk order
boby@bizhat ~/.config $
menuentry 'Windows 7 (loader) (on /dev/sdc1)' --class windows --class os $menuentry_id_option 'osprober-chain-709409F99409C298' {
insmod ldm
insmod ntfs
set root='ldm/0410132b-b70d-11e2-acdb-005056c00008/Volume1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2 --hint-efi=hd2 --hint-baremetal=ahci2 --hint='ldm/0410132b-b70d-11e2-acdb-005056c00008/Volume1' 709409F99409C298
else
search --no-floppy --fs-uuid --set=root 709409F99409C298
fi
chainloader +1
}
menuentry 'Linux Mint 16 Cinnamon 64-bit, 3.11.0-12-generic (/dev/sdb1)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 67fd4ee7-1123-433c-aab4-ed877051976d
else
search --no-floppy --fs-uuid --set=root 67fd4ee7-1123-433c-aab4-ed877051976d
fi
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=67fd4ee7-1123-433c-aab4-ed877051976d ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.11.0-12-generic
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment