a small primer or quick steps to mount usb devices on your slackware machine or for any linux distro…
as my personal motto goes: if it works in slackware, you can bet 99.99% its good to go in any other linux or unix flavors too….
before we begin lets switch user (su) to the root user
basically 4 steps to go through:
STEP 1:first, we attach the usb device to our laptop or desktop and check dmesg status to check if the usb is detected. dmesg requires privilege user rights hence we su before we go ahead…..
# dmesg | tail //here, dmesg piped to tail so as to read the last last few lines
usb-storage 2-1.1:1.0: USB Mass Storage device detected
scsi host9: usb-storage 2-1.1:1.0
scsi 9:0:0:0: Direct-Access hp v100w 1100 PQ: 0 ANSI: 4
sd 9:0:0:0: [sdd] 31285248 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 9:0:0:0: [sdd] Write Protect is off
sd 9:0:0:0: [sdd] Mode Sense: 43 00 00 00
sd 9:0:0:0: [sdd] No Caching mode page found
sd 9:0:0:0: [sdd] Assuming drive cache: write through
sd 9:0:0:0: [sdd] Attached SCSI removable disk
STEP 2: we create a directory in our slackware machine, usually in the /mnt path but yes again you are free to place it anywhere you like..
# mkdir /mnt/usb_device
STEP 3: mount our usb device found from step 1, to this location.
we have seen from the output of step 1 that the usb is attached at sdd
again step 2 is for time use only as when we make this directory it will be available on our machine till we decide to do away with it…you can delete mount point after usage if you want just like how you delete a file….remember everything is treated as a file in *nix (linux or unix)…or keep it for all future usb devices being mounted….if you plan to mount multiple usb’s simultaneously make different mount points for each device….
mount /dev/sdd1 /mnt/ub_device //mounting our usb device to our path created on our machine
STEP 4: now you are good to go…cd to the directory where you mounted your device and browse the contents….
STEP 5: unmount the usb devices from the location using the umount command
happy slacking folks….