I am attempting to write a 20MB CF card except I am attempting to use a
livecd. I have successfully written a CF card in my Mac G4 tower, but
It's not convenient since I have to disconnect drives to do it. This is
only my second attempt doing this.
In a PC running SLAX, I have found the correct device.
Thanks for the help!
This is the dd command that I am trying.
root@slax:/dev# dd if=/root/generic-pc-1.0.img of=/dev/hda bs=20480
226+1 records in
226+1 records out
However this does not boot. Any suggestions?
Here's what I can find...(after I have tried dd)...
root@slax:/dev# ls -l /root/generic-pc-1.0.img
-rw-r--r-- 1 root root 4641953 Feb 15 11:12
/root/generic-pc-1.0.img
root@slax:~# ls -l /dev/hda
lr-xr-xr-x 1 root root 32 Feb 23 10:38 /dev/hda ->
ide/host0/bus0/target0/lun0/disc
Would the fact that it looks to be readonly be my problem and if so,
how would I unmount and remount the drive writeable?
root@slax:/dev# df /dev/hda
Filesystem 1K-blocks Used Available Use% Mounted on
- 0 0 0 - /dev
Linux 2.4.23-xfs.
root@slax:~# dmesg |grep hd
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:pio
hda: SanDisk SDCFB-20, CFA DISK drive
hda: set_drive_speed_status: status=0x51 { DriveReady SeekComplete
Error }
hda: set_drive_speed_status: error=0x04 { DriveStatusError }
hdc: TOSHIBA DVD-ROM SD-M1212, ATAPI CD/DVD-ROM drive
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 39168 sectors (20 MB) w/1KiB Cache, CHS=19/32/63
hdc: attached ide-cdrom driver.
hdc: ATAPI 32X DVD-ROM drive, 256kB Cache, UDMA(33)
root@slax:~# hdparm -i /dev/hda
/dev/hda:
Model=SanDisk SDCFB-20, FwRev=Vdd 1.02, SerialNo=i9031031116
Config={ HardSect NotMFM Removeable DTR>10Mbs nonMagnetic }
RawCHS=612/2/32, TrkSize=0, SectSize=576, ECCbytes=4
BuffType=DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=off
CurCHS=612/2/32, CurSects=39168, LBA=yes, LBAsects=39168
IORDY=no
PIO modes: pio0 pio1
AdvancedPM=no
* signifies the current active mode |