LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 12-30-2005, 03:02 PM   #1
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Rep: Reputation: 31
HowTo Mount USB MP3 Player


hi all,

i'm trying to mount my usb mp3 player so i can move some mp3s to it.

my system doesn't recognize it off the bat, so i'm lookin gto configure it in.

based on a message board, i went to console and ran:

root@8[abc]# dmesg | tail

SCSI device sde: 1012480 512-byte hdwr sectors (518 MB)
sde: assuming Write Enabled
sde: assuming drive cache: write through
SCSI device sde: 1012480 512-byte hdwr sectors (518 MB)
sde: assuming Write Enabled
sde: assuming drive cache: write through
sde: sde1
Attached scsi removable disk sde at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg4 at scsi4, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete

unfortunately, this is where the other thread left off.

how do i use this information to access the mp3 player? /dev/scsi and /dev/usb don't contain anything.

tia...
 
Old 12-30-2005, 03:38 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Your usb mp3 player is known by the system, it's sde with the parition sde1. Now I will assume for the sake of the command the partition is vfat (FAT32). So lets first make sure you have a valid mountpoint for this device, as root from the console or xterm session type something like;

mkdir /media/mp3player

Then mount the device;

mount -t vfat /dev/sde1 /media/mp3player -rw

See both 'man mount' and 'man fstab' for the details and other options, like making the mountpoint available for all users other then root.

You can verify that the device is present by typing something like;

cat /proc/scsi/scsi

Remember to un-mount the device before removing it;

umount /dev/sde1 or umount /media/mp3player
 
Old 12-30-2005, 05:12 PM   #3
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Lenard
Your usb mp3 player is known by the system, it's sde with the parition sde1. Now I will assume for the sake of the command the partition is vfat (FAT32). So lets first make sure you have a valid mountpoint for this device, as root from the console or xterm session type something like;

mkdir /media/mp3player

Then mount the device;

mount -t vfat /dev/sde1 /media/mp3player -rw

See both 'man mount' and 'man fstab' for the details and other options, like making the mountpoint available for all users other then root.

You can verify that the device is present by typing something like;

cat /proc/scsi/scsi

Remember to un-mount the device before removing it;

umount /dev/sde1 or umount /media/mp3player
Lenard, thanks. good info.

i'm using reiserfs, so i just ommitted th "vfat" in the mount command - i think everything worked ok. here's my cat output...

root@6[abc]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Generic Model: USB SD Reader Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 00 Lun: 01
Vendor: Generic Model: USB CF Reader Rev: 1.01
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 00 Lun: 02
Vendor: Generic Model: USB SM Reader Rev: 1.02
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 00 Lun: 03
Vendor: Generic Model: USB MS Reader Rev: 1.03
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: GPX Model: Digital Player Rev: 0100
Type: Direct-Access ANSI SCSI revision: 04
root@6[jski23]#

i think that means it is there and usable. i found it and moved my files to it.

i then tried to unmount it - basically guessing at what i was doing... here are the ugly details...

root@6[abc]# unmount /media/mp3player
bash: unmount: command not found
root@6[abc]# umount /media/mp3player
umount: /media/mp3player: not mounted
root@6[abc]# umount -a /media/mp3player
umount: /mnt/hdb5: device is busy
umount: /home: device is busy
umount: /: device is busy
root@6[abc]#

after typing in "umount /media/mp3player" and getting the following result, "umount: /media/mp3player: not mounted", i removed the device and it didn't have any files on it. looking back at this point, "not mounted" must've meant it wasn't seen vs being unmounted as i originally thought.

the mount point has the files, but the device doesn't.

where do i go from here?

also, i'd like for an sde1 icon to show up that let's me right click mount and unmount - how do i do that?

tia...
 
Old 12-30-2005, 08:05 PM   #4
mdmarmer
Member
 
Registered: Jul 2005
Location: USA
Distribution: siduction
Posts: 56

Rep: Reputation: 15
I think the previous answer was generic and did not assume that you had Mepis or any GUI (KDE., etc.)

In KDE (Mepis desktop) you can add a new device. Right click a blank space on the desktop, select Create New, then Link to Device ... After you select the Device (Flash Drive may be in the list, if not you can rename to MP3 or flash drive later -- the system essentially treats these as flash drives), click on the Device tab, and select your device (/dev/sde1 - probably the last one in the list) from the device drop down list.

Post to http://www.mepislovers.org -- very helpful forum

See MepisLovers Wiki http://www.mepislovers-wiki.org/

Happy New Year and Welcome to Mepis

Mike
 
Old 12-30-2005, 08:07 PM   #5
mdmarmer
Member
 
Registered: Jul 2005
Location: USA
Distribution: siduction
Posts: 56

Rep: Reputation: 15
I think the previous answer was generic and did not assume that you had Mepis or any GUI (KDE., etc.)

In KDE (Mepis desktop) you can add a new device. Right click a blank space on the desktop, select Create New, then Link to Device ... After you select the Device (Flash Drive may be in the list, if not you can rename to MP3 or flash drive later -- the system essentially treats these as flash drives), click on the Device tab, and select your device (/dev/sde1 - probably the last one in the list) from the device drop down list.

Whoops -- You have Fedora Core 4 -- Why are you posting in the Mepis Forum ??? ;-)

Post to http://www.mepislovers.org -- very helpful forum

See MepisLovers Wiki http://www.mepislovers-wiki.org/

Happy New Year and Welcome to Mepis

Mike
 
Old 12-30-2005, 10:07 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes, my answer was generic and does apply, the filesystem on the usb device is most likely vfat and mount or even an automounter needs this information to mount the partition in the correct fashion. Since you are issuing the command to mount you should supply this information or allow mount to attempt to mount the partition from the known list of filesystems the file /etc/filesystems by typing something like;

mount -t auto /dev/sde1 /media/mp3player
 
Old 12-31-2005, 12:02 PM   #7
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Lenard
Yes, my answer was generic and does apply, the filesystem on the usb device is most likely vfat and mount or even an automounter needs this information to mount the partition in the correct fashion. Since you are issuing the command to mount you should supply this information or allow mount to attempt to mount the partition from the known list of filesystems the file /etc/filesystems by typing something like;

mount -t auto /dev/sde1 /media/mp3player
Lenard, your reply was helpful. MDs input was also helpful, too (different questions). thanks to both of you.

i think i got confused on which file system was under discussion. the usb mp3player is likely vfat. my computer file system is reiserfs. rereading your post, i can see you are talking about the usb file system being vfat.

i will go about this again and see if i get better results. i'll assume...

umount /dev/sde1

or

umount /media/mp3player

will unmount the device when properly mounted.

if not, do tell how to unmount the usb.

tia...
 
Old 12-31-2005, 03:04 PM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
From the manpage for umount;

-l Lazy unmount. Detach the filesystem from the filesystem hierar-
chy now, and cleanup all references to the filesystem as soon
as it is not busy anymore. (Requires kernel 2.4.11 or later.)

so; umount -l /dev/sde1
 
  


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
How do I mount my Samsung YP-T7J USB mp3 player? quackking Linux - Hardware 10 01-08-2006 08:07 AM
USB MP3 Player Won't Mount (Philips PSA232) redrun Linux - Hardware 3 11-20-2005 12:18 AM
Mount mp3 player via usb? donbellioni Linux - Hardware 7 11-16-2004 12:47 PM
Can't mount mp3 player redneon Linux - Hardware 4 06-03-2004 06:11 AM
mount mp3 player to /mnt/mp3? Muzzy Linux - General 4 05-09-2004 06:31 AM

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

All times are GMT -5. The time now is 10:30 PM.

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