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 > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-30-2003, 08:12 PM   #1
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Reading NTFS Partitions


How can I mount NTFS partitions in Slack 9. It was automatically set up in Mandrake, so Im knowledgless. It doesnt show up as a mountable partition in Kwikdisk, even though its viewable through fdisk. I know I cant write to them, but Id love to be able to read them. If it helps, my partition is in /dev/hda5
 
Old 03-30-2003, 08:17 PM   #2
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Is NTFS support compiled into the kernel? I believe that the default does not include read-only support. You may need to complile this into the kernel, or compile it as a module.
 
Old 03-30-2003, 08:39 PM   #3
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Original Poster
Rep: Reputation: 47
How would I go about doing this?

Any help would be appreciated.
 
Old 03-30-2003, 09:04 PM   #4
matjazk
Member
 
Registered: Mar 2003
Distribution: slackware 9.1
Posts: 30

Rep: Reputation: 15
I think slackware will compile the read support for ntfs by default. I still wouldn't try writting from linux. For automatic mounting do the following. To read the partition go to /etc then open fstab in a text editor and add the line:

/dev/hda1 /windows ntfs defaults 0 0

where hda1 is your windows drive and /windows is the directory where you would like to see the windows drive. You can change the directory to anything you like. Make the directory specified above, /windows in this case. Then do:

mount -t ntfs /dev/hda1 /windows

replacing things appropriately. Just match it to the fstab. Then u will be able to read ntfs and copy files from it. You could, I think change the permissions, to be able to write but I wouldn't try that. After this every time u boot u can just go to /windows without the mount to access the windows drive. I hope that helps.
 
Old 03-30-2003, 09:24 PM   #5
matjazk
Member
 
Registered: Mar 2003
Distribution: slackware 9.1
Posts: 30

Rep: Reputation: 15
If u dont have ntfs support in the kernel then its a little bit harder. Then you can start by downloading the kernel source from an ftp and installing it. From then follow the instructions on compiling the kernel that have already been posted making sure to enable ntfs. I am a little bit lost what would be an easy way to check this except installing the kernel source then running xconfig and seeing whether it is enabled. There is probably a lot simpler way of doing this.
 
Old 03-30-2003, 11:52 PM   #6
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Rep: Reputation: 30
you should be able to modprobe ntfs just fine, that will tell you if it will work
 
Old 03-31-2003, 03:08 AM   #7
maxspeed
Member
 
Registered: Mar 2003
Posts: 41

Rep: Reputation: 15
just do this

to find out if you have ntfs do a

cat /proc/filesystems

thats going to give you a listing of all of the file systems that your kernel supports. IF you see ntfs then it supports it.

if your kernel supports ntfs which it should by default just do this so you can see your ntfs partion.

make a dir in the /mnt folder and lets say you name it windows.

then do this commad to mount.


mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222

change hda1 to its its corresponding values depending on where your partition is.

To make it mount automatically each time you reboot add a line like this to the /etc/fstab file

/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0
 
Old 03-31-2003, 04:16 PM   #8
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Original Poster
Rep: Reputation: 47
Thanks, your help worked perfect!
 
Old 04-08-2003, 02:31 AM   #9
beelzebub888
LQ Newbie
 
Registered: Dec 2002
Posts: 10

Rep: Reputation: 0
get the rpm from this link:
http://fr2.rpmfind.net/linux/rpm2htm...ry=kernel-ntfs
 
Old 04-13-2003, 09:07 PM   #10
Gordon
Member
 
Registered: Mar 2003
Location: sweden, norrkoping
Distribution: slackware 9.0,windows XP
Posts: 53

Rep: Reputation: 15
okej i have the same problem just that nothing of this works...

now what ?
 
Old 06-11-2003, 11:50 AM   #11
c00k13
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
i did all that above and it worked but how do i view the folder if im not loged in as root.......i tried as a user and it no work.....help plz
 
Old 06-11-2003, 08:40 PM   #12
Philo
LQ Newbie
 
Registered: May 2003
Location: Cincinnati,OH
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
You need to to edit your /etc/fstab file. Here is what mine looks like, with my NTFS partition being /dev/hda1. I dual boot between slack and win2k.

/dev/hdb2 swap swap defaults 0 0
/dev/hdb1 / ext2 defaults 1 1
/dev/hdb3 /home ext2 defaults 1 2
/dev/hdb4 /usr ext2 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Just edit the file, and add a line for your ntfs parion. Mine is read only. I have it mount to /mnt/windows.
 
Old 06-27-2003, 05:42 PM   #13
c00k13
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
well aaaa...i tried what u posted Philp but no worky.....it works as root but still i have no permission as a user...
 
Old 03-20-2006, 02:01 AM   #14
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
Quote:
Originally Posted by maxspeed

To make it mount automatically each time you reboot add a line like this to the /etc/fstab file

/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0
very helpful

Last edited by Old_Fogie; 06-10-2006 at 01:50 AM.
 
  


Reply

Tags
mounting, ntfs



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
seeing/reading ntfs/fat32 partitions from linuxFC4 teto Linux - Newbie 12 11-27-2005 11:29 AM
Need help reading NTFS partitions in SuSE 9.3 whjones SUSE / openSUSE 5 09-08-2005 11:32 AM
Reading other partitions from Mandrake 10 gbrewste Linux - Newbie 3 06-16-2004 02:06 AM
reading partitions twinkers Linux - General 2 10-12-2003 02:37 AM
Reading partitions in Windows Frank Linux - Newbie 1 06-21-2002 02:11 PM

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

All times are GMT -5. The time now is 07:01 AM.

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