LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB Mass storage Device (https://www.linuxquestions.org/questions/linux-hardware-18/usb-mass-storage-device-90359/)

purefan 09-07-2003 10:42 PM

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???

Philippe 09-08-2003 08:54 AM

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

purefan 09-08-2003 12:54 PM

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.

ceedeedoos 09-08-2003 02:46 PM

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 ...

Philippe 09-08-2003 10:51 PM

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

geoff_f 09-09-2003 03:53 AM

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.

Philippe 09-09-2003 04:20 AM

Just don't forget to unmount before unplugging the device.

umount /mnt/USBdevice (using root login)

THEN unplug the device.

Philippe

purefan 02-25-2005 06:18 PM

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 :)

Electro 02-26-2005 02:29 AM

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.

purefan 02-26-2005 01:07 PM

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...

Electro 02-26-2005 06:26 PM

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.

purefan 05-18-2005 12:10 AM

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!

mays 05-26-2005 01:33 PM

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.

billythekid 05-26-2005 03:06 PM

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

billythekid 05-27-2005 06:45 AM

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.

:newbie:

btk


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