Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
All Other Software
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard mouse network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > All Other Software >
Get Information About Cylinders, Heads and SPT From CD Image

Reply  
Thread Tools
nathanpc's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Sep 2010
Location: Brazil
Experience: Advanced
08-Sep-2010, 08:37 AM #1
Exclamation Get Information About Cylinders, Heads and SPT From CD Image
I want to boot a CD-ROM image at Bochs, but I need it's cylinders, heads and the Sectors per track. But how I can get this values from the disk image(*.ISO)?
I'm on Windows, but I have Cygwin installed
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
08-Sep-2010, 09:25 AM #2
Hi nathanpc,

I would try to get the package util-linux which contains the executable fdisk. If you have the *.iso image burned to a CD, and inserted on a system with the excutable fdisk, then you can simply issue the command:
$ fdisk -l {i.e. lowercase L)

It' output looks like the following for an 80 GB hard drive with WinXP Pro SP2:
ubuntu@ubuntu:~/Desktop$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x60276028

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9728 78140128+ 7 HPFS/NTFS

The sector size on a Live CD is probably 2048 rather than 512.

Apparently, the command does not fully get the C/H/S information you a looking for with regard to a Live CD, but it looks like another command may help:

I have burned a 691 MB ISO bootable image to a Live CD, and the following command yields the following information (Note: the name of the ISO file isdesktop-i386-20100830.15.iso (the systemd Live CD test .iso file):
$ mount (to find the name of the device of the mounted Live CD)
...
/dev/sr1 on /media/desktop-i386-20100830.15 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=999,gid=999,iocharset=utf8,mode=0400,dm ode=0500)
...
$ sudo sfdisk -l /dev/sr1
Disk /dev/sr1: cannot get geometry

Disk /dev/sr1: 88 cylinders, 255 heads, 63 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/64/32 (instead of 88/255/63).
For this listing I'll assume that geometry.
Units = cylinders of 1048576 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sr1p1 * 0 690 691 707584 17 Hidden HPFS/NTFS
/dev/sr1p2 0 - 0 0 0 Empty
/dev/sr1p3 0 - 0 0 0 Empty
/dev/sr1p4 0 - 0 0 0 Empty

I don't know if any of this helps your situation, but the executable, sfdisk is contained in the package util-linux, i.e. util-linux_2.17.2-0ubuntu1_i386.deb for Ubuntu 10.04.1 (Lucid Lynx) which has a number of dependencies listed on the webpage for Package: util-linux (2.17.2-0ubuntu1) where the i386 link at the bottom of the webpage leads to a mirror webpage for download of the package itself (not its dependencies which have to be downloaded and installed separately).

I have no idea whether any of this will work under Cygwin.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
nathanpc's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Sep 2010
Location: Brazil
Experience: Advanced
08-Sep-2010, 01:17 PM #3
It don't work on Cygwin and my Linux desktop is far from me. Any idea of how I can do it using a Windows program?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
08-Sep-2010, 06:49 PM #4
Hi nathanpc,

Look to see if you have any of the above commands I mentioned on your Windows platform, e.g. fdisk may exist - but, I am not certain of that.

-- Tom
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools


Similar Threads
Title Thread Starter Forum Replies Last Post
Help mounting a CD image LIX Multimedia 11 10-Apr-2010 11:58 AM
NTLDR is missing - Cannot boot from CD shantuk123 Windows XP 0 14-May-2009 03:43 PM
Boot from cd -problem FallFromINFINITY Hardware 2 11-May-2009 07:51 PM
Blue Screen Of Death On Windows Start up and and Booting from CD!! black_magician Hardware 16 18-Aug-2007 03:55 AM
***to reformat and reinstall from CD Binky99 Windows XP 5 08-Oct-2005 10:20 AM


Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:55 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.