Askozia Forums
February 04, 2012, 09:29:51 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: write img to cf, no valid partition table  (Read 2749 times)
aardbei
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: January 23, 2010, 09:55:30 pm »

Hello,

I downloaded the pbx-wrap-pb14.3.img and want to write it to a CF.

On Linux i issue the command:
dd if=pbx-wrap-pb14.3.img of=/dev/sdc

/dev/sdc is my CF.


fdisk -l /dev/sdc

Disk /dev/sdc: 4034 MB, 4034838528 bytes
125 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 7750 * 512 = 3968000 bytes
Disk identifier: 0x9d23daab

Disk /dev/sdc doesn't contain a valid partition table

(Also i am not able to boot).


What am i missing??

Regards,
Aardbei







Logged
devon
Full Member
***

Karma: 4
Posts: 98


View Profile
« Reply #1 on: January 24, 2010, 04:58:17 am »

one could try this:

# mv pbx-wrap-pb14.3.img pbx-wrap-pb14.3.img.gz
# gunzip -c pbx-wrap-pb14.3.img.gz | dd of=/dev/sdc bs=512

Logged
aardbei
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #2 on: January 24, 2010, 08:03:31 pm »

Hi Devon,

Thanks for the answer!

Atleast that one works. Now it sais no bootdevice available.


PC Engines WRAP.2B/2C v1.11                                 
640 KB Base Memory                                         
130048 KB Extended Memory                                   
                                                           
01F0 Master 044A CF CARD 4GB                             
Phys C/H/S 7818/16/63 Log C/H/S 977/128/63
No boot device available, press Enter to continue.
PC Engines WRAP.2B/2C v1.11                                                     
640 KB Base Memory                                                             
130048 KB Extended Memory                                                       
                                                                               
01F0 Master 044A CF CARD 4GB                                                   
Phys C/H/S 7818/16/63 Log C/H/S 977/128/63                                     
No boot device available, press Enter to continue.                             
No boot device available, press Enter to continue.                             
No boot device available, press Enter to continue.                             
No boot device available, press Enter to continue.                             
No boot device available, press Enter to continue.   


output of fdisk -l /dev/sdc

gzip: pbx-wrap-pb14.3.img.gz: decompression OK, trailing garbage ignored
35584+0 records in
35584+0 records out
18219008 bytes (18 MB) copied, 0.424793 s, 42.9 MB/s
root@johan-laptop:/home/johan/Desktop# fdisk -l /dev/sdc
This disk has both DOS and BSD magic.
Give the 'b' command to go to BSD mode.
You must set cylinders.
You can do this from the extra functions menu.

Disk /dev/sdc: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc4   *           1           4       25000   a5  FreeBSD
Partition 4 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(3, 28, 41)


Regards,
Aardbei
Logged
devon
Full Member
***

Karma: 4
Posts: 98


View Profile
« Reply #3 on: January 25, 2010, 01:55:44 am »

From the wrap manual http://www.pcengines.ch/pdf/wrap1c.pdf

Quote
CompactFlash partitioning
tinyBIOS is set up to configure the CF card in CHS mode. CHS mode is dependent on the
geometry of the CF card, but is more likely to work consistently across systems.
If using LBA mode, please make sure that the disk geometry on the system where the card is
initialized matches that shown by the WRAP BIOS during startup. A mismatch will cause problems.

one could try configuring the C/H/S on the host to match the geometry displayed on the wrap bios screen, and then writing the image to flash.
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 50
Posts: 1020


View Profile
« Reply #4 on: January 25, 2010, 01:11:19 pm »

The blocksize 512 was the one used in 2.0, not for 1.0 a.k.a the public betas for it. Not sure if it will fix things but one could try:

gzcat pbx-wrap-pb14.3.img | dd of=/dev/sdc bs=16k
Logged
devon
Full Member
***

Karma: 4
Posts: 98


View Profile
« Reply #5 on: January 26, 2010, 03:30:34 am »

sometimes i confuse my bs  Smiley

i looked at /etc/rc.initial.install in monowall 1.3 and askozia 1.0.3 and noticed that the firmware install routines are both using 'ibs=64k obs=64k'

@aardbei- any luck?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.148 seconds with 20 queries.