LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 10-11-2005, 03:10 PM   #1
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
Question How to mount Windows NTFS partition??


hi guys,

i wanted to mount my Windows NTFS partition on Ubuntu.
How do i do this, is the procedure same as in case of FAT32 partitions...??


Please Help!!
 
Old 10-11-2005, 03:26 PM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
As root create directory like /windows/C Change the ownership incase you want users to mount the partition. insert the following code into file /etc/fstab

Code:
/dev/hda1            /windows/C           ntfs       noauto,ro,users,gid=users,umask=0002,nls=utf8 0 0
Now type mount /windows/C


For fat32 use "vfat"
Code:
/dev/hda2            /windows/D           vfat       noauto,rw,user,nosuid,exec,sync 0 0
 
Old 10-11-2005, 03:36 PM   #3
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
Exclamation Need auto Mount on Startup~~

hi BioPhysics,

thanx for the help!!
Will this Mount the partition every time on Startup??
 
Old 10-12-2005, 08:51 AM   #4
Matty-J
Member
 
Registered: Jun 2004
Distribution: SuSE 9.3, Debian Sarge
Posts: 65

Rep: Reputation: 15
To mount it every time on startup, change the noauto to auto.
 
Old 10-28-2005, 02:47 AM   #5
korpy
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
is it possible to have a rewriteable NTFS partition in Ubuntu?
 
Old 10-28-2005, 03:23 AM   #6
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
This isn't so much a matter of distributions, as it is of your Linux kernel. The later kernels have NTFS write support as an option; however, last time I checked, this was marked as EXPERIMENTAL. In other words, it's believed to work pretty well, but they can't guarantee it won't trash your entire drive. It's a bit like the kernel releases in general; whether you want to go for more features at the risk of stability, and is entirely up to you.

Alternatively, Captive may do it for you...
 
Old 10-28-2005, 09:22 AM   #7
mouldy_punk
Member
 
Registered: Jul 2004
Distribution: Slackware/SuSE/Mandriva/Ubuntu
Posts: 78

Rep: Reputation: 15
Apparently the kernel's support for NTFS writing is pretty poor and will probably mess up your partition.
 
Old 11-30-2005, 05:47 PM   #8
RIB
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
...and what if the root partition is already mounted on /dev/hda1 ?

Quote:
$ mount /windows/c
mount: /dev/hda1 already mounted or /windows/c busy
mount: according to mtab, /dev/hda1 is mounted on /
 
Old 12-01-2005, 09:57 AM   #9
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
Well don't mess up mounting a wrong one on your root. Be careful:

can you just post:
$ /sbin/fdisk -l /dev/hda

If you have more than one hard disk post:
$ /sbin/fdisk -l /dev/hdb
$ /sbin/fdisk -l /dev/hdc

Also post your
$ cat /etc/fstab
 
Old 12-01-2005, 01:56 PM   #10
RIB
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
Thanks for the reply!
There's only one physical hard drive in my machine (it's a laptop),
This is what fdisk tells me about it:
Quote:
RIB@ubuntu:/~$ sudo fdisk -l /dev/hda
Password:

Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 246 1975963+ 83 Linux
/dev/hda2 * 263 2431 17422492+ 7 HPFS/NTFS
/dev/hda3 247 262 128520 5 Extended
/dev/hda5 247 262 128488+ 82 Linux swap / Solaris

Partition table entries are not in disk order
Now that's interesting... /dev/hda2 huh? Thanks for the tip, I tried it out in my fstab, which now looks like this:
Quote:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
# /dev/hda1 /windows/c ntfs noauto,ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda2 /windows/c ntfs noauto,ro,users,gid=users,umask=0002,nls=utf8 0 0
And it does the trick! The NTFS partition is loaded, albeit as read-only.
Thanks, I should have been able to come up with this myself. Guess I'm still more of a than I was willing to admit to myself.

Is it safe to change the 'noauto' into 'auto' now? I guess so, but I rather ask first...

Last edited by RIB; 12-01-2005 at 02:30 PM.
 
Old 12-01-2005, 03:14 PM   #11
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
Quote:
The NTFS partition is loaded, albeit as read-only.
Though recent kernels can write NTFS - it is experimental. Do not try unless you are an expert -warning comes from linux developers.

Personally, I have NOT changed it to auto.
 
Old 12-10-2005, 10:17 AM   #12
RIB
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
I put it on "auto" and it works just fine. Everytime I boot as Linux, I can access my Windows partition straight away. Boom! This is handy, thanks.

If it works fine mounting the NTFS partition manually, what's the danger in having it done automatically? What can go wrong?
 
Old 12-10-2005, 11:11 AM   #13
mouldy_punk
Member
 
Registered: Jul 2004
Distribution: Slackware/SuSE/Mandriva/Ubuntu
Posts: 78

Rep: Reputation: 15
Nothing wrong with mounting it automatically. But just don't enable write support...I think you need to recompile the kernel for that anyway. Enabling write support will probably mess up your entire partition (perhaps even your whole drive) and is not recommended at all.
 
Old 12-10-2005, 01:40 PM   #14
bwog
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Rep: Reputation: 15
In the official starterguide they use umask=0222 for NTFS: http://help.ubuntu.com/starterguide/...html#id2514705

Automatic mounting at startup is done by editing fstab.

Last edited by bwog; 12-10-2005 at 01:41 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
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
Can I mount my windows NTFS partition from Linux? jdruin Fedora 14 04-21-2004 11:49 AM
Can someone help me mount my NTFS partition? Kramer Linux - General 3 11-12-2003 12:05 PM
Why can I mount one NTFS partition but not the other? DeleriA Linux - Software 5 03-09-2003 05:08 PM
Mount an NTFS Partition? oostevo Linux - General 3 11-23-2001 06:17 AM


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

Main Menu
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