LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2004, 11:43 PM   #1
eaglesfan17
Member
 
Registered: Feb 2004
Location: North Carolina
Distribution: Ubuntu Edgy Eft
Posts: 36

Rep: Reputation: 15
How do I access my NTFS hard drive with Mandrake 9.2?


I can't figure this out, even after reading other threads....
 
Old 02-10-2004, 01:18 AM   #2
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi

Try man fstab

This should help.

Note that you cannot write to ntfs in linux yet !!

cheers
 
Old 02-10-2004, 02:59 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Or a man mount. The actual syntax is in this thread.
 
Old 02-10-2004, 03:45 AM   #4
Kroppus
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Debian UNSTABLE + latest 2.6.kernel
Posts: 391

Rep: Reputation: 30
You can write to NTFS.. The question is if you dare to do it since it's still not totally safe.

You need the NTFS filesystem in your running kernel to even read it..


COMPILING TIME *GRINS an EVIL grin*
 
Old 02-10-2004, 07:53 AM   #5
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Mandrake comes with ntfs support by default. Just set up your fstab to automatically mount the partition.

Last edited by Scruff; 02-10-2004 at 07:54 AM.
 
Old 02-10-2004, 08:39 AM   #6
eaglesfan17
Member
 
Registered: Feb 2004
Location: North Carolina
Distribution: Ubuntu Edgy Eft
Posts: 36

Original Poster
Rep: Reputation: 15
What is fstab and how do I set it up?
 
Old 02-10-2004, 09:11 AM   #7
eaglesfan17
Member
 
Registered: Feb 2004
Location: North Carolina
Distribution: Ubuntu Edgy Eft
Posts: 36

Original Poster
Rep: Reputation: 15
Sorry, i'm a complete n00b when it comes to Linux.
 
Old 02-10-2004, 09:21 AM   #8
Kroppus
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Debian UNSTABLE + latest 2.6.kernel
Posts: 391

Rep: Reputation: 30
I'm not sure where it is on Mandrake, but normally that file should be in /etc/
the best way to edit it is to make a copy of it and then copy one of the other lines..
Edit it to fit your disk (name mountpoint etc) and then try to mount it manually..

or you could always try
*make a dir first * mkdir /mnt/test *just an idea*
mount -t ntfs (or auto) dev/hd?? /mnt/test

If you got that edited right in the fstab it's enough to do a mount /mountpoint-dirname


do a

mount --help


)
 
Old 02-10-2004, 09:22 AM   #9
zinic
LQ Newbie
 
Registered: Nov 2003
Location: Västerås - Sweden
Distribution: Dual boot with WinXP & Red Hat 9
Posts: 14

Rep: Reputation: 0
edit the file /etc/fstab (have to be root to do this) and add the line for mounting your ntfs drive
something like:

/dev/hdx /mnt/windows ntfs.....

and change hdx to your nfts drive for example hda1
i dunno remember exactly all the stuff you should write in that line but i'm sure you'll find that out, or maybe someone else could answer that..

cheers!
 
Old 02-10-2004, 09:31 AM   #10
eaglesfan17
Member
 
Registered: Feb 2004
Location: North Carolina
Distribution: Ubuntu Edgy Eft
Posts: 36

Original Poster
Rep: Reputation: 15
in my fstab, it currently has:
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdd,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
none /mnt/hd supermount dev=/dev/hdb1,fs=ext2:vfat,--,kudzu,iocharset=iso8859-1,codepage=850 0 0


hdb1 is my NTFS hard drive, so do i just add the line "mount -t ntfs /dev/hdb1 /mnt/win" to that?
 
Old 02-10-2004, 10:04 AM   #11
eaglesfan17
Member
 
Registered: Feb 2004
Location: North Carolina
Distribution: Ubuntu Edgy Eft
Posts: 36

Original Poster
Rep: Reputation: 15
Or would I need to change that other stuff?
 
Old 02-10-2004, 12:18 PM   #12
Kroppus
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Debian UNSTABLE + latest 2.6.kernel
Posts: 391

Rep: Reputation: 30
"mount -t ntfs /dev/hdb1 /mnt/win"
is the comand you use to manually mount the disk....

this is the line i have for one of my fat32 partitions..
/dev/hda8 /pictures vfat rw,uid=1000,gid=100 0 2


so for you it'd be like

/dev/hdb1 /mnt/win ntfs ro 0 2

At least that's something like what i had when i still had XP on this pc...

Remember to make a folder in /mnt named win then
 
Old 02-10-2004, 08:06 PM   #13
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Quote:
hdb1 is my NTFS hard drive, so do i just add the line "mount -t ntfs /dev/hdb1 /mnt/win" to that [my fstab]?
No. The mount command is to be run from the command line (as root). If you want it mounted automatically every time you boot you'll have to add a line like "/dev/hda1 /win ntfs ro,auto,users,suid,nodev,umask=007 0 0" to your fstab.
 
Old 02-10-2004, 11:11 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Here's my fstab entry...

/dev/hda2 /mnt/xp ntfs exec,users,umask=7,ro,uid=99,gid=504 0 0


just change the device name to match your system, the uid=99 is user nobody, gid=504 is a group I created named ntuser.


Here is the result of the fstab mount..

ls -l /mnt/
drwxrwx--- 1 nobody ntuser 12288 Feb 8 13:01 xp


mount
/dev/hda2 on /mnt/xp type ntfs (ro,noexec,nosuid,nodev,umask=7,uid=99,gid=504)



(edit)

Note:

I have added ro which will mount it read only even though the permissions are 770. If you want to write to it if supported (not xp/2k) leave out the ro.

For exactness or just for the heck of it, when using ro use "umask=0227"

resulting mount..
dr-xr-x--- 1 nobody ntuser 12288 Feb 8 13:01 xp

Last edited by DavidPhillips; 02-10-2004 at 11:28 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
user ntfs hard drive access problem Th3_J3st3R Slackware 4 08-28-2005 10:59 PM
Howto install mandrake from a NTFS particion on hard drive Akiles Linux - Newbie 3 04-03-2005 03:13 PM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM
How do i access Windows (NTFS) hard drive with mandrake 9.1 WoodShaver Linux - Software 1 05-20-2004 09:03 PM
Cant mount NTFS Hard drive monkeymartin Linux - General 5 08-10-2003 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration