I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods

Click Here!
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / MSN Companion
Mounting CF slot
How do i mount the Compact Flash slot AFTER bootup?

New MessageMounting CF slot (modified 0 times) mondain
Profile
I have Jailbait working, but i need to transfer some files (nmclan_cs.o) that i have on my Win98 boot CF. (I dont have a working network or any other way to tx'fer files right now.) What i need to know is how to mount the CF after the system has successfully booted up on Linux.
the early bird may get the worm but the second mouse gets the cheese
12-19-2001 01:36:12

New MessageRE:Mounting CF slot (modified 0 times) Rasmus
Profile | Email
mount /dev/hdc1 /mnt
12-19-2001 13:45:18

New MessageRE:Mounting CF slot (modified 0 times) mondain
Profile
i tried that and i get this..

mount: special device /dev/hdc1 does not exist

??

12-19-2001 18:53:33

New MessageRE:Mounting CF slot (modified 0 times) bballctaulbee
Profile
to create a device, mount / as read-write, then use mknod to create the device...
12-19-2001 19:07:33

New MessageRE:Mounting CF slot (modified 0 times) bballctaulbee
Profile
urk! use mknod to create the device *assuming* the device is recognized! IOW, check to make sure the CF is recognized (haven't tested this btw, so it's a good point)...
12-19-2001 19:16:00

New MessageRE:Mounting CF slot (modified 0 times) jakgoff
Profile
Pardon my ignorance, but could you supply directions for using mknod? My CF card (a 64mb one) is detected on boot, but I can't mount it with mount /dev/hdc because the "special device doesn't exist"

-Jack Goff

12-19-2001 20:20:18

New MessageRE:Mounting CF slot (modified 0 times) Rasmus
Profile | Email
How do you know your CF card was detected at boot? What do you actually see? If it is detected, the device should be there.
12-19-2001 22:15:22

New MessageRE:Mounting CF slot (modified 0 times) jakgoff
Profile
dmesg reports the following from boot-up:

VP_IDE: VIA vt82c686a (rev1b) IDE UDMA66 controller on pci00:07.1
| ide0: BM-DMA at 0x1c40-0x1c47, BIOS settings: hda:DMA, hdb:pio
| ide1: BM-DMA at 0x1c48-0x1c4f, BIOS settings: hda:DMA, hdb:pio
hda: SanDisk SDP3B-16, ATA DISK drive
<snip>
hdc: SanDisk SDCFB-64, ATA DISK drive
<snip>
hda: 31360 sectors (16 MB) w/1KiB Cache, CHS=490/2/32
hdc: 125440 sectors (64 MB) w/1KiB Cache, CHS=490/8/32

Pardon the verbose posting, but you did ask for exactly what I saw (the snipped portions are idential errors in setting set_drive_speed_status, for both hda and hdc). I don't know if this is my relative inexperience talking, but it seems like this indicates that the system has found my 64mb CF disk (which IS manufactured by SanDisk) and is calling it hdc. However, dev/hdc doesn't exist, and mount /dev/hdc simply returns the error I mentioned before. Any advice?

-Jack Goff

12-20-2001 02:30:23

New MessageRE:Mounting CF slot (modified 0 times) bballctaulbee
Profile
- looks good... a couple points (after testing):

1. Linux does not detect hot insertion/removal events on the external CF; this means you must boot with an external CF inserted
2. it does detect CF memory cards... other cards i will try as i get time are:

- Xircom CF Ethernet (CF nic)
- Targus serial I/O CF (to add a serial port)
- Targus WWW serial CF (for connection to a Motorola StarTAC for modem use)

3. /dev/hdc1 *is* available under the 'newer' hacked jailbait! i booted with a CF formatted FAT16... using:

# ls -l /dev/hdc1

reports:

/dev/hdc1 -> ide/host0/bus1/target0/lun0/part1

- this is as things should be... i then mounted the /dev/hdc1 partition (it was a 32MB Sandisk with a single vfat [FAT16] partition like this:

# mount -t vfat /dev/hdc1 /mnt/hd


4. if you do not have /dev/hdc1, you can create one like this:

- mount / as read-write:

# mount -o remount,rw /

- use the mknod command to create the device:

# mknod /dev/hdc1 b 22 1

- create a mount point:

# mkdir /mnt/cf

- then mount it:

# mount -t vfat /dev/hdc1 /mnt/cf

- i'd suggest trying the latest hacked linux image flashed internally... it works pretty well (but is not the only solution)...

hope this helps...

bball

12-20-2001 07:44:49

New MessageRE:Mounting CF slot (modified 0 times) ToeTag
Profile
Howdy,

Another thing that might be the problem:
Are you sure you have a partition on the first partition? Could you have created a partition on the 2nd (or 3rd etc..) instead? I know one of the faq's uses the 2nd partition as an example when using the ranish disk partitioner. Did you try (in linux of course):

fdisk /dev/hdc

If you don't get a prompt, then something is wrong. If you get to a prompt, then you could type 'p' to get a listing of the partitions on the drive (q to exit). If the partition is defined on the 2nd slot (or whatever you call it), then hdc2 should appear on the listing. Then you could attempt to mount the 2nd partition with:

mount /dev/hdc2 /mnt

- ToeTag

12-20-2001 11:57:42

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3