login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
9
Re: Disk geometry from /sys
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Mark Lord <lkml@...>
To: Francis Moreau <francis.moro@...>
Cc: <linux-kernel@...>
Subject:
Re: Disk geometry from /sys
Date: Wednesday, April 9, 2008 - 5:57 pm
Francis Moreau wrote:
quoted text
> Hi, > > I'm trying to know the geometry of my hard disk from a bash script > and that's the reason I'm looking in /sys. The reason is that I'd like > to figure out the size of a cylinder without doing a > ioctl(bdev, HDIO_GETGEO, &geo)
$ DEV=/dev/sda $ GEOM="`/sbin/hdparm -g $DEV | awk '{print $3}'`" $ echo $GEOM 19457/255/63 $ --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Disk geometry from /sys
, Francis Moreau
, (Wed Apr 9, 4:53 pm)
Re: Disk geometry from /sys
, Seewer Philippe
, (Mon Apr 14, 8:57 am)
Re: Disk geometry from /sys
, Francis Moreau
, (Tue Apr 15, 3:40 am)
Re: Disk geometry from /sys
, Seewer Philippe
, (Wed Apr 16, 3:49 am)
Re: Disk geometry from /sys
, Francis Moreau
, (Thu Apr 17, 10:09 am)
Re: Disk geometry from /sys
, Seewer Philippe
, (Thu Apr 17, 10:49 am)
Re: Disk geometry from /sys
, Francis Moreau
, (Tue Apr 22, 4:10 pm)
Re: Disk geometry from /sys
, Seewer Philippe
, (Wed Apr 23, 2:48 am)
Re: Disk geometry from /sys
, Mark Lord
, (Fri Apr 18, 9:22 am)
Re: Disk geometry from /sys
, Francis Moreau
, (Tue Apr 22, 4:16 pm)
Re: Disk geometry from /sys
, Mark Lord
, (Tue Apr 22, 6:44 pm)
Re: Disk geometry from /sys
, Francis Moreau
, (Wed Apr 23, 3:02 am)
Re: Disk geometry from /sys
, Mark Lord
, (Wed Apr 23, 9:47 am)
Re: Disk geometry from /sys
, Seewer Philippe
, (Wed Apr 23, 5:33 am)
Re: Disk geometry from /sys
, Seewer Philippe
, (Wed Apr 23, 2:53 am)
Re: Disk geometry from /sys
, Seewer Philippe
, (Fri Apr 18, 9:37 am)
Re: Disk geometry from /sys
, Francis Moreau
, (Tue Apr 22, 4:11 pm)
Re: Disk geometry from /sys
, Seewer Philippe
, (Wed Apr 23, 2:44 am)
Re: Disk geometry from /sys
, Francis Moreau
, (Wed Apr 23, 2:56 am)
Re: Disk geometry from /sys
, Bill Davidsen
, (Thu Apr 10, 9:58 am)
Re: Disk geometry from /sys
, linux-os (Dick Johnson)
, (Thu Apr 10, 8:22 am)
Re: Disk geometry from /sys
, Francis Moreau
, (Thu Apr 10, 3:15 pm)
Re: Disk geometry from /sys
, Mark Lord
, (Wed Apr 9, 5:57 pm)
Re: Disk geometry from /sys
, Francis Moreau
, (Thu Apr 10, 3:05 pm)
Re: Disk geometry from /sys
, Mark Lord
, (Thu Apr 10, 3:53 pm)
Re: Disk geometry from /sys
, Lennart Sorensen
, (Wed Apr 9, 5:28 pm)
Re: Disk geometry from /sys
, Francis Moreau
, (Thu Apr 10, 3:23 pm)
Re: Disk geometry from /sys
, Bernd Eckenfels
, (Wed Apr 9, 6:16 pm)
Re: Disk geometry from /sys
, Lennart Sorensen
, (Thu Apr 10, 10:52 am)
Re: Disk geometry from /sys
, Alan Cox
, (Wed Apr 9, 5:52 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Vu Pham
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Adrian Bunk
Re: Linux 2.6.21
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Radu Rendec
Endianness problem with u32 classifier hash masks
Benjamin Herrenschmidt
[PATCH 0/11] ibm_newemac: Candidate patches for 2.6.25
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
782 guests
online.
Online users
janel105
jraval618
Syndicate