on 2007-10-09 02:51 am (UTC)
Posted by [identity profile] dariens-haircut.livejournal.com
Ha!

Good thing I don't authenticate against a Kerberos domain.

Or run Windows.

on 2007-10-09 01:24 pm (UTC)
Posted by [identity profile] misterx.livejournal.com
Can you imagine what the sticky notes on the monitor would look like with passwords that long?

on 2007-10-09 02:14 pm (UTC)
Posted by [identity profile] misterx.livejournal.com
heh.

Hey, have you ever used an extenal USB hard drive on Linux? I have a 500GB disk I want to plug into a server, and the disk appears to mount on /proc/bus/usb/ when I plug it in, but I can't copy any files to it or it's subdirectories, even as root.

The line in mtab looks thus:
usbdevfs /proc/bus/usb usbdevfs rw 0 0

The output of tree looks thus:
/proc/bus/usb/
|-- 001
|   `-- 001
|-- 002
|   `-- 001
|-- 003
|   `-- 001
|-- 004
|   |-- 001
|   `-- 002
|-- devices
`-- drivers


Googling I'm finding lots of references on how to mount an external drive, but not what to do when you can't write to it. Any experience with the matter, or suggestions? I feel like I'm missing something simple.

on 2007-10-09 02:42 pm (UTC)
Posted by [identity profile] dariens-haircut.livejournal.com
ls /dev/sd*

Usbdevfs contains the raw USB devices. Not proper block (or char) devices suitable for mounting. Those are provided by the SCSI subsystem. If you only have one SCSI disk drive, that will be /dev/sda. The first partition will be /dev/sda1. Some distributions may also have C/DVDRW drives or even hard disk drives emulated as SCSI.

The same is true of thumb drives; and for the same reasons.

An fstab line off the top of my head (untested) might be:
/dev/sda1 /mnt/mydisk ext3 defaults,noauto,user 0 0
You will notice that it only really differs from your other mount(s) in that the device node is /dev/sd* rather than /dev/hd*

on 2007-10-09 03:26 pm (UTC)
Posted by [identity profile] misterx.livejournal.com
Ah ha, so I sort of have to mount it twice. That was the missing link:

# mount
/dev/hdc3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hdc1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sda1 on /mnt/lacie type vfat (rw,noexec,nosuid,nodev)

Thank you for the help.

on 2007-10-09 03:36 pm (UTC)
Posted by [identity profile] dariens-haircut.livejournal.com
Well, you may not need to mount usbdevfs. You certainly don't need to for mounting disks. You will need to have it mounted for anything which needs /proc/bus/usb or which uses libusb (which needs /proc/bus/usb). Disks just happen not to be one of those things. It doesn't hurt anything to mount it. Unless you're hurting for memory so much that you want to not load the kernel module that supports it.

No prob.

on 2007-10-09 05:53 am (UTC)
Posted by [identity profile] dampscribbler.livejournal.com
LOL! How on earth did you find that?

on 2007-10-09 01:08 pm (UTC)
Posted by [identity profile] misterx.livejournal.com
After trying 30689 times to enter a different password, I was searching for help.

usb protection

on 2010-10-20 12:20 pm (UTC)
Posted by [identity profile] rexrobinson.livejournal.com
hi, its very informative,usb protection (http://www.lok-it.net/usb-protection/) , thanks

May 2017

S M T W T F S
 123456
789 10111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 23rd, 2026 11:26 am
Powered by Dreamwidth Studios