LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 08-07-2005, 04:31 PM   #1
XSquire
LQ Newbie
 
Registered: Dec 2004
Location: Caracas - Venezuela
Distribution: Debian "Sarge" 3.0
Posts: 12

Rep: Reputation: 0
How To Add Ntfs Support


I have just installed Debian and I need to access the windows partitions.

I installed "ntfsprogs" and its dependencies, but it still doesn't recognize NTFS, therefore I have no mount options. Do I need to recompile the kernel??? If so, how? Debian includes the Synaptic Package Manager, would simply reinstalling the kernel be enough????

If I'm wrong, then How do I enable NTFS Support in Debian???
 
Old 08-07-2005, 04:47 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
AFAIK you should be able to mount an ntfs partition even without ntfsprogs.
See if ntfs support is in the kernel: gunzip < /proc/config.gz |grep NTFS
or: grep NTFS /usr/src/linux/.config
or: grep NTFS /boot/config-some_version
If it says CONFIG_NTFS_FS=m it's a module and can be loaded with: modprobe ntfs
for a more permanent loading use modconf.
How are you trying to mount anyway?
 
Old 08-07-2005, 05:25 PM   #3
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by makuyl
gunzip < /proc/config.gz |grep NTFS
a bit off topic here but did you know there's zgrep?

zgrep whatever zipped.file.gz

also zless, zmore. zcat, zdiff and zcmp

All part of the gzip packages. Neat, eh?
 
Old 08-07-2005, 05:25 PM   #4
XSquire
LQ Newbie
 
Registered: Dec 2004
Location: Caracas - Venezuela
Distribution: Debian "Sarge" 3.0
Posts: 12

Original Poster
Rep: Reputation: 0
I haven't tried to mount anything yet, cause I can't find any NTFS support installed in the kernel to begin with :S, just tried to look for support using grep and still can't find it. As far as I have figured out I dont have support for NTFS installed in the kernel. I used cat /proc/filesystems and it lists all the fs supported and NTFS isn't on there :S
 
Old 08-07-2005, 05:28 PM   #5
XSquire
LQ Newbie
 
Registered: Dec 2004
Location: Caracas - Venezuela
Distribution: Debian "Sarge" 3.0
Posts: 12

Original Poster
Rep: Reputation: 0
What happens if I re-install my kernel using synaptic??? Do I screw it up??
 
Old 08-07-2005, 05:34 PM   #6
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by XSquire
What happens if I re-install my kernel using synaptic??? Do I screw it up??
Did you try modprobe ntfs? If it comes back with module not found your kernel lacks ntfs support. Then (and only then) you will have to get a new kernel. Either build it yourself or use the pre-built kernel images that are available through apt (or synaptic). As far as I know all pre-built kernels come with the ntfs module.
 
Old 08-07-2005, 05:42 PM   #7
XSquire
LQ Newbie
 
Registered: Dec 2004
Location: Caracas - Venezuela
Distribution: Debian "Sarge" 3.0
Posts: 12

Original Poster
Rep: Reputation: 0
Yes I tried modprobe ntfs and nothing happend, I'm guessing that might mean that when I installed the system it came pre-compiled...so what should I do next to try to mount one of the partitions?
 
Old 08-07-2005, 05:54 PM   #8
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by XSquire
so what should I do next to try to mount one of the partitions?
sounds like a great plan
 
Old 08-07-2005, 05:59 PM   #9
XSquire
LQ Newbie
 
Registered: Dec 2004
Location: Caracas - Venezuela
Distribution: Debian "Sarge" 3.0
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, great idea. The thing is, how??
 
Old 08-07-2005, 06:10 PM   #10
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
mount -t ntfs /dev/hdXn /mount/point

The -t ntfs might not even be necessary. Maybe it's determined automagically. /dev/hdXn needs to be adjusted to suit your needs (hda1: first partition on primary master,....).

Might be worth putting an entry in /etc/fstab if you constantly mount this device. see man fstab and man mount
 
Old 08-07-2005, 06:11 PM   #11
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Quote:
Originally posted by demian
a bit off topic here but did you know there's zgrep?

zgrep whatever zipped.file.gz
All part of the gzip packages. Neat, eh?
Heh, that is neat. Now that you mentioned it, I do remember it but habits die hard. Will probably change this one though, so thanks.
 
Old 08-07-2005, 06:18 PM   #12
XSquire
LQ Newbie
 
Registered: Dec 2004
Location: Caracas - Venezuela
Distribution: Debian "Sarge" 3.0
Posts: 12

Original Poster
Rep: Reputation: 0
Thx I got it working, still dont see anything anywhere that says the kernel has ntfs support, but I still got it thought.
 
Old 10-04-2005, 06:48 PM   #13
Matty-J
Member
 
Registered: Jun 2004
Distribution: SuSE 9.3, Debian Sarge
Posts: 65

Rep: Reputation: 15
Quote:
Originally posted by demian
mount -t ntfs /dev/hdXn /mount/point

The -t ntfs might not even be necessary. Maybe it's determined automagically. /dev/hdXn needs to be adjusted to suit your needs (hda1: first partition on primary master,....).

Might be worth putting an entry in /etc/fstab if you constantly mount this device. see man fstab and man mount
Hi,

I'm running into some problems as well. I did a cat /proc/filesystems and ntfs was listed. I also did a modprobe ntfs with no errors.

My problem arises when I try to do the actual mounting. If I do mount /dev/hda1 mount/windows it says that mount point mount/windows does not exist.

If i just try mount /dev/hda1 can't find /dev/hda1 in /etc/fstab or /etc/mtab.

I'm very new, especially to Debian, so I appologize if I'm just missing something. Any help would be great.

Thanks,
Matt
 
Old 10-05-2005, 07:28 AM   #14
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
It's usually /mnt/windows and not mount/windows , observe the missing / as well.
If the dir doesn't exist: mkdir /mnt/windows
 
Old 10-05-2005, 05:51 PM   #15
Matty-J
Member
 
Registered: Jun 2004
Distribution: SuSE 9.3, Debian Sarge
Posts: 65

Rep: Reputation: 15
Quote:
Originally posted by makuyl
It's usually /mnt/windows and not mount/windows , observe the missing / as well.
If the dir doesn't exist: mkdir /mnt/windows
Man, I feel dumb now. I got 'er to mount now, but how do I set permissions so that all users can access it, but not write? Currently only the owner (root) can access the drive.

Edit: I found notice I could use mount /dev/hda1 /mnt/window -o
and then enter either uid, gid, umask but I'm not sure what I'd put there.

Thanks,
Matt

Last edited by Matty-J; 10-05-2005 at 06:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help me to add support! ilectrcbob Linux - Newbie 1 06-19-2004 10:38 AM
How do I add support for NTFS to Fedora? jdruin Fedora 9 05-08-2004 05:10 AM
Rebuilding kernel to add NTFS support Odd_Bloke Linux - General 4 11-10-2003 02:40 AM
How to add access 4 ntfs? Quest Linux - General 1 11-07-2002 06:01 AM
Add NTFS Support to RedHat 7.2 Kernel RedHatMN Linux - Distributions 4 01-22-2002 08:49 PM


All times are GMT -5. The time now is 06:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration