LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   accessing music files on windows NTFS hard drive (https://www.linuxquestions.org/questions/linux-desktop-74/accessing-music-files-on-windows-ntfs-hard-drive-479081/)

moredhel 08-31-2006 06:23 AM

accessing music files on windows NTFS hard drive
 
EDIT: Using FC5!


Is it possible to somehow read my ntfs hard drive? because i didnt think that linux could read ntfs, only fat32.

basically i have a 3 partitions:

windows
linux
backup (made in windows)

backup has all my music on it aswell, and i would like to access from my linux aswell.

i thought of one possible way, that was to reduce the size of the windows partition then make a 4th partition as fat32, then transfer accross all of the stuff, then format the ntfs backup partition, and merge that with the windows partition, leaving me the exact same, but a fat32 partition 'backup' instead of ntfs.

but i was wondering, is there an easier way?

(also is it true that you can't get shockwave for linux!?)

goggyturk 08-31-2006 07:48 AM

You should be able to mount and read from the NTFS partition. Writing isn't so well supported and comes with a health warning for most distros although that may be changing with recent kernel releases?

Use fdisk -l hd? to find where your windows partition is then use the mount command or alter your /etc/fstab file to include the entry..

moredhel 08-31-2006 08:01 AM

when i do fdisk -l it says

'bash: fdisk: command not found'

um?

moredhel 08-31-2006 08:13 AM

i had to do su - not just su.
it came out with

fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors

now what?

moredhel 08-31-2006 08:19 AM

oops "l" not "1"

now i got:

Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 8273 66452841 7 HPFS/NTFS
/dev/hdb2 10186 14592 35399196 7 HPFS/NTFS
/dev/hdb3 8274 8286 104422+ 83 Linux
/dev/hdb4 8287 10185 15253717+ f W95 Ext'd (LBA)
/dev/hdb5 8287 10185 15253686 8e Linux LVM

Partition table entries are not in disk order

Disk /dev/dm-0: 14.2 GB, 14227079168 bytes
255 heads, 63 sectors/track, 1729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 1342 MB, 1342177280 bytes
255 heads, 63 sectors/track, 163 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

ethics 08-31-2006 08:21 AM

Quote:

Originally Posted by moredhel
i had to do su - not just su.
it came out with

fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors

now what?

The command is
Code:

fdisk -l
(as in L for lima, not 1 the #)

As far as i know FC still doesn't support NTFS (read or write) out of the box, and so needs extra modules.

http://www.linux-ntfs.org/ - has binaries for FC. Just follow the instructions, you will then need to mount the drive as usual

odcheck 08-31-2006 08:27 AM

FC5 doesn't have native ntfs support. So do what I tell you and It should work. Cause if you create another FAT32 Partition as a workaround you'll suddenly figure out that the max. filesize is 2GB.

1st create a directory within mnt using mkdir
mkdir /mnt/win (for example)
2nd check your kernel version with
uname -rm
3rd go on this Link
and download the RPM matching to your kernel version
4rd issue the command as ROOT with "su -" it includes the PATH Variables...
fdisk -l (l like language)
It will show you the partitions with NTFS Filesystems

after you've done the steps 1-4
5th Install the rpm with (below it's just an example for my kernel)
rpm -ivh kernel-module-ntfs-2.6.17-1.2174_FC5-2.1.27-0.rr.10.5.i586.rpm

6. mount the partition in your Linux tree
mount -t ntfs /dev/sda3 /mnt/win
(You'll need to asign probably another device then sda3 depends on the output of fdisk -l )

7. check with
mount (enter)
if it was mounted correct

8. If you want include it to your /etc/fstab so that you don't have to do the step 6 everytime.

odcheck 08-31-2006 08:28 AM

@ethics :-)

lol I typed my fingers bloody and you've been faster

ethics 08-31-2006 10:13 AM

You typed more, i find the less i type, the less i look like an igit with spelling mistakes (carefully spell checking this post thought);)

Just a note though, the max single file size for FAT32 is 4GB, i would imagine FAT16 is 2GB

odcheck 09-01-2006 01:00 AM

upps... @ethics
2GB FAT and 4GB FAT32...
--- but do you think we could help him?


All times are GMT -5. The time now is 09:23 PM.