LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-16-2011, 07:46 AM   #1
hdspvnr
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Logical block address


Hi experts,

Need your help in file system program.

After writing a data into a block using c program, i want to get the Logical block address (LBA) of the sector, means where it written the data.

Regards,
Rao.
 
Old 09-16-2011, 09:35 AM   #2
jason_not
Member
 
Registered: Aug 2010
Location: Beaverton, Oregon, USA
Distribution: Pfsense, Ubuntu, Centos, Fedora, Redhat, Scientfic, MacOS
Posts: 76

Rep: Reputation: 19
Hello,

Unless you are working on the filesystem interface itself, I think the closest thing you are going to get is the inode number. use the command "ls -i" to get inode numbers. They are unique within a filesystem.

--jason
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read a logical block from user space rimuni Linux - Hardware 1 02-18-2010 01:26 PM
Buffer I/O error on device sdi, logical block 9 crackerB Linux - Hardware 0 11-11-2008 01:37 AM
install from a cd Buffer I/O error logical block Peter Shepard Ubuntu 1 12-14-2006 01:39 PM
buffer i/o error on device hdc,logical block 0 (imp) abhis_mail2002 Fedora 0 12-08-2005 06:02 AM
Logical block error on install w1z4rd Mandriva 1 03-09-2005 04:56 AM


All times are GMT -5. The time now is 10:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration