LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2004, 04:44 PM   #1
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Rep: Reputation: 0
Displaying non-linux Partitions


Okay.. Here it goes.

I've just installed Linux.. Learned the console and such with Sams Teach Yourself Red Hat 9 in 24 hours.. It was pretty interesting, but didn't really tell me anything past the console.

But anyways.. I have a partiton with all my music on it, and I was wondering if there was a way to have it show up in linux. It's alot of music, and I don't want to copy it all from CD to my linux partition cause then I wouldn't have any room..

Please be clear and simple as possible.. I don't understand all the terms yet, and don't assume I know anything past opening a window and using simple Console commands..

Thanks in advance.
 
Old 01-29-2004, 04:48 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well first we have to cover a couple of things ....
what type of filesystem is on that drive with all your music (i assume fat32 or ntfs) but you'll have to tell us that ...
secondly, i am sure the book covered how to switch to your root user, so type :
su -
and then the root password, and type :
fdisk -l
and post the output and for you to tell us which is the music drive ... and if it is in fact a fat or ntfs drive we will be able to see for ourselves, and then we can tell you how to mount it and access it ..
 
Old 01-29-2004, 04:55 PM   #3
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3009 24169288+ 7 HPFS/NTFS
/dev/hda2 3009 4863 14885640 f Win95 Ext'd (LBA)
/dev/hda5 3009 3648 5133208+ 7 HPFS/NTFS
/dev/hda6 3649 4224 4619128+ 7 HPFS/NTFS
/dev/hda7 4225 4242 144553+ 83 Linux
/dev/hda8 4243 4371 1036161 82 Linux swap
/dev/hda9 4372 4862 3943926 83 Linux

I believe the Music one is hda5. But I wouldn't mind being able to see both 5 and 6. I dunno what 2 is though.. I should only have 6 partitions... My windows Partiton (C, My Music Partiton (F My Documents Partion (G and then the 3 linux partitons at the bottom..

Weird.

But yes, it's NTFS.. I don't want to write to the partion, though.. Just wanna be able to play the music.
 
Old 01-29-2004, 05:19 PM   #4
Netizen
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
try

Code:
#mount -t ntfs -o ro /dev/<partition to mount> /<path to folder in linux>

like

#mount -t ntfs -o ro /dev/hda2 /mnt/mp3

the second location can be anywhere in your linux file system, granted the folder your are mapping to is already created. Then all you have to do is open the folder and you should see all of your stuff.

Netizen
 
Old 01-29-2004, 05:27 PM   #5
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 542

Rep: Reputation: 33
As you know what partition you are looking for (/dev/hd5) you're are at a good point.
Login as root first
Assuming you want to be able to mount it as normal user, edit your /etc/fstab adding a line like that
/dev/hd5 /mnt/mymusic ntfs noauto,user,ro 0 0
and then create a directory to mount the file system by
touch /mnt/mymusic
or whatever you like, only make sure the name's matching what indicated in the /etc/fstab edited line.
Reboot the system and logged as normal user
mount /dev/hd5
As you have a proper entry in your /etc/fstab flie it will be mounted is /mnt/mymusic mount point.
Hope this helps
Ciao
 
Old 01-29-2004, 06:13 PM   #6
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Hmm.. Thanks for the quick replies.. But neither suggestions seem to work.

The first one yields an error saying the kernel does not support ntfs.

The second one yields in a mounting failure at startup.

This is what my fstab looks like right now:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda8 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
/dev/hda5 /mnt/mymusic ntfs noauto,user,ro 0 0
o 0 0
 
Old 01-29-2004, 06:15 PM   #7
Shachaf
Member
 
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30

Rep: Reputation: 15
First, create the directory /mnt/music, then try mounting it by typing (as root) mount -t ntfs /dev/hda5 /mnt/music. If that works, create the directories /mnt/win and /mnt/documents, then add the following lines to your fstab:

Code:
/dev/hda1 /mnt/win ntfs auto,users,ro 0 0
/dev/hda5 /mnt/music ntfs auto,users,ro 0 0
/dev/hda6 /mnt/documents ntfs auto,users,ro 0 0
Also look at man mount and man fstab.

/dev/hda2 is your extended partition -- without it you'd be limited to 4 (primary) partitions, without any logical (/dev/hda5-9) ones.
 
Old 01-29-2004, 06:18 PM   #8
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
redhat does not come with ntfs support by default

http://linux-ntfs.sourceforge.net/rpm/redhat9.html go there and download an rpm for your kernel (to find out what kernel you are running, do uname -r)

Install

You must be root for the rest of the commands. The examples will continue as if you downloaded kernel-ntfs-2.4.18-14.i686.rpm. Next install the rpm:

rpm -ihv kernel-ntfs-2.4.18-14.i686.rpm

Preparing... ############################### [100%]
1:kernel-ntfs ############################### [100%]


There should be no errors, just #'s. Note: newer NTFS RPMs will also print a message telling you if install succeeded. If something goes wrong see the Help Section.

This is the only command we actually needed, but we'll go on and test what we have done.

Next load the kernel module

/sbin/modprobe ntfs


There should be no output. If there are a lot of error messages see the Help Section.

dmesg | grep NTFS

NTFS driver v1.1.22 [Flags: R/O MODULE]


We can now check that the kernel really understands NTFS. The output may vary slightly, but you are looking for the entry ntfs.

cat /proc/filesystems

nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev shm
nodev pipefs
ext3
ext2
nodev ramfs
nodev devpts
ntfs


*copied straight from the linux-ntfs.sourceforge.net site
 
Old 01-29-2004, 07:14 PM   #9
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks so much for your help guys..

But NOW I can't play my mp3s..
Grrr..

I get a message saying that my audio player cannot play MP3's because of patent issues..
whee

Any mp3 players that I can actually INSTALL? I can't seem to install anything
 
Old 01-29-2004, 07:42 PM   #10
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
I use xmms... great little tool... what audio player complained about patent issues?
 
Old 01-29-2004, 11:10 PM   #11
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
yes redhat doesn't support mp3s ....
so you have to download that file to enable it ...

Quote:
I use xmms... great little tool... what audio player complained about patent issues?
all them will until he installs the required package ;-)
 
Old 01-30-2004, 12:09 AM   #12
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
Well.. it finally all works.. But I don't have permission to view my mounts from my account.

I can in root..

When I try to change the permissions, it says that they cannot be set because the drive is read-only.. So I changed the "ro" bit at the end in fstab.. But that didn't work either.. I fiddled around and nothing worked.. What am I doing wrong?

I followed schauch's format, and.. only difference is I used "mymusic" as the folder..

Please help!


(Oh, and i should let you all know that I'm going to be asking ALOT of questions on this forum.. I am the ultimate )

Thanks for all your time and input
 
Old 01-30-2004, 02:22 AM   #13
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
What you want to look into is umask, that should solve your problem.

Code:
mount -o umask=022 /dev/hda5 /mnt/mp3
 
Old 01-31-2004, 12:05 AM   #14
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
ook... Now, how do I set that up to do it everytime? lol
 
Old 01-31-2004, 10:11 AM   #15
LilGryphMaster
LQ Newbie
 
Registered: Jan 2004
Location: Iowa
Distribution: Red Hat 9
Posts: 18

Original Poster
Rep: Reputation: 0
**bump**

Sorry, I really need this answered
 
  


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
Linux Partitions (Help) cibaker Linux - Software 7 12-21-2004 05:20 PM
Linux installed, linux partitions lost, computer scragged, need serious help. B4UTRUST Linux - Newbie 4 01-23-2004 11:21 AM
Win XP Install Overwrites MBR and Linux Rescue Fails to Recognize Linux Partitions carrlane Linux - Software 8 01-14-2004 08:49 AM
Linux Partitions Nukem Mandriva 18 12-28-2003 08:15 PM
Displaying and Accessing Windows Partitions den_santiago Linux - Software 3 07-18-2003 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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