LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-23-2008, 06:52 PM   #1
Choucete
Member
 
Registered: Dec 2007
Location: Buenos Aires
Distribution: Slackware 12.0
Posts: 83

Rep: Reputation: 16
Problem writing to USB pendrive


Hi,

I'm not sure if this is the correct forum to post this, but since I'm 100% Slackware, here I am.

I’ve been for quite some time now trying to fix an issue I have with my pendrive. Basically, I can read information from it but I cannot write to it not as a normal user nor as root.

I’ve been googling around and I also reviewed several threads from this forum and made adjustments to my fstab file but I wasn't able to solve the issue. Could you please provide any pointers?

This is my fstab as it is currently set:

/dev/hdc2 swap swap defaults 0 0
/dev/hdc1 / ext3 defaults 1 1
/dev/hdc3 /home ext3 defaults 1 2
/dev/hdd /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/sda /mnt/usbdev auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,quiet 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 07-23-2008, 07:37 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
with root powers edit your fstab as follows...there is more than way but its a simple one to try

1) assuming /dev/sda is the usb?...delete that line

instead you need an entry to mount a partition rather than mount the entire device so

2)
I prefer a new folder so
Code:
mkdir /mnt/pen
then in fstab
/dev/sda1 /mnt/pen (filesytem) users,rw 0 0

replace (filesystem) with the format of the usb device...if its a ms compatible one its likely to be
vfat

but mine is formatted as xfs so I have some forgiveness if the power fails.

eg
/dev/sda1 /mnt/pen vfat users,rw 0 0

3) users allows anyone versus user meaning root
rw means read write

Last edited by aus9; 07-23-2008 at 07:44 PM.
 
Old 07-23-2008, 08:24 PM   #3
Choucete
Member
 
Registered: Dec 2007
Location: Buenos Aires
Distribution: Slackware 12.0
Posts: 83

Original Poster
Rep: Reputation: 16
Great. Thanks aus9! I'll try that when I get home (I'm at work right now, where I'm forced to work under win ).

But I have one more question, my pendrive is formatted as FAT32 (I had it as ntfs but I lost all the data in it a couple of times), so (nOOb question alert) setting fstab to vfat will recognize and read the device as FAT32?

Thanks again
 
Old 07-24-2008, 01:29 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
should do...vfat means fat32

do you have to use it in a windows computer?

xfs or ext3 is a much safer format for usbs....one because I do not like the journal function of ntfs and fat32 well thats not journalised so if power failure you have probs.

since you already lost data on ntfs...there is another way

if big enough create 2 partitions
1...fat32
2 xfs or ext3

good hunting
 
Old 07-24-2008, 11:18 PM   #5
Choucete
Member
 
Registered: Dec 2007
Location: Buenos Aires
Distribution: Slackware 12.0
Posts: 83

Original Poster
Rep: Reputation: 16
Hi again, I'm sorry to say that what you suggested didn't work either. In fact, the pendrive wasn't detected as /dev/sda1, I had to set it back to /dev/sda to get at least to read from it.

Could it be a hardware issue? Or might the fact that the pendrive is actually attached to a USB Hub be causing trouble? (Now that I think of it, I haven't tried to attach the pendrive directly to the machine, I'll try it today).

Do you have any suggestions?

BTW - I use the pendrive a lot between Linux and Windows, because none of the people I know has Linux as their system. And I've been able to get data out of my linux box on cd, but I'm not comfortable being unable to understand and solve this.

Just in case, here is the output of dmesg:

...
Zone PFN ranges:
DMA 0 -> 4096
Normal 4096 -> 49136
HighMem 49136 -> 49136
early_node_map[1] active PFN ranges
0: 0 -> 49136
On node 0 totalpages: 49136
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
Normal zone: 351 pages used for memmap
Normal zone: 44689 pages, LIFO batch:7
HighMem zone: 0 pages used for memmap
DMI 2.1 present.
ACPI: RSDP 000F7070, 0014 (r0 COMPAQ)
ACPI: RSDT 0BFF3000, 0028 (r1 COMPAQ CPQB0B9 0 0)
ACPI: FACP 0BFF3040, 0074 (r1 COMPAQ CPQB0B9 0 0)
ACPI: DSDT 0BFF30C0, 26D6 (r1 COMPAQ AWRDACPI 1000 MSFT 1000007)
ACPI: FACS 0BFF0000, 0040
ACPI: PM-Timer IO Port: 0x4008
Allocating PCI resources starting at 10000000 (gap: 0c000000:f3ff0000)
Built 1 zonelists. Total pages: 48753
Kernel command line: BOOT_IMAGE=Slack12 ro root=1601
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 1024 (order: 10, 4096 bytes)
Detected 449.983 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 185396k/196544k available (6111k kernel code, 10652k reserved, 1931k data, 344k init, 0k highmem)
virtual kernel memory layout:
fixmap : 0xfffea000 - 0xfffff000 ( 84 kB)
pkmap : 0xff800000 - 0xffc00000 (4096 kB)
vmalloc : 0xcc800000 - 0xff7fe000 ( 815 MB)
lowmem : 0xc0000000 - 0xcbff0000 ( 191 MB)
.init : 0xc08de000 - 0xc0934000 ( 344 kB)
.data : 0xc06f7f75 - 0xc08dabac (1931 kB)
.text : 0xc0100000 - 0xc06f7f75 (6111 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 900.70 BogoMIPS (lpj=1801403)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0387f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU serial number disabled.
CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Compat vDSO mapped to ffffe000.
CPU: Intel Pentium III (Katmai) stepping 03
Checking 'hlt' instruction... OK.
ACPI: Core revision 20070126
ACPI: setting ELCR to 0200 (from 0e20)
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfb170, last bus=1
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S3 S4 S5)
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
* Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
* this clock source is slow. Consider trying other clock sources
PCI quirk: region 4000-403f claimed by PIIX4 ACPI
PCI quirk: region 5000-500f claimed by PIIX4 SMB
Boot video device is 0000:01:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: Power Resource [PFAN] (on)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
SCSI subsystem initialized
libata version 2.20 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
pnp: 00:00: iomem range 0xf0000-0xf3fff could not be reserved
pnp: 00:00: iomem range 0xf4000-0xf7fff could not be reserved
pnp: 00:00: iomem range 0xf8000-0xfbfff could not be reserved
pnp: 00:00: iomem range 0xfc000-0xfffff could not be reserved
ieee1394: Initialized config rom entry `ip1394'
Time: tsc clocksource has been installed.
PCI: Bridge: 0000:00:01.0
IO window: d000-dfff
MEM window: e4000000-e7ffffff
PREFETCH window: e8000000-e9ffffff
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NTFS driver 2.1.28 [Flags: R/W].
JFS: nTxBlock = 1449, nTxLock = 11594
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
OCFS2 1.3.3
OCFS2 Node Manager 1.3.3
OCFS2 DLM 1.3.3
OCFS2 DLMFS 1.3.3
OCFS2 User DLM kernel interface loaded
GFS2 (built Jun 19 2007 15:21:53) installed
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Limiting direct PCI/PCI transfers.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
vesafb: framebuffer at 0xe8000000, mapped to 0xcc900000, using 1536k, total 16384k
vesafb: mode is 1024x768x8, linelength=1024, pages=20
vesafb: protected mode interface info at c000:7ea9
vesafb: pmi: set display start = c00c7ed2, set palette = c00c7efc
vesafb: pmi: ports = c8c3 c903 d403 d503 da03 ff03
vesafb: scrolling: redraw
vesafb: Pseudocolor: size=8:8:8:8, shift=0:0:0:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Switched to high resolution mode on CPU 0
Real Time Clock Driver v1.12ac
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Compaq SMART2 Driver (v 2.6.0)
HP CISS Driver (v 3.6.14)
input: Macintosh mouse button emulation as /class/input/input0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
Probing IDE interface ide1...
hdc: HDS728040PLAT20, ATA DISK drive
hdd: ASUS DRW-1608P3S, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdc: max request size: 512KiB
hdc: 66055248 sectors (33820 MB) w/1719KiB Cache, CHS=16383/255/63, UDMA(33)
hdc: cache flushes supported
hdc: hdc1 hdc2 hdc3
hdd: ATAPI 40X DVD-ROM DVD-R-RAM CD-R/RW drive, 2000kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
Loading iSCSI transport class v2.0-724.
iscsi: registered transport (tcp)
Loading Adaptec I2O RAID: Version 2.4 Build 5go
Detecting Adaptec I2O RAID controllers...
Adaptec aacraid driver (1.1-5[2423]-mh3)
aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.3 loaded
scsi: <fdomain> Detection failed (no card)
sym53c416.c: Version 1.0.0-ac
qlogicfas: no cards were found, please specify I/O address and IRQ using iobase= and irq= options<6>QLogic Fibre Channel HBA Driver
iscsi: registered transport (qla4xxx)
QLogic iSCSI HBA Driver
Emulex LightPulse Fibre Channel SCSI driver 8.1.11
Copyright(c) 2004-2006 Emulex. All rights reserved.
seagate: ST0x/TMC-8xx not detected.
Failed initialization of WD-7000 SCSI card!
DC390: clustering now enabled by default. If you get problems load
with "disable_clustering=1" and report to maintainers
megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006)
megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
megasas: 00.00.03.10-rc1 Wed Feb 14 10:14:25 PST 2007
GDT-HA: Storage RAID Controller Driver. Version: 3.05
GDT-HA: Found 0 PCI Storage RAID Controllers
3ware Storage Controller device driver for Linux v1.26.02.002.
3ware 9000 Storage Controller device driver for Linux v2.26.02.008.
nsp32: loading...
ipr: IBM Power RAID SCSI Device Driver version: 2.3.1 (January 23, 2007)
RocketRAID 3xxx SATA Controller driver v1.0 (060426)
st: Version 20070203, fixed bufsize 32768, s/g segs 256
I2O subsystem v1.325
i2o: max drivers = 8
I2O Configuration OSM v1.323
I2O Bus Adapter OSM v1.317
I2O Block Device OSM v1.325
I2O SCSI Peripheral OSM v1.316
I2O ProcFS OSM v1.316
Fusion MPT base driver 3.04.04
Copyright (c) 1999-2007 LSI Logic Corporation
Fusion MPT SPI Host driver 3.04.04
Fusion MPT FC Host driver 3.04.04
Fusion MPT SAS Host driver 3.04.04
usbmon: debugfs is not available
116x: driver isp116x-hcd, 03 Nov 2005
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] -> GSI 10 (level, low) -> IRQ 10
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 10, io base 0x0000e000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
sl811: driver sl811-hcd, 19 May 2005
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
raid6: int32x1 106 MB/s
raid6: int32x2 95 MB/s
raid6: int32x4 105 MB/s
raid6: int32x8 100 MB/s
raid6: mmxx1 253 MB/s
raid6: mmxx2 308 MB/s
raid6: sse1x1 224 MB/s
raid6: sse1x2 308 MB/s
raid6: using algorithm sse1x2 (308 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: automatically using best checksumming function: pIII_sse
pIII_sse : 894.000 MB/sec
raid5: using function: pIII_sse (894.000 MB/sec)
md: multipath personality registered for level -4
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
input: AT Translated Set 2 keyboard as /class/input/input1
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 344k freed
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
kobject_add failed for uhci_hcd with -EEXIST, don't try to register things with the same name in the same directory.
[<c03cb591>] kobject_shadow_add+0x101/0x1a0
[<c01375a8>] mod_sysfs_setup+0x18/0xb0
[<c0138907>] sys_init_module+0x1147/0x15d0
[<c0103ec0>] syscall_call+0x7/0xb
[<c06f0000>] auth_unix_lookup+0x70/0x90
=======================
8139too Fast Ethernet driver 0.9.28
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0xe800, 00:e0:4c:17:eb:74, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Linux agpgart interface v0.102 (c) Dave Jones
agpgart: Detected an Intel 440BX Chipset.
agpgart: AGP aperture is 64M @ 0xe0000000
i2c_core: exports duplicate symbol i2c_smbus_write_i2c_block_data (owned by kernel)
i2c_core: exports duplicate symbol i2c_smbus_write_i2c_block_data (owned by kernel)
i2c_algo_bit: exports duplicate symbol i2c_bit_add_bus (owned by kernel)
piix4_smbus 0000:00:07.3: Found 0000:00:07.3 device
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 5
PCI: setting IRQ 5 as level-triggered
ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5
codec write timeout, status = 0x60
codec write timeout, status = 0x60
codec write timeout, status = 0x60
codec write timeout, status = 0x60
voodoo3_smbus 0000:01:00.0: Using Banshee/Voodoo3 I2C device at ccad8000
Adding 690784k swap on /dev/hdc2. Priority:-1 extents:1 across:690784k
EXT3 FS on hdc1, internal journal
input: PC Speaker as /class/input/input2
input: ImPS/2 Generic Wheel Mouse as /class/input/input3
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
lp0: using parport0 (interrupt-driven).
lp0: console ready
Capability LSM initialized
kjournald starting. Commit interval 5 seconds
EXT3 FS on hdc3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Intel ISA PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
usb 1-1.2: new full speed USB device using uhci_hcd and address 3
usb 1-1.2: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
hub 1-1:1.0: 100mA over power budget!
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory.
[<c03cb591>] kobject_shadow_add+0x101/0x1a0
[<c01375a8>] mod_sysfs_setup+0x18/0xb0
[<c0138907>] sys_init_module+0x1147/0x15d0
[<c0103ec0>] syscall_call+0x7/0xb
[<c06f0000>] auth_unix_lookup+0x70/0x90
=======================
scsi scan: INQUIRY result too short (5), using 36
scsi 2:0:0:0: Direct-Access GENERIC USB DISK DEVICE 1.00 PQ: 0 ANSI: 0 CCS
SCSI device sda: 992945 512-byte hdwr sectors (508 MB)
sda: Write Protect is off
sda: Mode Sense: 00 c0 00 00
sda: assuming drive cache: write through
SCSI device sda: 992945 512-byte hdwr sectors (508 MB)
sda: Write Protect is off
sda: Mode Sense: 00 c0 00 00
sda: assuming drive cache: write through
sda: unknown partition table
sd 2:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
sd 2:0:0:0: Attached scsi generic sg0 type 0

Thanks!
 
Old 07-25-2008, 05:20 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
3 things interest me...others feel free to point out other issues

end of output you have sda unknown partition table

2) hub looks ok by this line (not all in same area)
usbcore: registered new interface driver hub and
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
.....but hub 1-1:1.0: 100mA over power budget!

3) and towards the bottom
kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory.

suggest you try re-doing your hub pls
 
Old 07-25-2008, 12:41 PM   #7
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Rep: Reputation: 26
well I would recommend to copy all the stuff from it to hard drive and then repartition it under linux
mine looks like this:
Code:
usb 1-4: new high speed USB device using ehci_hcd and address 2
usb 1-4: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
sysfs: duplicate filename 'usb_storage' can not be created
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()
Pid: 6408, comm: modprobe Tainted: P        2.6.24.5-smp #2
 [<c01b8eff>] sysfs_add_one+0x9f/0xe0
 [<c01b9438>] create_dir+0x48/0x90
 [<c01b94a9>] sysfs_create_dir+0x29/0x50
 [<c039397f>] kobject_get+0xf/0x20
 [<c0393e43>] kobject_add+0x93/0x1b0
 [<c0119a7f>] module_finalize+0x11f/0x140
 [<c014a154>] mod_sysfs_setup+0x24/0xb0
 [<c014b657>] sys_init_module+0x12b7/0x18c0
 [<c01784d0>] do_sync_read+0x0/0x120
 [<c0104336>] syscall_call+0x7/0xb
 [<c06e0000>] svcauth_unix_set_client+0x100/0x180
 =======================
kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory.
Pid: 6408, comm: modprobe Tainted: P        2.6.24.5-smp #2
 [<c0393ec3>] kobject_add+0x113/0x1b0
 [<c0119a7f>] module_finalize+0x11f/0x140
 [<c014a154>] mod_sysfs_setup+0x24/0xb0
 [<c014b657>] sys_init_module+0x12b7/0x18c0
 [<c01784d0>] do_sync_read+0x0/0x120
 [<c0104336>] syscall_call+0x7/0xb
 [<c06e0000>] svcauth_unix_set_client+0x100/0x180
 =======================
scsi 4:0:0:0: Direct-Access     JetFlash TS16GJFV85       8.07 PQ: 0 ANSI: 2
sd 4:0:0:0: [sdc] 31944704 512-byte hardware sectors (16356 MB)
sd 4:0:0:0: [sdc] Write Protect is off
sd 4:0:0:0: [sdc] Mode Sense: 03 00 00 00
sd 4:0:0:0: [sdc] Assuming drive cache: write through
sd 4:0:0:0: [sdc] 31944704 512-byte hardware sectors (16356 MB)
sd 4:0:0:0: [sdc] Write Protect is off
sd 4:0:0:0: [sdc] Mode Sense: 03 00 00 00
sd 4:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 4:0:0:0: [sdc] Attached SCSI removable disk
sd 4:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
 
Old 07-25-2008, 06:32 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by aus9
3) and towards the bottom
kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory.
That is almost definitely because the huge-smp kernel is being used instead of the generic-smp kernel (see CHANGES_AND_HINTS.TXT on your install CD/DVD or at your favourite mirror). I would recommend switching to the generic-smp kernel (which requires an initrd [aka an initial ramdisk]), but that most definitely does not have any effect on this problem.

As stated above, you should try accessing the drive without a USB hub in the way. You may also wish to try backing up the drive and repartitioning/reformatting it as FAT32. Since you're attempting to use fstab to mount the device you are not required to be in the plugdev group. However, if you would prefer an automated solution, you can always automount through HAL (which requires that your user is part of the plugdev group). If you use KDE or XFCE (or Gnome if you have installed it), plugging in a USB drive will allow you to mount it graphically instead of struggling with a permanent mount point in fstab. However, either method is acceptable. If you want to use automounting, add your user to the plugdev (and cdrom, video and audio groups for unrelated reasons) using the following command:
Code:
gpasswd -a username plugdev
 
Old 09-01-2008, 11:44 AM   #9
Choucete
Member
 
Registered: Dec 2007
Location: Buenos Aires
Distribution: Slackware 12.0
Posts: 83

Original Poster
Rep: Reputation: 16
Sorry for the delay to reply to you guys, but I just moved and I've been busy with that for the last couple of weeks.

I tried plugging the pendrive to the machine without the USB Hub and it works. I was able to write to it without any issues.

Thanks a lot for your help everyone!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing slackware iso image to USB pendrive jayakrishnan Linux - General 5 06-22-2009 09:05 PM
Problem with usb pendrive and usb modem ZTE ZXDSL 852 AM33N Linux - Hardware 3 12-10-2008 03:25 AM
usb pendrive write problem alexand Slackware 6 04-08-2007 07:13 PM
USB PENDRIVE Problem with kernel 2.6.10 tandre Linux - Hardware 11 04-20-2005 10:18 PM
chmod USB pendrive problem Pathian Linux - Hardware 1 12-09-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration