SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I'm running Slackware 11.0 RC3 on an older Dell Dimension L667r. I have no problem mounting a SanDisk 512MB pen drive- however, Slackware considers it a CD-ROM drive (/dev/sr0 in dmesg) so I'm unable to write to it. Is there a way to get Linux to recognize this thing as a r/w device?
Indeed I do. In fact, much to my amazement, I seem to have gotten it working- here's what I did:
1. I'd forgotten that I'd been fooling around with a camera (another story) which was assigned to /dev/sda in /etc/fstab, so I got rid of that line just to see what would happen.
5. After creating the ext2 filesystem I changed the appropriate line in /etc/fstab to read:
Code:
/dev/sda /mnt/sandisk ext2 noauto,rw 0 0
Surely you should be mounting a partition, e.g. /dev/sda1? Run "fdisk -l" (that's a lowercase L, not number one) to see what partitions are on the device.
Sep 24 15:14:01 localhost kernel: hub.c: new USB device 00:10.4-3, assigned address 2
Sep 24 15:14:01 localhost kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Sep 24 15:14:01 localhost kernel: Vendor: Pretec Model: 512MB Gini Rev: 1.10
Sep 24 15:14:01 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Sep 24 15:14:04 localhost usb.agent[2207]: usb-storage: already loaded
Sep 24 15:14:57 localhost net.agent[2240]: Bad NET invocation: $INTERFACE is not set
Okay where do I go from here to mount this. acording to fstab usbfs is mounting in /proc/bus/usb possibly device usb-storage-1. but I can't access it. what do i need to do now. Kernel recognizes plug unplug states. howevere note the usb-storage already loaded message.. any hellp would be appreciated
Have a look in kernel config under scsi devices for extra modules that you need for usb storage. You need SCSI Disk Support ( BLK_DEV_SD ) but there may be another. I have that and SCSI Generic Support ( CHR_DEV_SG )
You need to have at least BLK_DEV_SD compiled in or as a module. If as a module you can modprobe it to load it.
After installing the module you should get a line in dmesg to which device it's assigned. Mine says
Code:
sb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: Samsung Model: Mighty Drive Rev: PMAP
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 2030592 512-byte hdwr sectors (1040 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 2030592 512-byte hdwr sectors (1040 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
So the device is attached at sda1. Notice it waits a bit before it assigns a device to it. This takes a few seconds on my system so you need to run dmesg a few times until it gets attached.
Sigh still no luck, any suggestions? I don't understand the Debian system. the pen drive doesn't come up under SDA as it did in slack and mandriva. It is there though. Cant edit or find scsi devices. I can't find any device under scsi. I might need to load a "package from Debian" to get it under scsi. I notice that NET failed. I was looking to see inf netsmnp was installed, it was an issue for slack. Blk_DV_SD looks like a variable, what lib or program is it associated with? Its starting to look like Debian loads the kernel then mouses all mods after that. I don't know for sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.