x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

How do i mount a CF card in netbsd

tsdave Page Icon Posted 2005-10-25 10:54 AM
#
Avatar image of tsdave
Factorite (Senior)

Posts:
93
Status:
I think i have figured out how to make a miniroot.fs, i think i just need to dd the
ramdisk to a file then i can gzip it. Maybe i can replace and add programs to the
ramdisk then just dd it to save it for next time. But i need to save it to the
CF card, but dont know which device it is ! Any ideas ?

I think it should be something like:
mount -t msdos /dev/wd0a /mnt

but i always get errors ...

So if you know what the CF devices are or the ramdisk device please reply ;-)
 Top of the page
oski Page Icon Posted 2005-10-25 12:52 PM
#
Avatar image of oski
Factorite (Elite)

Posts:
187
Location:
Herts. UK
Status:
Hi,

Try mount -t msdos /dev/hda1 /mnt

 Top of the page
tsdave Page Icon Posted 2005-10-25 5:45 PM
#
Avatar image of tsdave
Factorite (Senior)

Posts:
93
Status:
well after alot of trial and error then ALOT of searching i found out that the CF
slot is "/dev/wd0e". And by looking at the output of "df" or "mount" i see the
ramdisk image is "/dev/md0a" but when i try to "dd if=/dev/md0a of=/mnt/miniroot.fs" i get "device busy" errors. Unfourtunatly i cant "umount" my "/" cause i guess i need
it.

so any suggestions on how to copy my ramdrive to a file on my cf card ?
 Top of the page
Snappy! Page Icon Posted 2005-10-25 10:07 PM
#
Avatar image of Snappy!
H/PC Elder

Posts:
1,712
Location:
New Mexico, US
Status:
tsdave - 2005-10-25 3:45 PM

well after alot of trial and error then ALOT of searching i found out that the CF
slot is "/dev/wd0e". And by looking at the output of "df" or "mount" i see the
ramdisk image is "/dev/md0a" but when i try to "dd if=/dev/md0a of=/mnt/miniroot.fs" i get "device busy" errors. Unfourtunatly i cant "umount" my "/" cause i guess i need
it.

so any suggestions on how to copy my ramdrive to a file on my cf card ?


From what I know, if the partition on your CF is msdos type, do a
mount -t msdos /dev/wd0e /mnt

to verify, do a fdisk -l /dev/wd0

this would (or should) list the partitions on the device /dev/wd0 which in your case points to the CF. If it fails, do a fdisk /dev/wd0 and type "p" to print (list) out the partitions in this device. Make sure you have a valid partition that you can access.

wd0a should typically refer to the first *nix (ffs2 or ffs3) partition while wd0e refers to the first msdos or non-ffs# partition. wd0b typically refer to swap (I think) and wd0c (or was it wd0d?) refers to the whole drive.

Hope this helps.
 Top of the page
Jump to forum:
Seconds to generate: 0.156 - Cached queries : 42 - Executed queries : 28