LinuxQuestions.org
Review your favorite Linux distribution.
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 01-03-2004, 11:06 PM   #1
NewtoSlack
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Rep: Reputation: 15
Reading NTFS (Windows) partition under Slackware


Is it possible to read NTFS filesystem (on Windows XP) under Slackware 9.1? Other distros like Mandrake allow one to read files on a NTFS partition. Does one need to download any specific software to do so?
 
Old 01-03-2004, 11:09 PM   #2
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
recompile your kernel with NTFS read support. There you go. Other distros like mandrake just have it already compiled in or as a module that's why they have it by default.
 
Old 01-03-2004, 11:16 PM   #3
NewtoSlack
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for your reply. But I am bit a bit leery of compiling the kernel as I am afraid I might break my installation if I make any mistake during the compilation and installation of the kernel.

In any case, do you have any reference which describes, step by step, how to compile the kernel? I am sure this has been discussed before and will appreciate it if you provide any pointers. Plus, if I have to do that, will it make sense to compile the new 2.6 version? Does it have any advantage for desktop use?
 
Old 01-03-2004, 11:31 PM   #4
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
Well at the top of this forum page you'll find 2 sticky threads. One for compiling a kernel, and one for compiling a 2.6.0 kernel. I have never looked at them but they seem to be what you need.

Second. Even if you screw something up and your system does not boot. The second CD for Slackware 9.1 is a live cd. So you can boot that up, mount your root partition where slackware is installed. Then use the 'chroot' command to get into the system to recompile your kernel and see if you can fix what you messed up.

If you have any troubles I can help you. I have compiled many kernels, including the 2.6.0 kernel.

As to your other question. Yah the 2.6.0 kernel will improve desktop performance. http://www.kniggit.net/wwol26.html
Go there if you want to know all the info and features about 2.6.0 and jump to the section about "preembtable" kernel for info about things that pertains to performance.
 
Old 01-03-2004, 11:32 PM   #5
one
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 87

Rep: Reputation: 15
the default kernel comes with ntfs support, so you don't need to compile

read " man mount " and " man fstab " to mount your ntfs partitions

quick steps:

1. create dir: example #mkdir /mnt/ntfs
2. # mount /dev/hdx /mnt/ntfs ( where x is your ntfs partition)

if you want it mounted at boot up edit /etc/fstab

add: /dev/hdc1 /mnt/ntfs ntfs defaults 1 0


if you want user read acces add:

/dev/hdc1 /mnt/ntfs ntfs uid=500,gid=500,umask=000,exec,dev,suid,ro 1 0

hope that helps

cheers
 
Old 01-04-2004, 12:43 AM   #6
NewtoSlack
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for showing me the way. I created a directory /mnt/win_c and added the following statement in /etc/fstab (I lifted it from the /etc/fstab from a Mandrake installation)

/dev/hda2 /mnt/win_c ntfs umask=0,ro,iocharset=iso8859-1 0 0

and I could read files on the ntfs partition /dev/hda2.

I did not compile the kernel.
 
Old 01-04-2004, 01:14 AM   #7
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
The kernel you using has built in ntfs support (or you have the module than). I would honestly try compiling you kernel as fast as possible. It only gets easier with time. The first time will be a few hours probably. I read through the help files for every single option, sat there until 4 in the morning trying to get it to work. But it gets much easier with time. Takes me a good half hour now (mind you, my comp is quite fast so I can compile the kernel and modules in 10 minutes).
With lilo, or any boot loader, you also have the option of which kernel you want to use. So you can if your kernel doesn't work the first time, just reboot and choose your old kernel (the one that worked) and keep tweaking the new one. I always have my last used (or 2) completely stable/everything-working as a choice when I boot up, just in case my new one is screwed up for some reason. You can always just use the boot CD and just copy the kernel off that if need be too.
 
Old 01-04-2004, 04:48 PM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Lo there,

The Kernel Compile Guide for newbies thread is REALLY good. It worked with me from the first try, and i now understand it and can do it by my self.. So if you ever need to do so, just read the first thread there..

Its just Three steps really...
1- Edit your lilo so you have an entry for your current kernel, and your new one (incase something screws up and you want to get back to the old one)

2- Uncomment a line in your Makefile so it installs your new kernel to /boot

3- Follow the 8 steps needed to compile it.

and reboot... you dont even have to update lilo, as 'make install' will install it, copy it to your /boot, and update lilo for you...
 
Old 01-04-2004, 05:56 PM   #9
NewtoSlack
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Original Poster
Rep: Reputation: 15
My immediate need to read NTFS partition is resolved without compiling the kernel. So I will try the compile when version 2.6 is released. As it is my current kernel (2.4.22) is probably the latest stable version.
 
Old 01-05-2004, 03:13 PM   #10
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Good that your NTFS read works now..

On another note, you can always up from 2.4.22 to 2.4.23, or today's 2.4.24 I wouldnt try 2.6 till it goes to atleast 2.6.5 or 2.6.6, that way they would have gotten rid of a few bugs, etc...
 
  


Reply



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
reading windows partition? how to. blastradius Ubuntu 5 08-23-2005 03:36 PM
Problem reading mounted NTFS partition... Virak Linux - Newbie 8 08-18-2005 04:38 PM
Reading windows partition from linux. gauntalus Linux - Software 2 01-02-2005 03:25 PM
reading a ntfs partition... a3Rogue Linux - Hardware 2 06-29-2004 09:31 AM
Can Windows & Slackware share an ntfs partition? EnigmaZ Slackware 5 01-04-2004 06:02 PM

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

All times are GMT -5. The time now is 05:29 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