DamnSmallLinuxThis forum is for the discussion of DamnSmallLinux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My experience is with DSL 2.4, so things may have changed since then ...
In this version, DSL will not automatically mount the USB device for you. But it will detect the device, create a directory in /mnt and an entry in /etc/fstab. In my case, the USB device was call sda, so,
mount /dev/sda
would mount it on /mnt/sda. Curiously, only root could unmount it. But in DSL this is as easy as putting sudo in front of the umount command.
So if DSL still works this way, I suggest plugging your device in and waiting to see what new directory appears in /mnt. Alternatively you could monitor /etc/fstab. On my system it takes several seconds for this to happen, so don't get too impatient.
I will also note that the graphical mounting tool in the lower right hand corner knew nothing about this new device. Perhaps if it was restarted after inserting the device ... But using the command line is probably easier.
No mount point was automatically created, and no entry was added to fstab. I had to do things manually:
Code:
sudo mkdir /mnt/sda
sudo mount /dev/sda /mnt/sda
# To unmount:
sudo umount /mnt/sda
After which I could access the keydrive (I didn't try writing) at /mnt/sda
What the device is called will, of course, depend on what drives are already in your computer. If you are unsure what the device is called and/or want to verify that the kernel is recognizing it, you can use the system log to tell you. Do the following before inserting the device:
The -f option causes tail to keep monitoring the log and output additional info when it comes in. When you insert the device, you should see some additional lines output. One or more of these will tell you what the kernel is calling the device (in my case /dev/sda).
DSL-N is still at a very low revision level and unlike DSL uses a fairly new 2.6 kernel, which I believe uses the udev system. This probably means they couldn't just copy the DSL software for handling hotplug. I imagine as development continues, at some point it will start handling things automagicaly.
hey thanks for the help
ive kinda fell out of linux for a while
i havent had the time to continue useing it
but im sure as summerschool(yeah im only 15)
starts ill start again
well i tried, and nahh still no lucck for me
garbage is all i can say, well.. just hotplug
There's a possibility the kernel just isn't recognizing your paritcular device. Did you try enabling and then looking at the system log as I suggested?
You also might check into a set of tools called sg3-utils, and see if it is of any help in locating your USB device. I have not used this package, so I probably can't help you with it. I am not even sure it can help you out. But this article has a sidebar that discusses it, which might be useful to you.
Last edited by blackhole54; 06-16-2007 at 09:34 PM.
I don't know if it will be useful to you, but this is what got logged on my machine:
Code:
Jun 18 07:57:11 dslbox user.info kernel: usb 1-2: new full speed USB device using uhci_hcd and address 2
Jun 18 07:57:11 dslbox user.info kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jun 18 07:57:11 dslbox user.debug kernel: usb-storage: device found at 2
Jun 18 07:57:11 dslbox user.debug kernel: usb-storage: waiting for device to settle before scanning
Jun 18 07:57:16 dslbox user.notice kernel: Vendor: JMTek Model: USBDrive2.0 Rev: 2.00
Jun 18 07:57:16 dslbox user.notice kernel: Type: Direct-Access ANSI SCSI revision: 02
Jun 18 07:57:16 dslbox user.notice kernel: sda: Unit Not Ready, sense:
Jun 18 07:57:16 dslbox user.info kernel: : Current: sense key=0x6
Jun 18 07:57:16 dslbox user.info kernel: ASC=0x28 ASCQ=0x0
Jun 18 07:57:16 dslbox user.notice kernel: SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
Jun 18 07:57:16 dslbox user.notice kernel: sda: Write Protect is off
Jun 18 07:57:16 dslbox user.debug kernel: sda: Mode Sense: 03 00 00 00
Jun 18 07:57:16 dslbox user.err kernel: sda: assuming drive cache: write through
Jun 18 07:57:16 dslbox user.notice kernel: SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
Jun 18 07:57:16 dslbox user.notice kernel: sda: Write Protect is off
Jun 18 07:57:16 dslbox user.debug kernel: sda: Mode Sense: 03 00 00 00
Jun 18 07:57:16 dslbox user.err kernel: sda: assuming drive cache: write through
Jun 18 07:57:16 dslbox user.info kernel: unknown partition table
Jun 18 07:57:16 dslbox user.notice kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Jun 18 07:57:16 dslbox user.debug kernel: usb-storage: device scan complete
I believe the "unknown partition table" message reflects that this was formatted (I have not altered it since purchase on eBay) like a floppy (w/o a partition table) rather than like a hard drive. That is probably why it ends up /dev/sda rather than /dev/sda1.
FYI, if you are wanting to post your results, I will let you know that to post this, I just ended up copying the log file (/var/log/messages) to a hard drive and then rebooted into a full blown distro to deal with it from there. This is both because I have never been able to get highlight then pasting with middle mouse button (emulated on a two button mouse) to work under DSL or DSL-N and I found the very limited functionality provided by busybox's implementation of vi to be too frustrating to deal with. Of course, if you have better solution, feel free ... I just thought telling you this might save you some time and frustration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.