Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel excel 2003 firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode screen slow sound spyware trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Solved: Mount/unmount USB

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
21-Nov-2007, 01:44 PM #1
Solved: Mount/unmount USB
Hello people.

Using PCLinuxOS with Amorok.

Amorok tells me it needs the command to mount and then unmount usb in order to connect to Creative Zen MP3 Player.

Can someone tell me how to do this please?

Three USB on front and 2 or four more on rear of tower, will it, or should it auto-detect which one to power? Or will it power them all?

Thanks,
RootbeaR
__________________
"The only stupid question is the one not asked." Me
Empowered by Linux
"Software is like sex; it’s better when it’s free." Linus Torvalds
saikee's Avatar
Distinguished Member with 2,835 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
21-Nov-2007, 07:56 PM #2
You can always "hotplug" any USB device to a PC in any vacant port you wish to.

To know if the hardware has been detected you issue this command in a root console (click terminal, type "su" followed by root password).
Code:
fdisk -l
You can choose to issue the command before and after hotplugging the USB device and it should show up.

The inofrmation in the "fdisk -l" tells you the device name as seen by Linux. PClinuxOS has a modern kernel calling all hard disks sda, sdb, sdc etc. So your internal hard disk will be sda. If the Zen player is the 2nd disk then it will be seen as device sdb1, possibly in fat32 filing format (Partition Type C or b).

It is possible that PCLinuxOS will mount it automatically if the device is hooked up before the boot up but in any case you can always mount it manually yourself by commands in root console
Code:
mkdir /mnt/here
mount /dev/sdb1 /mnt/here
To umonut it you must finish everything with the USB device first so that it is not accessed by the Linux. Again in root console use the command "umount" like
Code:
umount /dev/sdb1
or
Code:
umount /mnt/here
RobLinux's Avatar
Computer Specs
Senior Member with 417 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
22-Nov-2007, 01:33 PM #3
When it is plugged in does KDE notice and pop anything up? It should detect your USB device automatically.

When I plug something into USB port or insert a CD-ROM, then the kernel notifies HAL-udev system and a device gets created in /dev and there's a notification generated, which allows the GUI apps to respond. Going into "media" section in file manager and right clicking on the device frequently offers a mount option.

So what happens when you don't have Amorak running?

If you can access the device, without Amorak doing anything, then /bin/true (reports success) may be a good choice. You can also frequently add an option into /etc/fstab to permit a user mount, and then you could tell Amorak to "mount /media/usb" & "umount /media/usb" (perhaps a directory like /media/ZenMP3 would fit better) but I'd rather choose the device from /dev/disks/by-id as that name should be unaffected by other hotplugs or disk upgrades.

Last edited by RobLinux : 22-Nov-2007 01:40 PM.
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
25-Nov-2007, 01:59 PM #4
Thanks guys.

I'll definetly be keeping this in mind for future.

Got thinking I must be doing something wrong. PCLOS is too easy to need to do this manually.

It was charging its battery already whether Amarok was running or not, so usb was working.

Aha! I needed to tell Amarok what type of device to look for under the devices tab.

Told Amarok to look for a MTP device and the problem was solved.

Thanks again guys,
RootbeaR.
__________________
"The only stupid question is the one not asked." Me
Empowered by Linux
"Software is like sex; it’s better when it’s free." Linus Torvalds
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 10:53 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.