LinuxQuestions.org
Register a domain and help support LQ
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 09-07-2003, 11:42 PM   #1
purefan
Member
 
Registered: Aug 2003
Location: Sweden
Distribution: Ubuntu 10.04
Posts: 99

Rep: Reputation: Disabled
Thumbs down USB Mass storage Device


Hello. I have an Unidrive USB "Mass storage device" of 128Mb, I would like to have it working in Mandrake 9.1 but even thought when it starts it recognises a new hardware and "probe" it I cant get to access it. Any clues???
 
Old 09-08-2003, 09:54 AM   #2
Philippe
Member
 
Registered: Sep 2003
Location: Chiangmai, Thailand
Posts: 53

Rep: Reputation: 15
Did you try to mount it ?

su - root ; mount /dev/sda1 /mnt/USBdrive
cd /mnt/USBdrive

It should work if normally /dev/sda1 is your device.

Philippe
 
Old 09-08-2003, 01:54 PM   #3
purefan
Member
 
Registered: Aug 2003
Location: Sweden
Distribution: Ubuntu 10.04
Posts: 99

Original Poster
Rep: Reputation: Disabled
Thanks Philippe for the hint, unfortunatelly it didnt work, It seemed to be mounted correctly since it didnt show an error message but it didnt create the folder. Do I have to (previouselly had) create(d) the folder??

I also noticed that this time (before I tried to mount it) there was a folder in /mnt/ called Removable but it is empty, I also tried to mount the device to this folder but was useless.
 
Old 09-08-2003, 03:46 PM   #4
ceedeedoos
Member
 
Registered: Aug 2003
Location: Antwerp, Belgium
Distribution: Slackware 10.0, Mandrake 10.1
Posts: 174

Rep: Reputation: 34
the directory to which you mount should be present before you mount your device ...

if you create a directory /mnt/removable
and mount

mount /dev/sda1 /mnt/removable

it should work out fine ...
 
Old 09-08-2003, 11:51 PM   #5
Philippe
Member
 
Registered: Sep 2003
Location: Chiangmai, Thailand
Posts: 53

Rep: Reputation: 15
Purefan,

Yes you must create the mount point before. You must be logged as root to do it.
And as Ceedeedoos said, it should work fine.

Please provide any error message if you have a problem. Linux message are often really explicit by themselves.

Good luck,

Philippe
 
Old 09-09-2003, 04:53 AM   #6
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
Open a console as root. Issue the following commands:

mkdir /mnt/USBdrive
chmod 777 /mnt/USBdrive
mount -t vfat /dev/sda1 /mnt/USBdrive

Then you should be OK. You will need to supply the '-t vfat' part or else you'll be given an error about not providing a filesystem type. You can use any name you like instead of 'USBdrive'. The 'chmod' command changes permissions so you can access the device while logged in as a normal user.

Last edited by geoff_f; 09-09-2003 at 04:55 AM.
 
Old 09-09-2003, 05:20 AM   #7
Philippe
Member
 
Registered: Sep 2003
Location: Chiangmai, Thailand
Posts: 53

Rep: Reputation: 15
Just don't forget to unmount before unplugging the device.

umount /mnt/USBdevice (using root login)

THEN unplug the device.

Philippe
 
Old 02-25-2005, 07:18 PM   #8
purefan
Member
 
Registered: Aug 2003
Location: Sweden
Distribution: Ubuntu 10.04
Posts: 99

Original Poster
Rep: Reputation: Disabled
im sorry for the delay but I forgot about this thread....
I tried all of what you guys said and the problem seems to be that the 'sda1' is not the direction to the FlashMemory (USB storage device)....
How can i find the right one??
I tried changing the number (sda2, sda3,sda4....) but it didnt work....
I have also been wondering around the Mandrake Control Center but found nothing I could use, I tried the HardDrake but just couldnt read anything I considered worth it....<dont forget Im a newbie....>
Thanks for your support
 
Old 02-26-2005, 03:29 AM   #9
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You will need to make sure sd_mod, usb-storage, and either usb-uhci, uhci, usb-ohci, or ohci is loaded. Also you will need to make sure scsi modules are also loaded. Eventually the device node /dev/sda..../dev/sdz will be created by devfsd. When mounting, I suggest adding sync to the option list for mount command. If you do not, then you have to remember running sync before unmounting.
 
Old 02-26-2005, 02:07 PM   #10
purefan
Member
 
Registered: Aug 2003
Location: Sweden
Distribution: Ubuntu 10.04
Posts: 99

Original Poster
Rep: Reputation: Disabled
oook...
1.How do I know if sd_mod, usb-storage, and either usb-uhci, uhci, usb-ohci, or ohci are loaded???
2.If they are not loaded how do I load them??

My CD-RW and DVD-RW are loaded since I can read any cd In any of those...
 
Old 02-26-2005, 07:26 PM   #11
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Type /sbin/lsmod to view what modules are loaded. It is the same as typing cat /proc/modules.

As root or su type /sbin/modprobe module_name to load the module. This command also loads the module dependencies if there are any.

If you want to know what other options you can pass while loading a module, type /sbin/modinfo module_name.

If you want to know more about these utilities use man.
 
Old 05-18-2005, 01:10 AM   #12
purefan
Member
 
Registered: Aug 2003
Location: Sweden
Distribution: Ubuntu 10.04
Posts: 99

Original Poster
Rep: Reputation: Disabled
it got fixed after I re-installed Mandy 10.1 Comm release...
anyhow the OS has trouble still mounting the USB system but Im 95% sure it is due to my usb mouse...thnks!
 
Old 05-26-2005, 02:33 PM   #13
mays
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
Hi

If your Mass storage device is not partitioned, it can not be mounted! So,

fdisk -l /dev/sda

If you are able to see the info about the device connected,

fdisk /dev/sda

partition can be done.

Now, fdisk -l /dev/sda shows you /dev/sda1 or /dev/sda2 so on..

mount any partition now!!

If it doesn't work, meet me tomorrow.
 
Old 05-26-2005, 04:06 PM   #14
billythekid
LQ Newbie
 
Registered: May 2005
Location: Kilwinning, Scotland
Distribution: FC3
Posts: 3

Rep: Reputation: 0
I am having similar trouble with my samsung mp3 player, which operates like a usb disk. Whats happening is as soon as it mounts it changes folder permissions to 755( which i can watch happening) i can access the disk but cant write to it.
I tried making a dir as user in my home dir then mounting to that but again, no write access.

Any ideas?


billy
 
Old 05-27-2005, 07:45 AM   #15
billythekid
LQ Newbie
 
Registered: May 2005
Location: Kilwinning, Scotland
Distribution: FC3
Posts: 3

Rep: Reputation: 0
I tried chmod'ing the sda, sda1 devices etc before mounting, then making dir in home folder as user and root, then mounting to both those folders, still changes permissions, normally to 755, and even when you are su or the owner you cant change them to what you want to.



btk
 
  


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
Mass storage device USB xeebeeeeeee Linux - Hardware 10 02-13-2008 01:11 PM
usb - mass storage device d1l2w3 Mandriva 7 01-10-2005 11:10 PM
USB Mass Storage Device ebasi Linux - Hardware 2 12-23-2004 03:06 PM
USB mass storage device in SJDS shariqali Linux - Hardware 2 02-19-2004 09:30 AM
Usb mass storage device laguna Linux - Hardware 4 08-12-2002 03:16 AM


All times are GMT -5. The time now is 03:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration