bios parameter block


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users bios parameter block
# 1  
Old 12-13-2005
Error bios parameter block

how can i show the contain of the bios parameter block of a file system in minix or unix or a similar os?
Here are some of the things i wanna print:
- Logical bytes per sector
- Sector per cluster
- Number of fats
- Fat type

Smilie
# 2  
Old 12-13-2005
statvfs() will give you some of the information for a filesystem.

There is no "fat" in unix, only different filesystems.

Getting information directly from the BIOS is a hardware specific thing - since you seem to be on a PC try searching:

www.tldp.org for information on filesystems and the BIOS interface (sometimes called a HAL).
# 3  
Old 12-14-2005
Error Problem

We are working with Minix so we don`t have that command... Maybe i didn`t explain myself right so here i leave my task for collage Smilie . Maybe u can help..

1. Info about the filesystem FAT12 of a floppy.
  • logical bytes per sector
  • Sector per cluster
  • numbers of reserved sectors starting from 0
  • number of FATs
  • number of root dir entries
  • total sectors
  • media descriptor
  • number of sectors per FAT
  • number of logical sectors per FAT
  • number of logical heads
  • number of hidden sectors
  • total sectors
  • physical drive number
  • reserved
  • signature byte for extended boot record
  • serial number
  • label
  • FAT type

I thought that maybe I should include a library and acces to the data of a structure.. Here is an example that i think is on the right way...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Help with updating bios

I need to update a setting in the BIOS on our SCO Openserver 5.0.7 system and all I can bring up about it says I need to create a dos bootable disk of some sort. The problem is that it doesn't seem like dos is loading up fully. I created the dos bootable thumb drive on a Windows PC using Rufus... (7 Replies)
Discussion started by: hometrics
7 Replies

2. Ubuntu

BIOS configuration

I have a problem with a brand new Dell laptop. BioLinux was installed on it without making the necessary changes on BIOS. The installation was completed successfully but the BIOS system cant find the OS after rebooting the machine. I have tried to modify the BIOS setting with no luck this far. I... (7 Replies)
Discussion started by: Xterra
7 Replies

3. Shell Programming and Scripting

Passing parameter to script, and split the parameter

i am passing input parameter 'one_two' to the script , the script output should display the result as below one_1two one_2two one_3two if then echo " Usage : <$0> <DATABASE> " exit 0 else for DB in 1 2 3 do DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}` done fi (5 Replies)
Discussion started by: only4satish
5 Replies

4. Debian

Stuck in BIOS

okay,i made a grave mistake in installing the base bare bones install of debian. here i have edited this from the original. this morning when i got home from work i did some searching and then just shut the system down via the mechanical off on switch. waited a few minutes and then restarted... (0 Replies)
Discussion started by: cowLips
0 Replies

5. Shell Programming and Scripting

Command that takes one parameter and then searches for the passed in parameter

Hi I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/ Can anyone please help me on this? (3 Replies)
Discussion started by: pankaj80
3 Replies

6. Hardware

Where is the BIOS located???

Hi friends, I hope you are doing well. Can you please tell me which part of the motherboard contains the BIOS software, name that exact location. And could please give me the names of the firmwares for atleast 5 archetictures, like sun sparc, ibm power, hp alpha etc. Looking forward to your... (0 Replies)
Discussion started by: gabam
0 Replies

7. Solaris

how to get the bios version?

I am using solaris 10 how to get the bios version? thanks (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

8. Shell Programming and Scripting

how do I make dynamic parameter names? Or get the value of a parameter evaluated twi

Say I write something like the following: var1=1 var2=2 for int in 1 2 do echo "\$var$int" done I want the output to be: 1 2 Instead I get something like: $var1 $var2 (2 Replies)
Discussion started by: Awanka
2 Replies

9. UNIX for Dummies Questions & Answers

Save 43p bios?

Is there any way to backup the bios on a 43P-140 7043? (0 Replies)
Discussion started by: freestyle10269
0 Replies

10. UNIX Desktop Questions & Answers

hardware (BIOS) clock

Guys could you please tell me which appropriate command is used to set hardware (BIOS) clock so that the system keeps time when it reboots & how it's used. I use Linux Thank you (2 Replies)
Discussion started by: joseph kembo
2 Replies
Login or Register to Ask a Question