LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't create directories in /proc (https://www.linuxquestions.org/questions/linux-software-2/cant-create-directories-in-proc-226206/)

keripukki 09-03-2004 12:32 PM

Can't create directories in /proc
 
I've been trying to get my digicamera work. It's Canon A75 and it has worked me with Gentoo,but I have had problems with Debian. When I run gphoto2 --camera="Canon PowerShot A70" --get-all-files

it says:

Code:

ERROR: Bad option "--camera=Canon PowerShot A70":
ERROR:    unknown option

This has worked for me before. I have Debian testing.

Also it seems that I can't create directories to /proc which I think is the problem, because there is no /proc/bus/usb and I can't mount usb filesystem there. Something missing from kernel or what?

rjlee 09-03-2004 12:38 PM

To answer the second part…

The /proc/ directory is the mount-point for the “proc” filesystem, which contains all sorts of useful goodies.
/proc/bus/usb is the mount-point for the “usbfs” filesystem, which contains information about the USB devices you are using.

You will need /proc/ filesystem support compiled into the kernel for it to work (CONFIG_PROC_FS). Unless you have recompiled your kernel, this will almost certainly be the case. Then you can add the following to your /etc/fstab file:
Code:

proc                /proc                proc      defaults              0 0
usbfs                /proc/bus/usb        usbfs      defaults                0 0

Then, assuming you have all the relevant kernel modules, you can run
Code:

mount /proc
mount /proc/bus/usb

to mount usbfs.

Hope that helps,

— Robert J. Lee

keripukki 09-03-2004 12:52 PM

Well, it just says

mount: mount point /proc/bus/usb does not exist

It doesn't let me make that usb directory there, but /proc/bus is there already. Sorry if I was a bit of unclear.

I have /proc support in kernel and usb support and /proc is mounted.

rjlee 09-03-2004 01:26 PM

You should have the /proc/bus/usb directory if you have the USB_DEVICEFS symbol defined in the kernel.

Run this command:
Code:

zcat /proc/config.gz | grep USB_DEVICEFS
This should give you one of the following:
Quote:

CONFIG_USB_DEVICEFS=y
This means that you have usbfs support compiled into the kernel; I don't see why /proc/bus/usb doesn't exist in this case.

Quote:

CONFIG_USB_DEVICEFS=m
This means that usbfs is compiled as a module. You will need to load it with
Code:

modprobe usbfs.o
Quote:

CONFIG_USB_DEVICEFS=n
This means that usbfs is not compiled. You'll need to recompile your kernel to get this working.

NB: If you have an older kernel, then usbfs may be called usbdevfs instead. So you might have to repeat the above for usbdevfs instead of usbfs.

Hope that helps,

— Robert J. Lee


All times are GMT -5. The time now is 01:50 AM.