Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Can not formart a CF Drivesfdisk0< Next Oldest | Next Newest >
hickeyy Offline





Group: Members
Posts: 2
Joined: Jan. 2005
Posted: Jan. 09 2005,22:38 QUOTE

Good work guys.  I am new to Linux and DSL but I am impressed.

I am attempting to build a box with a 32 Meg CF and Floopy drive as a Firewall. Se:e M0n0wall It works very well on my CD boot.  I am attempting to put a CF in it for better reliablity.  In any case.

I copied an .img to the drive care of my XP machine now I am in trouble.
fdisk (dos6.22) does not recognize it.
cfdisk (From Root) gives a Fatal Error
sfdisk indicates a read error.
Based on other users posts and Part #: it appears to have a geometry (CHS) of (490,2,32).  The documentation from manufacture says (500,8,16)  Could the img change this ??

hdparm - I /dev/hdc gives:
/dev/hdc:

ATA device, with non-removable media
Model Number:       PQI SSD FLASH DISK Rev.P207BET2        
Serial Number:      MATI0011749
Firmware Revision:  MX2.0BT7
Standards:
Likely used: 1
Configuration:
hard sectored
not MFM encoded
head switch time > 15us
fixed drive
disk xfer rate > 5Mbs
Logical max current
cylinders 0 0
heads 0 0
sectors/track 0 0
--
bytes/track: 0 bytes/sector: 576
CHS current addressable sectors:          0
LBA    user addressable sectors:          0
device size with M = 1024*1024:           0 MBytes
device size with M = 1000*1000:           0 MBytes
Capabilities:
LBA, IORDY not likely
Buffer type: 0001: single port, single-sector
Buffer size: 1.0kB bytes avail on r/w long: 4
Cannot perform double-word IO
R/W multiple sector transfer: Max = 1 Current = 0
DMA: not supported
PIO: unknown

root@ttyp0[dsl]# sfdisk -C490 -H2 -S32 /dev/hdc
Checking ....
OK
Disk /dev/hdc: 490 cylinders, 2 heads, 32 sectors/track
/dev/hdc: unrecognized partition
Old situation:
No partitions found
/dev/hdc1          0+    489     490-     15679+  83  Linux
/dev/hdc2          0       -       0          0    0  Empty
/dev/hdc3          0       -       0          0    0  Empty
/dev/hdc4          0       -       0          0    0  Empty
New situation:
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hdc1          0+    489     490-     15679+  83  Linux
/dev/hdc2          0       -       0          0    0  Empty
/dev/hdc3          0       -       0          0    0  Empty
/dev/hdc4          0       -       0          0    0  Empty
Do you want to write this to disk? [ynq] Re-reading the partition table ...
y
read: Input/output error

sfdisk: read error on /dev/hdc - cannot read sector 0


Help Please :)
Back to top
Profile PM 
Additional Info - dmesg
Unregistered






Posted: Jan. 10 2005,15:46 QUOTE

Here is some more info on this issue. I have added a Maxtor Drive .  I do not care about the info on either drive.

I recently change the BIOS (CHS) to (490,2,32).  I noticed in the hdparm -I indicated this change for the HS not the Cylinders.  
Logical (max/currrent)
Cylinders (0/0)
Heads (0/2)
Sectors/track (0/32)
These were all zero.

Does anyone know where this info comes from, is it set during the auto config???
Would a different boot help??
Again thanks.  Any help would be appreciated.  I have just about given up....I will try anything...I literally have nothing to lose. ;-)

parts of the dmesg commend
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 00:01.1
SIS5513: chipset revision 192
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS551x ATA 16 controller
   ide0: BM-DMA at 0xfcf0-0xfcf7, BIOS settings: hda:pio, hdb:pio
   ide1: BM-DMA at 0xfcf8-0xfcff, BIOS settings: hdc:pio, hdd:pio
hda: C/H/S=1023/0/63 from BIOS ignored
hda: Maxtor 52049H3, ATA DISK drive
hdb: TOSHIBA DVD-ROM SD-M1202, ATAPI CD/DVD-ROM drive
hdc: PQI SSD FLASH DISK Rev.P207BET2, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 39882528 sectors (20420 MB) w/2048KiB Cache, CHS=39566/16/63
*******The problem is Here****************
hdc: attached ide-disk driver.
hdc: set_geometry_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: set_geometry_intr: error=0x04 { DriveStatusError }
hdc: 0 sectors (0 MB) w/1KiB Cache, CHS=0/0/0
hdc: INVALID GEOMETRY: 0 PHYSICAL HEADS?
***************************************
Partition check:
hda: hda4
hda4: <bsd: hda5 >
ide: late registration of driver.
Back to top
SaidinUnleashed Offline





Group: Members
Posts: 1428
Joined: Mar. 2004
Posted: Jan. 10 2005,16:32 QUOTE

The drive geometry in the Docs is for USB Pendrives (hence the name "Setting the proper geometry on your usb pendrive").

For a CF card, you just need a 64mb card or larger (your 32 is too small, sorry) and the Frugal-install script, which you can hit in the menu. Apps >> Tools >> Frugal Install


Now for your hdd, I think if you use fdisk to create a new MBR and partition table, the drive will be usable once again, but all existing data will be lost. But is sounds like it's gone already.

Good luck with it.

If you need some live help, drop by the IRC channel. Apps >> Net >> Instant Messaging >> Nirc #damnsmalllinux


-J.P.


--------------
They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, cause if you play it forwards, it installs Windows.

Unleash the power of the TILDE~~~
Back to top
Profile PM AOL MSN YIM 
hickeyy Offline





Group: Members
Posts: 2
Joined: Jan. 2005
Posted: Jan. 10 2005,20:52 QUOTE

I appreciate your help.  I am not clear what you mean...Are you saying that DSL will not recognize a 32Meg Flash Card.  I only need 5M to do what I want.  I just want to write an image to it. :-(

I got the Geometry from posts: MsgBoard; Manufacturer

I am confortable with the Maxtor Drive (/dev/hda)- it is fine.  I just installed it during my hours of banning my head. (seeing what worked ;)

Personnally I think the Drive is FUBAR or it is a Secure CF. (What does not make sense it I "wrote" to it twice. <Assuming the porgrams had some sort of error routine.>)

I do not have IRQ setup, generally, I do not use it.  I appreciate the offer --  I may chat with you see you soon.

Thanks again
Back to top
Profile PM 
3 replies since Jan. 09 2005,22:38 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Can not formart a CF Drivesfdisk0

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code