copying files to /proc/bus/usb
hi. i got a usb hardisk (enclosure) 80G that is partition into 4 of 20G. it was read by /proc/bus/usb.. owned by root :
[root@vector/proc/bus/usb]# ls -l total 0 dr-xr-xr-x 2 root root 0 2007-10-09 16:12 001/ dr-xr-xr-x 2 root root 0 2007-10-09 16:12 002/ dr-xr-xr-x 2 root root 0 2007-10-09 16:12 003/ dr-xr-xr-x 2 root root 0 2007-10-09 16:12 004/ -r--r--r-- 1 root root 0 2007-10-09 16:12 devices the problem is. . . i cannot copy files from it.. samples : [root@vector/proc/bus/usb/001]# mkdir test mkdir: cannot create directory `test': Operation not permitted attempted to copy a file from my windows partition : [root@vector/mnt/winbak]# cp lilo_vect5.8 /proc/bus/usb/001/ cp: cannot create regular file `/proc/bus/usb/001/lilo_vect5.8': Permission denied do i have to configure something else? i google some sites.. i read some articles that usb hard disk should have an fs? is this true? because im also using my usb hd in windows. . . i thought that this is just the same when using a usb flash drive. . :( |
Err... You are not suppose to that. You should try to understand what is the function of /proc/
Quote:
|
Simpler yet - enter (as root) "fdisk -l" in a terminal.
It'll tell you all the disks/partitions you have available to you. Leave /proc alone - there are some writeable files there, but not what you're trying to do. |
oh i see.. im sorry :(
here is the output of /var/log/messages : Oct 9 19:10:30 darkstar kernel: usb 1-4: new high speed USB device using ehci_hcd and address 58 Oct 9 19:10:31 darkstar kernel: usb 1-4: new high speed USB device using ehci_hcd and address 59 Oct 9 19:10:31 darkstar kernel: usb 1-4: new high speed USB device using ehci_hcd and address 60 Oct 9 19:10:32 darkstar kernel: usb 1-4: new high speed USB device using ehci_hcd and address 61 Oct 9 19:10:32 darkstar kernel: usb 1-4: new high speed USB device using ehci_hcd and address 62 _____________________________________________ results of mount command : /dev/hdc5 on / type reiserfs (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) usbfs on /proc/bus/usb type usbfs (rw) /dev/hdc6 on /boot type ext3 (rw) /dev/hdc8 on /tmp type reiserfs (rw) /dev/hdc9 on /var type reiserfs (rw) /dev/hdc10 on /usr type reiserfs (rw) /dev/hdc11 on /home type reiserfs (rw) /dev/hda1 on /mnt/windows type vfat (rw) /dev/hda5 on /mnt/winback type vfat (rw) _________________________________________________ when i type dmesg the same output shows : dmesg | grep usb usb 1-4: new high speed USB device using ehci_hcd and address 49 usb 1-4: new high speed USB device using ehci_hcd and address 50 usb 1-4: new high speed USB device using ehci_hcd and address 51 usb 1-4: new high speed USB device using ehci_hcd and address 52 usb 1-4: new high speed USB device using ehci_hcd and address 53 usb 1-4: new high speed USB device using ehci_hcd and address 54 usb 1-4: new high speed USB device using ehci_hcd and address 55 usb 1-4: new high speed USB device using ehci_hcd and address 56 usb 1-4: new high speed USB device using ehci_hcd and address 57 usb 1-4: new high speed USB device using ehci_hcd and address 58 usb 1-4: new high speed USB device using ehci_hcd and address 59 |
Quote:
sir the results : Code:
|
Erk - maybe the udev rules aren't right. Have a look at dmesg, and look for the device that gets allocated - probably sda. Should also show the partitions on the device.
Make some mountpoints and mount the partitions manually. |
just wondering.. .when im using my usb flash disk. .the files resides at /mnt/vl-hot/sda/vol1
but when i tested the usb hd --- /mnt/vl-hot/sda/vol1 does not have any contents. . . |
What does "df -hT" look like ???. After the flash is inserted, and after the USB is inserted.
|
Quote:
Code:
|
All times are GMT -5. The time now is 02:19 AM. |