LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 07-27-2005, 09:29 AM   #1
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Rep: Reputation: 30
music on xmms off a usb key


i'm running DSL off a 128MB USB key, but I can't figure out how to play music from (a)my hard drive (if possible) and (b) my usb disk

got any ideas?
 
Old 07-27-2005, 09:40 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Can you see your hard drive(s) in /dev? What does the following command yield?

Code:
ls /dev/hd*
To play music, get xmms - it's like winamp and it's tiny so should fit on your usb drive with no problem. You should be able to just browse and pick a directory from within xmms - your USB drive will probaly be /dev/sdx.
 
Old 07-27-2005, 03:21 PM   #3
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
i already have xmms and
Code:
ls /dev/hd*
yields five columns of /dev/hdxy

where x is a letter a-h
and y is a number 1-20 except on /dev/hdh, it only goes through 9

all of these are in the color purple, except for a few in turqouise, which are each letter's 17-20


 
Old 07-28-2005, 03:00 AM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Does the output from ls -l /dev/hd* match the partitions on your hard disk? It should do.

If you type

Code:
mount
it will show you which of your hard drives are mounted...are any of them mounted? If not you need to mount them in an appropriate folder, e.g.

Code:
mount /dev/hda12 /mnt/harddrive
 
Old 07-28-2005, 07:12 AM   #5
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
the command mount turns up:
Code:
/dev/root on / type ex2 (rw)
/dev/hda on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw, size=96964k)
waht does this mean and what do i do next?
 
Old 07-28-2005, 07:21 AM   #6
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
What this means is

Code:
/dev/root on / type ex2 (rw)
This is the root filesystem. This is probably your USB key.

Code:
/dev/hda on /KNOPPIX type iso9660 (ro)
This looks like a LiveCD or something.

Code:
/ramdisk on /ramdisk type tmpfs (rw, size=96964k)
This appears as a disk drive but actually uses your computer's RAM as storage, so it's not persisted after you shut down.


What this all means is that your actual hard drives don't appear. I would expect them to be /dev/hda1, /dev/hda2.... and so on for as many partitions as you have.

try

Code:
mkdir /tmp/hd
mount /dev/hdb1 /tmp/hd
If you can then see any files and folders in /tmp/hd, you've got one of your hard drive's partitions. Repeat - a bit of trial and error to get the right combination, adjusting the 'b' and the '1' with letters c, d and numbers as appropriate. In general, hda and hdb will be your primary IDE channel and hdc and hdd will be your secondary channel. This kind of tallies with what you've got above - it looks like the CD is on the primary IDE channel. If you've only got one hard disk, I'd start with hdc1.
 
Old 07-28-2005, 09:09 AM   #7
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
i'm trying to mount /dev/hdc1, but it isn't working. it said i needed to be root, so i used the command "su" (without quotes) and it asked for a password. i never set up a root password with DSL. so what do i do?
 
Old 07-28-2005, 09:18 AM   #8
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Hmm. Not entirely sure. Is there a default password for DSL?
 
Old 07-28-2005, 10:57 AM   #9
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
not that i know of, couldn't find one on the DSL website
 
Old 07-28-2005, 07:47 PM   #10
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
ok - using the sudo su command, i got to be root without a password and when i use the command
Code:
mount /dev/hdc1 /tmp/hd
it tells me
mount: you must specify the filesystem type
 
Old 07-29-2005, 03:10 AM   #11
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
OK it looks like you'll have to specify the filesystem type manually. Try first

Code:
mount -t auto /dev/hdc1 /tmp/hd
If that doesn't work, try

Code:
mount -t ext3 /dev/hdc1 /tmp/hd
I'm assuming here that your hard drive is formatted in ext3 - if not, adjust the -t parameter as appropriate.
 
Old 07-29-2005, 06:57 AM   #12
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
ok - i tried the first one and it said
Code:
/dev/hdc1: Input/output error
mount: you must specify the filesystem type
so i tried the second one:
Code:
root@ttyp9[dsl]#mount -t ntfs /dev/hdc1 /tmp/hd
mount: wrong fs type, bad option, bad superblock on /dev/hdc1
or too many mounted file systems
(coud this be the IDE device where you in fact use
 ide-scsi so that sr0 or sda or so is neede?)
 
Old 07-29-2005, 07:00 AM   #13
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
OK....is the partition formatted in FAT by any chance? If so try -t vfat as the fileysystem type option.

You might try using fdisk to check that you are trying to access the right disk:

Code:
fdisk /dev/hdc
Then hit p to list the partitions available.

If there aren't any, try the same thing on /dev/hdd

Last edited by cdhgee; 07-29-2005 at 07:02 AM.
 
Old 07-29-2005, 07:36 AM   #14
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
it's NTFS
i used
Code:
fdisk /dev/hdc
and it said it was unable to read the disk

and for the rest (hdd-hdz), it says it is unable to open
 
Old 07-29-2005, 08:17 AM   #15
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Try /dev/hdb?
 
  


Reply



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
Xmms Player Music CD Issues JediDB MEPIS 3 08-05-2005 10:24 PM
Best Music Player (Not XMMS) djabbot Linux - Software 10 03-02-2005 02:46 AM
XMMS plays music at twice the speed?! lunajlt Linux - Software 1 09-27-2004 01:42 PM
Get music with xmms working. Kramer65 Linux - Newbie 6 08-30-2003 11:43 AM
XMMS/Noatun won't play music borbjo Linux - Software 4 01-25-2003 07:42 AM

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

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