santner Posted June 21, 2004 Report Share Posted June 21, 2004 I just received a 128MB SD Memory card, and I was thinking how convenient it would be to be able to write to it for storing pictures, which I would then take to a retailer and have printed off(better that writing pictures to a disc!). So I was wondering first if this is even possible, and if so how can it be done. I don't have any adapters so I would have to write from the computer through my camera(Kodak DX4530) to the SD Memory card. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted June 21, 2004 Report Share Posted June 21, 2004 Note that I haven't tested any of this, so you're on your own... When I plug my wife's digital camera to the computer via USB, an icon appears on the desktop, and I can open Nautilus on this directory, which is actually the content of the SD-card. So far, I have only copied files from there to the harddisk. But as Nautilus shows no evidence of this directory being write-protected, I suppose that I could copy files the other way around. The only reason why I don't even try this is because I don't know how the digital camera would react, if filenames were not named exactly as it expects them to be. A solution that should work is to buy a multi-format card reader. I saw one last week in a local retailer, for only 15 EURO, and linux compatibility is written on the box :o :o Yves. Quote Link to comment Share on other sites More sharing options...
plati Posted June 21, 2004 Report Share Posted June 21, 2004 I use a Sony Memory Stick reader (MSACUS1) for the Memory Sticks used in my digital camera and also for backing up my website onto. Basically it acts just like a USB thumbdrive, just plug it in and it should pop up on the desktop (in Mandrake at least), if not, you can mount it, it usually appears in /dev as sda1 or something of the like. The only reason why I don't even try this is because I don't know how the digital camera would react, if filenames were not named exactly as it expects them to be. You can use the camera exactly like a memory card reader, so whatever type of file it is you are copying, there shouldnt be a problem B) Quote Link to comment Share on other sites More sharing options...
santner Posted June 21, 2004 Author Report Share Posted June 21, 2004 Is it as simple as: mkdir /dev/sda1/Pictures cp /mnt/Pictures/2004/06_June/* /dev/sda1/Pictures Can I go through gtkam to do this? B) Quote Link to comment Share on other sites More sharing options...
santner Posted June 21, 2004 Author Report Share Posted June 21, 2004 Just looking for a confirmation before I go home and try it. Can anyone verify that my previous post is accurate and/or won't damage my camera. Thanks. Quote Link to comment Share on other sites More sharing options...
iphitus Posted June 22, 2004 Report Share Posted June 22, 2004 Not quite You will need to first, plug it in. Does an icon appear on the desktop? Take a look in /mnt/ and the directories within, are the files there? If the files are not there: mkdir /mnt/removable mount /dev/sda1 /mnt/removable Then you should be able to see your files in /mnt/removable/ If you cannot see the files in /mnt/removable/ Post the output of the two commands above and: ls /dev/sd* Have fun. Quote Link to comment Share on other sites More sharing options...
santner Posted June 22, 2004 Author Report Share Posted June 22, 2004 When I plug the camera in, an icon does appear on the desktop. Next, I looked in the /mnt directory, but nothing was there. I tried to right click on the icon on the desktop and look at the properties, but it only had the properties for the gtkam. I tried what you said and here is the output: mkdir /mnt/camera mount /dev/sda1 /mnt/camera mount: special device /dev/sda1 does not exist ls /dev/sd* ls: /dev/sd*: No such file or directory Thanks for your help so far, and please give me some further guidance. Thanks. :P Quote Link to comment Share on other sites More sharing options...
santner Posted June 22, 2004 Author Report Share Posted June 22, 2004 More information. I tried this on the kernel that I compiled myself(2.6.6) and it is very likely that I could have left something out that wasn't important to me at the time, i.e. some kernel component which would have created sda1 automatically for me. Also, I have the install CD kernel which I will boot into tonight and see if /dev/sda1 exists there. Also, maybe I could just create the /dev/sda1 file myself. What are the properties of your /dev/sda1 file? Quote Link to comment Share on other sites More sharing options...
VeeDubb Posted June 22, 2004 Report Share Posted June 22, 2004 (edited) Buy a card reader Buy a card reader Buy a card reader Buy a card reader Buy a card reader Buy a card reader Buy a card reader Buy a card reader Buy a card reader Buy a card reader No realy, Buy a card reader. I know that lately i've been sounding like a broken record with this tune, but just buy the right thing. You can afford a computer, an internet connection and a nice enough digital camera that the pictures are worth printing. Just go to Wal*Mart, shelll out $20 for a multi car reader, put the card in the reader,plug the reader in and double clickthe hard drive icon that instantly aprears on your desktop. Not only would such a card reader be far easier, they are also typicaly faster. In fact, for the same money you can get a USB2.0 card reader that will practialy fly. Even in windows, plugging your camera in with a usb cable is more trouble than it's worth. Edited June 22, 2004 by VeeDubb Quote Link to comment Share on other sites More sharing options...
santner Posted June 22, 2004 Author Report Share Posted June 22, 2004 You make a good point. And I might end up doing that, but I like the challenge. If I do: /sbin/makedev sda /sbin/makedev sda1 Will this set up the necesary device files correctly? Quote Link to comment Share on other sites More sharing options...
Gowator Posted June 22, 2004 Report Share Posted June 22, 2004 it looks like they are already set uop if you get the directories wrong dont worry just reformat the card... I do this all the time when sticking stuff on a compact flash sometimes the USB 1 cable is sufficient... I agree with VeeDubb on the card reader but the cable is tiny and fits in the bab and I can carry it round easier.... sometimes I put othr files and stuff on the cards and the camera comes up all error-error and I just reformat the card! Quote Link to comment Share on other sites More sharing options...
iphitus Posted June 22, 2004 Report Share Posted June 22, 2004 (edited) Wait guys, Makedev wont do anything if the driver isnt loaded And a new reader wont do anything if the driver isnt loaded. I tried this on the kernel that I compiled myself(2.6.6) and it is very likely that I could have left something out that wasn't important to me at the time, i.e. some kernel component which would have created sda1 automatically for me. Also, I have the install CD kernel which I will boot into tonight and see if /dev/sda1 exists there. Also, maybe I could just create the /dev/sda1 file myself. What are the properties of your /dev/sda1 file? Did you leave in USB Mass storage? Did you compile this as a module or into the kernel? Could you please post the .config file of your kernel. You will find it in the directory of the kernel source. Could you also please pass us the output of "lsmod" iphitus Edited June 22, 2004 by iphitus Quote Link to comment Share on other sites More sharing options...
santner Posted June 23, 2004 Author Report Share Posted June 23, 2004 I have compiled USB Mass storage as a module. Here is the portion of the .config file that I think your interested in: # # USB support # CONFIG_USB=m # CONFIG_USB_DEBUG is not set # # Miscellaneous USB options # CONFIG_USB_DEVICEFS=y CONFIG_USB_BANDWIDTH=y CONFIG_USB_DYNAMIC_MINORS=y # # USB Host Controller Drivers # CONFIG_USB_EHCI_HCD=m # CONFIG_USB_EHCI_SPLIT_ISO is not set # CONFIG_USB_EHCI_ROOT_HUB_TT is not set CONFIG_USB_OHCI_HCD=m CONFIG_USB_UHCI_HCD=m # # USB Device Class drivers # CONFIG_USB_AUDIO=m # CONFIG_USB_BLUETOOTH_TTY is not set CONFIG_USB_MIDI=m CONFIG_USB_ACM=m CONFIG_USB_PRINTER=m CONFIG_USB_STORAGE=m # CONFIG_USB_STORAGE_DEBUG is not set CONFIG_USB_STORAGE_DATAFAB=y CONFIG_USB_STORAGE_FREECOM=y CONFIG_USB_STORAGE_ISD200=y CONFIG_USB_STORAGE_DPCM=y CONFIG_USB_STORAGE_HP8200e=y CONFIG_USB_STORAGE_SDDR09=y CONFIG_USB_STORAGE_SDDR55=y CONFIG_USB_STORAGE_JUMPSHOT=y Here is the output of lsmod: Module Size Used by ppp_deflate 6112 0 zlib_deflate 22904 1 ppp_deflate zlib_inflate 22656 1 ppp_deflate bsd_comp 5952 0 ppp_async 11744 1 ppp_generic 29552 7 ppp_deflate,bsd_comp,ppp_async slhc 7200 1 ppp_generic vfat 13760 0 fat 45120 1 vfat md5 3872 1 ipv6 232352 10 nvidia 2068232 24 snd-seq-midi 8160 0 snd-seq-oss 31232 0 snd-seq-midi-event 7552 2 snd-seq-midi,snd-seq-oss snd-seq 51024 5 snd-seq-midi,snd-seq-oss,snd-seq-midi-event snd-pcm-oss 51812 0 snd-mixer-oss 17952 1 snd-pcm-oss snd-via82xx 24128 0 snd-pcm 93156 2 snd-pcm-oss,snd-via82xx snd-timer 24484 2 snd-seq,snd-pcm snd-ac97-codec 58148 1 snd-via82xx gameport 4480 1 snd-via82xx snd-page-alloc 11972 2 snd-via82xx,snd-pcm snd-mpu401-uart 7072 1 snd-via82xx snd-rawmidi 23616 2 snd-seq-midi,snd-mpu401-uart snd-seq-device 8008 4 snd-seq-midi,snd-seq-oss,snd-seq,snd-rawmidi snd 52484 13 snd-seq-midi,snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-via82xx,snd-pcm,snd-timer,snd-ac97-codec,snd-mpu401-uart,snd-rawmidi,snd-seq-device soundcore 9248 1 snd af_packet 20520 0 tulip 45248 0 ohci1394 33956 0 ieee1394 287856 1 ohci1394 sg 38044 0 st 38616 0 sr_mod 17028 0 sd_mod 16832 0 scsi_mod 114648 4 sg,st,sr_mod,sd_mod ext3 111048 2 ide-cd 40548 0 jbd 54680 1 ext3 cdrom 37184 2 sr_mod,ide-cd via-agp 7360 1 agpgart 31016 1 via-agp tsdev 7168 0 joydev 10240 0 evdev 9504 0 usbmouse 5216 0 hid 53312 0 floppy 59444 0 uhci-hcd 29104 0 usbcore 99132 5 usbmouse,hid,uhci-hcd rtc 11576 0 I hope this helps. :D :D Quote Link to comment Share on other sites More sharing options...
Gowator Posted June 23, 2004 Report Share Posted June 23, 2004 Im pretty sure usb-mass storage is compiled onto mandrake as a module as standard. what might not be working is the modules.conf... but also you need IDE_SCSI etc. I can post what mine looks like but if someonbe is at home then get a usb card/camera/disk working and post a lsmod then we can see all the modules which depend on the others (used by) Quote Link to comment Share on other sites More sharing options...
santner Posted June 23, 2004 Author Report Share Posted June 23, 2004 Here is where I currently stand. mknod -m 660 /dev/sda b 8 0 mknod -m 660 /dev/sda1 b 8 0 To create the block devices. Now I went to link sda and sda1 to the actual driver, and there was no driver there. In other words, I tried: ln -s /dev/sda /dev/scsi/host0/bus0/target0/lun0/disc ln -s /dev/sda1 /dev/scsi/host0/bus0/target0/lun0/part1 but there is NOTHING in the /dev/scsi directory. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.