LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Displaying non-linux Partitions (https://www.linuxquestions.org/questions/linux-newbie-8/displaying-non-linux-partitions-140081/)

LilGryphMaster 01-29-2004 03:44 PM

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.

DrOzz 01-29-2004 03:48 PM

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

LilGryphMaster 01-29-2004 03:55 PM

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.

Netizen 01-29-2004 04:19 PM

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

urka58 01-29-2004 04:27 PM

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

LilGryphMaster 01-29-2004 05:13 PM

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

Shachaf 01-29-2004 05:15 PM

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.

TheOneAndOnlySM 01-29-2004 05:18 PM

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

LilGryphMaster 01-29-2004 06:14 PM

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

frob23 01-29-2004 06:42 PM

I use xmms... great little tool... what audio player complained about patent issues?

DrOzz 01-29-2004 10:10 PM

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

LilGryphMaster 01-29-2004 11:09 PM

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

Thanks for all your time and input

Kristijan 01-30-2004 01:22 AM

What you want to look into is umask, that should solve your problem.

Code:

mount -o umask=022 /dev/hda5 /mnt/mp3

LilGryphMaster 01-30-2004 11:05 PM

ook... Now, how do I set that up to do it everytime? lol

LilGryphMaster 01-31-2004 09:11 AM

**bump**

Sorry, I really need this answered


All times are GMT -5. The time now is 04:43 PM.