Damn Small Linux (DSL) Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2014, 05:17:30 PM

Login with username, password and session length
News
The new DSL forums are now open.
Stats
1239 Posts in 241 Topics by 246 Members
Latest Member: AndyL
Search:     Advanced search
* Home Help Search Login Register
Get The Official Damn Small Linux Book. Great VPS hosting provided by Tektonic

+  Damn Small Linux (DSL) Forums
|-+  DSL Not
| |-+  DSL-N
| | |-+  USB
« previous next »
Pages: [1] Print
Author Topic: USB  (Read 906 times)
jcdq
Newbie
*
Posts: 15


View Profile
USB
« on: August 11, 2013, 04:11:40 AM »

How can I mount an USB device (2.0)  on DSL-N?
Logged
CNK
Full Member
***
Posts: 128


View Profile
« Reply #1 on: August 11, 2013, 10:37:58 AM »

One way is to navigate to the /mnt directory with the file manager (emelfm), then right click on the ID of your USB drive and select the "mount" option.

There is another mount utility you can use, but as I am not running DSL-N at the moment, I can't describe how it works.
Logged
mterras
Newbie
*
Posts: 23


View Profile
« Reply #2 on: August 13, 2013, 06:03:20 AM »

Hello!
i'm afraid you can't if you just installed DSL-Not without modifications.
There's an issue with a lacking "usb-storage" module. Without this module, no usb device mounting can be done!
Fixing is easy:
as root, open an administrator terminal (right click on the desktop terminal icon and choose the admin version). Type :
lsusb
after inserting your usb device. If it appears, your USB chipset is working.
Type then :
lsmod
if module "usb-storage" is not listed, you have to download it with following command line:
modprobe usb-storage
then type always as root in same terminal:
leafpad /opt/bootlocal.sh
to make this module loaded at boot time (=permanent fixing), add this line at the end of the file:
modprobe usb-storage
Then you have to add some lines in your file /etc/fstab, so edit it as root (same admin terminal as above)
Add these lines before the line beginning with /dev/cdrom:
/dev/sda1 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sda2 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sda3 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sda4 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sdb1 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sdb2 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sdb3 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/sdb4 /mnt/usb vfat defaults,user,noauto,showexec,umask=022 0 0
If your system has SCSI or SATA drives, find the letter of the related device "sdx" and remove it from the previous list equivalent
if your system has 4 USB ports, you can add four letters like sda, sdb, sdc, sdd or if -for example- you have two SATA drives sda and sdb, begin your USB enumeration at sdc, sdd,sde,sdf...
Save file /etc/fstab
Don't forget to create the "usb" dir in your "/mnt" folder with command (as root):
mkdir /mnt/usb
Reboot.
For mounting a usb device, open emelfm as root (you finf this entry in the fluxbox menu), insert your device, wait till it lights or blinks, go to /mnt/usb, highlight it,  and with contextual menu select "mount", and that's done. To eject it, same operation except you have to select unmount in contextual menu of emelfm. Don't use mount tool for this task, it is not reliable.

By the way, you could make a permanent fix for the cdrom issue (sometimes you can't mount dvd/cdrom at all). If you have a scsi/SATA cdrom, you should have access to it with DSL-Not. If you have an IDE interface, you should replace the default scsi driver with the -working- IDE one this way:
as root open a terminal and type:
leafpad /etc/lilo.conf
find the line with
append="hda=scsi hdb=scsi hdc=scsi ... apm=power-off nomce noapic
remove the reference to your dvd/cdrom (you can find it in sysinfo (DSL-Not Panel). For example, if it is located on secondary IDE, as master, it will be hdc, if on primary as slave hdb...
For example, if your dvd/cdrom is referenced hdb, previous line will look like that:
append="hda=scsi hdc=scsi ... apm=power-off nomce noapic
SAVE FILE AND RUN lilo AS ROOT to make these mods permanent: DON'T FORGET TO RUN LILO, if not, changes are loosed!
For mounting/unmounting, use emelfm as root!
Have a nice DSL-Not experiment.
Bye!
Logged
jcdq
Newbie
*
Posts: 15


View Profile
« Reply #3 on: August 14, 2013, 04:20:56 AM »

Thank you, very much, Great Masters MTERRAS and CNK!
DSL is the best distro.
 Grin
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
Mercury design by Bloc