LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to mount Windows NTFS partition?? (https://www.linuxquestions.org/questions/ubuntu-63/how-to-mount-windows-ntfs-partition-371998/)

crash_override_me 10-11-2005 03:10 PM

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!!

biophysics 10-11-2005 03:26 PM

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

crash_override_me 10-11-2005 03:36 PM

Need auto Mount on Startup~~
 
hi BioPhysics,

thanx for the help!!
Will this Mount the partition every time on Startup??

Matty-J 10-12-2005 08:51 AM

To mount it every time on startup, change the noauto to auto.

korpy 10-28-2005 02:47 AM

is it possible to have a rewriteable NTFS partition in Ubuntu?

Dtsazza 10-28-2005 03:23 AM

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...

mouldy_punk 10-28-2005 09:22 AM

Apparently the kernel's support for NTFS writing is pretty poor and will probably mess up your partition.

RIB 11-30-2005 05:47 PM

...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 /

biophysics 12-01-2005 09:57 AM

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

RIB 12-01-2005 01:56 PM

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 :newbie: 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...

biophysics 12-01-2005 03:14 PM

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.

RIB 12-10-2005 10:17 AM

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?

mouldy_punk 12-10-2005 11:11 AM

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.

bwog 12-10-2005 01:40 PM

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.


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