ntfs partition

Asked by stewart

I have installed Ubuntu onto a new Hard Drive with no problems. I cant access my second hard drive as it has a NTFS partition, the error message says that it did not have a clean shutdown. I am very new to Ubuntu and if anyone does decide to answer I'm going to need a full walk through!!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Thien Pham
Solved:
Last query:
Last reply:
Revision history for this message
plutino (plutino) said :
#1

You need to boot to windows and it will do an automatic partition check. After than, shutdown windows normally and reboot to Ubuntu.

Revision history for this message
ex-xp64 (ex-xp64) said :
#2

Either boot back into windows and do a proper shutdown/disconnect of the device, or if you don't have windows connect the disk to a machine that does. You can only solve this through windows

Revision history for this message
Tom (tom6) said :
#3

I was wondering if you have anything saved in Windows on a Cd, floppy, usb-stick or something. Does your Ubuntu allow you to read those files or still having trouble with that kind of thing? If they are troublesome too and you have internet access enabled then just use Synaptic Package Manager to get Samba-client sorted and then should be fine, i think. Although the above 2 people seem to have the most likely answer. Yeah actually i'm floating off on a tangent

Welcome in to Linux tho
Hope you have fun too
Regards from
Tom

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#4

If you no longer have windows on your machine and cannot cleanly shutdown that drive. You can still gain access to the drive by mounting it with the force option. This can be done manually or automatically through fstab.

Please tell...if this is the case....Thanks

Revision history for this message
Best Thien Pham (thiengom) said :
#5

Install ntfs-3g in Ubuntu

If you want to install ntfs-3g run the following command from your terminal

sudo apt-get install ntfs-3g

Configuring ntfs-3g

Now you need to use the following command to determine all the available partitions

sudo fdisk -l

Now you need to configure your NTFS partitions in /etc/fstab file before doing any changes in /etc/fstab file we will take a backup of this file using the following command (Highly Recommended)

sudo cp /etc/fstab /etc/fstab.bak

Now you need to create a directory where do you mount your windows partitions in this example i ma creating windows directory

sudo mkdir /media/windows

If you want to mount /dev/hda1 is your windows partition you need to enter the following line in /etc/fstab file

/dev/ /media/ ntfs-3g defaults,locale=en_US.utf8 0 0

You need to replace your partition and mount point with your details

Example

/dev/hda3 /media/windows ntfs-3g defaults,locale=en_US.utf8 0 0

save and exit the file

If you want to mount as read only you need to enter the following line in /etc/fstabfile

/dev/hda3 /media/windows ntfs-3g ro,locale=en_US.utf8,uid=1000 0 0

If You want to change your locale option you need to run the following command in a terminal to know which one is supported by your system.

locale -a

Now if you want these new chnages to take effect there are two options one is you can simply reboot your machine and the second one is without rebooting you need to run the following commands

To unmount

sudo umount -a

To Mount

sudo mount -a

If you want to know more available options for ntfs-3g check man page

If you want to mount and unmount Windows partitions (FAT) manually, and allow all users to read and write

Follow the same procedure to get the list of your windows partitions,create a directory where do you want to mount and you do the following command from your teminal replace /dev/hda3,/media/windows/ to your environment

sudo mount /dev/hda3 /media/windows/ -t vfat -o iocharset=utf8,umask=000

If you want to mount FAT partitions on boot-up to allow users to read and write use the following command in your /etc/fstab file you can see the above procedure how to take backup of fstab file before you do any changes

/dev/hda3 /media/windows vfat iocharset=utf8,umask=000 0 0

Note: no need to thank me, it's just a little share knowledge with you.
Anyway, Welcome to Ubuntu.
Thanks,
Thien Pham

Revision history for this message
Thien Pham (thiengom) said :
#6

Hi stewart,
You can navigate to this link for more info http://www.cyberciti.biz/faq/mounting-windows-partition-onto-ubuntu-linux/
Regards,
Thien Pham (VN)

Revision history for this message
stewart (stewmatley) said :
#7

Thanks thiengom, that solved my question.

Revision history for this message
stewart (stewmatley) said :
#8

Thanks a lot guys, The ntfs-3g programme worked a treat. Wonder if that annoying paperclip would have helped me this much?

Loving Ubuntu, and I've only been using it for 24 Hours!!!!!!!!

Revision history for this message
Tom (tom6) said :
#9

Welcome in Stewart :)

Hopefully you'll be helping people out in here in no time.

WOW!! thiengom, awesome answer, very thorough and precise. I liked the "no need to thank me, it's just a little share knowledge with you" at the end of such a hugely helpful thing. Can we give extra karma points for that answer?

Thanks and regards to both/all of you
Tom :)

Revision history for this message
Thien Pham (thiengom) said :
#10

Hi Tom,
How can I contact with you? I found in you a very in-deep knowledge about Ubuntu. That's great. I'm not familiar much to Ubuntu 'cause I've used it for 6 months. MOst of time, I use windows Xp in my office (I don't like microsoft as much as Ubuntu):).

Anyway, can we make friend to share our knowledge and cutural. You can contact me via email <email address hidden> and my Y!M: thiengom. I'm also available in gmail at <email address hidden>. and most of all, I'm Vietnamese. have you ever known about VIet nam.

I'm sorry for contacting you this way.

Thank you,
Thien Pham