LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-08-2006, 08:35 AM   #1
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Rep: Reputation: 0
mandriva 2006 does not see my pendrive


hi, i've installed mandriva 2006, and i cannot access my pendrive (scandisk).
following a reply in another thread (i am a beginer in linux) i ran dmesg and got

Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Vendor: SanDisk Model: SDMX1 MP3 Player Rev: 0100
Type: Direct-Access ANSI SCSI revision: 04
usb-storage: device scan complete
SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

following the same reply, i tried

mount /dev/sda0

and i got

mount: it was not possivel to find /dev/sda0 in /etc/fstab or /etc/mtab

so what should i do to read my pendrive?

thanks!
 
Old 06-08-2006, 09:45 AM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Sometimes you need to wait for up to 20 seconds for Sandisk sb drives to work. It should automount on it's own. If not, the drive should be accessable through /dev/sda1 (not /dev/sda0 - doesn't exist). It's also possible that your drive has a newer device ID than the usb-storage driver supports.

Try plugging it in and waiting a few seconds to see if an icon pops up on the desktop. If not, type "mount" in a terminal window to see if it has at least mounted it. If it isn't mounted, try "mkdir /mnt/usb ; mount /dev/sda1 /mnt/usb" (as root). If that doesn't work, type "lsusb" and "dmesg" again and post both results.
 
Old 06-08-2006, 10:21 AM   #3
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
[QUOTE=GrueMaster]...
Try plugging it in and waiting a few seconds to see if an icon pops up on the desktop. If not, type "mount" in a terminal window to see if it has at least mounted it. If it isn't mounted, try "mkdir /mnt/usb ; mount /dev/sda1 /mnt/usb" (as root).

i waited, didnt work. so i tried the commands, got

mount: it was not possible to find /dev/sda1/mnt/usb in /etc/fstab or /etc/mtab

lsusb returned

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0781:7250 SanDisk Corp.
Bus 001 Device 001: ID 0000:0000

and dmesg (i am posting what i think is relevant out of the hundred or so lines)

usb 1-1: new full speed USB device using ohci_hcd and address 3
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Shorewall:net2allROP:IN=eth0 OUT= MAC=00:e0:18:70:0d:47:00:01:02:86:7b:4c:08:00 SRC=209.147.242.100 DST=152.92.143.55 LEN=63 TOS=0x00 PREC=0x00 TTL=109 ID=22907 PROTO=UDP SPT=41210 DPT=6346 LEN=43
Vendor: SanDisk Model: SDMX1 MP3 Player Rev: 0100
Type: Direct-Access ANSI SCSI revision: 04
SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
/dev/scsi/host1/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete
 
Old 06-08-2006, 10:31 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The space needs to be between /dev/sda1 and /mnt/usb. /dev/sda1 is what you want to mount and /mnt/usb is where you want to mount it to.
 
Old 06-08-2006, 10:56 AM   #5
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex
The space needs to be between /dev/sda1 and /mnt/usb. /dev/sda1 is what you want to mount and /mnt/usb is where you want to mount it to.
it worked, thanks!!!!
 
Old 06-08-2006, 11:09 AM   #6
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
now it doesn' t let me write...

Quote:
Originally Posted by sanmnan99
it worked, thanks!!!!
sorry, but now i can see the pen drive (for instance with
kdiskfree) and its contents, but when i try to copy files in it, it says "access denied".

i've noticed that the files in the pen drive are "labeled" with

username: root
group: root

help!!
 
Old 06-08-2006, 11:13 AM   #7
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
in fact, when i try to unmount from kdiskfree, it says

unmount /dev/sda1

unmount: /dev/sda1 is not in the fstab (and you are not root)
 
Old 06-08-2006, 01:54 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You should be able to write to the drive as root.
 
Old 06-08-2006, 02:28 PM   #9
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex
You should be able to write to the drive as root.
yes, but i would like to be able to read it with the tools in
kde, and logged as a "normal" user. is there a simple way to do this?

thanks!
 
Old 06-08-2006, 09:34 PM   #10
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
First, let's step back to beginner mode (Mandriva is geared for this). Start the Mandriva Control Center (Start menu->System->Configuration->Configure your computer). It will require root password to run. Once in, select System->Enable or Disable the System Services. Scroll down and make sure that haldaemon exists and is running.

If it doesn't exist, click cancel, then go to Software Management->Install Software. Search for hal (use the seach window). Select it and install it. It should automatically start. If not, procede to next step.

If it does exist, but isn't running, make sure boot is checked, and click on start for that service.

That should take care of it being mounted automatically. If not, let me know.
Also, which desktop are you running? (KDE or Gnome)
 
Old 06-12-2006, 09:33 AM   #11
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
>Scroll down and make sure that haldaemon exists and is running.

yes, it exists, and it is running, and is starts with boot.
but the pen drive does not mount automatically.
I am using KDE 3.4.
 
Old 06-19-2006, 10:45 PM   #12
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
I'm not sure why your drive isn't automounting. Here is what I get when I plug in my sandisk 128M stick:

(dmsg)
usb 4-6: new high speed USB device using ehci_hcd and address 5
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: SanDisk Model: Cruzer Mini Rev: 0.1
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdg: 250879 512-byte hdwr sectors (128 MB)
sdg: Write Protect is off
sdg: Mode Sense: 03 00 00 00
sdg: assuming drive cache: write through
SCSI device sdg: 250879 512-byte hdwr sectors (128 MB)
sdg: Write Protect is off
sdg: Mode Sense: 03 00 00 00
sdg: assuming drive cache: write through
/dev/scsi/host4/bus0/target0/lun0: p1
Attached scsi removable disk sdg at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg6 at scsi4, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete

mount
/dev/sdg1 on /mnt/GRUEMINI-1 type vfat (rw,nosuid,nodev,noatime,codepage=850,iocharset=iso8859-1,user=gruem)

Check to see if kded is running.
 
Old 06-21-2006, 07:20 AM   #13
sanmnan99
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Original Poster
Rep: Reputation: 0
yes, kded is running.

what commands do i use to copy files from /home/username to the drive as root?
can i use kdiskfree as root?

thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No internet under Mandriva LE 2005 or Mandriva 2006 Akoni Linux - Networking 3 05-06-2006 12:17 PM
Mandriva 2006 - Greeting mail message from mandriva can't be removed JBailey742 Linux - Software 1 03-27-2006 03:55 AM
LXer: Mandriva and HP launch new computers pre-loaded with Mandriva Linux 2006 in 37 Countries in Latin America LXer Syndicated Linux News 0 01-18-2006 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:13 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