LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-03-2004, 12:32 PM   #1
keripukki
LQ Newbie
 
Registered: Aug 2004
Posts: 19

Rep: Reputation: 0
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?
 
Old 09-03-2004, 12:38 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
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
 
Old 09-03-2004, 12:52 PM   #3
keripukki
LQ Newbie
 
Registered: Aug 2004
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 09-03-2004, 01:26 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Information about /proc and /sys directories spinner_0 Linux - General 3 12-01-2005 10:39 AM
create something in /proc os2 Programming 1 07-14-2004 01:13 AM
Create several directories? AutOPSY Linux - Newbie 3 03-30-2004 07:51 PM
Re-create /proc directory? calabash Red Hat 3 02-18-2004 12:35 AM
what does the directories under /proc do? 286 Linux - Newbie 3 01-19-2004 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration