Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

blockdev(8) [suse man page]

BLOCKDEV(8)						      System Manager's Manual						       BLOCKDEV(8)

NAME
blockdev - call block device ioctls from the command line SYNOPSIS
blockdev [options] commands devices blockdev --report [devices] DESCRIPTION
The utility blockdev allows one to call block device ioctls from the command line. OPTIONS
-V Print version and exit. -q Be quiet. -v Be verbose. --report Print a report for devices. Note that the partition StartSec is in 512-byte sectors. COMMANDS
--setro Set read-only. --setrw Set read-write. --getro Get read-only. Print 1 if the device is read-only, 0 otherwise. --getss Print sectorsize in bytes - usually 512. --getbsz Print blocksize in bytes. --setbsz N Set blocksize to N bytes. --getsize Print device size in sectors (BLKGETSIZE). Deprecated in favor of the --getsz option. --getsize64 Print device size in bytes (BLKGETSIZE64) --getsz Get size in 512-byte sectors (BLKGETSIZE64 / 512). --setra N Set readahead to N 512-byte sectors. --getra Print readahead (in 512-byte sectors). --setfra N Set filesystem readahead (same like --setra on 2.6 kernels). --getfra Get filesystem readahead. --flushbufs Flush buffers. --rereadpt Reread partition table. AUTHOR
blockdev was written by Andries E. Brouwer. AVAILABILITY
The blockdev command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. Jun 2007 BLOCKDEV(8)

Check Out this Related Man Page

ADDPART(8)                                                     System Administration                                                    ADDPART(8)

NAME
addpart - tell the kernel about the existence of a partition SYNOPSIS
addpart device partition start length DESCRIPTION
addpart tells the Linux kernel about the existence of the specified partition. The command is a simple wrapper around the "add partition" ioctl. This command doesn't manipulate partitions on a block device. PARAMETERS
device The disk device. partition The partition number. start The beginning of the partition (in 512-byte sectors). length The length of the partition (in 512-byte sectors). SEE ALSO
delpart(8), fdisk(8), parted(8), partprobe(8), partx(8) AVAILABILITY
The addpart command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux January 2015 ADDPART(8)
Man Page

4 More Discussions You Might Find Interesting

1. Linux

howaboutinstallingyellowdog

can any one tell me how to installl yellow dog linux on my imac 500 Mhz 512 MB, and if it's working well?thnks sorry, please read the rules. no posting of email addresses is allowed. we want to keep all information available to everyone so everyone can benefit from it. -norsk hedensk (1 Reply)
Discussion started by: sk8parkinsaen
1 Replies

2. Linux

Do linux have a device file for ETHERNET CARD.

Sir, Do linux have device file for ethernet card. Can I use open , read , write , system calls to read data transferred through LAN. Is there any methods to read network datas (with out header and tailor information). Hope anyone can help me out. Thanking you.... ... (5 Replies)
Discussion started by: iamjayanth
5 Replies

3. UNIX for Advanced & Expert Users

dd bytesize

I read the manual about the dd and the example and I have seen the use of the bs option, the byte size. However how can you know that you need to use it and how can you know what size to give it? like in wwikipedia they give the following: but why 4096 and why mention it at all (3 Replies)
Discussion started by: programAngel
3 Replies

4. UNIX for Dummies Questions & Answers

file size

What is difference between du -s and ls -l file size? I guess du will give in multiple of 512 bytes? correct me if iam wrong. And is wc -c and ls -l are same? and if we create a through cat testfile > testfile.copy and when we try to find the file size by du -s test* it is showing the both... (2 Replies)
Discussion started by: kkalyan
2 Replies