Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-30-2003, 08:12 PM
|
#1
|
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445
Rep:
|
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
|
|
|
03-30-2003, 08:17 PM
|
#2
|
Member
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 499
Rep:
|
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.
|
|
|
03-30-2003, 08:39 PM
|
#3
|
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445
Original Poster
Rep:
|
How would I go about doing this?
Any help would be appreciated.
|
|
|
03-30-2003, 09:04 PM
|
#4
|
Member
Registered: Mar 2003
Distribution: slackware 9.1
Posts: 30
Rep:
|
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.
|
|
|
03-30-2003, 09:24 PM
|
#5
|
Member
Registered: Mar 2003
Distribution: slackware 9.1
Posts: 30
Rep:
|
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.
|
|
|
03-30-2003, 11:52 PM
|
#6
|
Member
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827
Rep:
|
you should be able to modprobe ntfs just fine, that will tell you if it will work
|
|
|
03-31-2003, 03:08 AM
|
#7
|
Member
Registered: Mar 2003
Posts: 41
Rep:
|
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
|
|
|
03-31-2003, 04:16 PM
|
#8
|
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445
Original Poster
Rep:
|
Thanks, your help worked perfect!
|
|
|
04-08-2003, 02:31 AM
|
#9
|
LQ Newbie
Registered: Dec 2002
Posts: 10
Rep:
|
|
|
|
04-13-2003, 09:07 PM
|
#10
|
Member
Registered: Mar 2003
Location: sweden, norrkoping
Distribution: slackware 9.0,windows XP
Posts: 53
Rep:
|
okej i have the same problem just that nothing of this works...
now what ?
|
|
|
06-11-2003, 11:50 AM
|
#11
|
LQ Newbie
Registered: Jun 2003
Posts: 2
Rep:
|
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
|
|
|
06-11-2003, 08:40 PM
|
#12
|
LQ Newbie
Registered: May 2003
Location: Cincinnati,OH
Distribution: Slackware
Posts: 15
Rep:
|
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.
|
|
|
06-27-2003, 05:42 PM
|
#13
|
LQ Newbie
Registered: Jun 2003
Posts: 2
Rep:
|
well aaaa...i tried what u posted Philp but no worky.....it works as root but still i have no permission as a user... 
|
|
|
03-20-2006, 02:01 AM
|
#14
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|