Treceți la conținutul principal

Mount NTFS Partitions in Ubuntu Linux How To

Yes, I know, there are a lot of tutorials, sites, blogs that explains how to mount a NTFS or FAT32 partitions in Ubuntu and in the other Linux distributions, but mainly I want to write this tutorial (and many others) just to have on my blog and to use this information when I will need it.

I have to mention first that my system is a dual boot: WindowsXP and Ubuntu Karmic Koala. My Windows partitions are only NTFS and because I rarely use this Operating System I want to benefit the free space from this partitions. My intention is to mount them on boot and not to mount them manually from Nautilus or through Gnome-terminal and to be forced every time to enter root password.

I have also to mention that I don't guarantee that this tutorial will work for you and for your system and I am not responsible if something is going wrong. Before starting you should make a backup. If that is says I really have to make a backup too although I've changed the system files without doing this. Shame on me!

If you want to know where the NTFS partitions are we have to write in the terminal this code:
sudo fdisk -l

and you will have to enter the password.
The output is, for example my output:
vasia@vasia-laptop:~/Pictures/Blog$ sudo fdisk -l
[sudo] password for vasia:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa8d32665

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 19457 115330635 f W95 Ext'd (LBA)
/dev/sda5 5100 11714 53126955 7 HPFS/NTFS
/dev/sda6 19307 19457 1212876 82 Linux swap / Solaris
/dev/sda7 16875 19306 19535008+ 83 Linux
/dev/sda8 11714 16874 41455669+ 83 Linux

Partition table entries are not in disk order

As you can see above my NTFS partition are on /dev/sda1 and /dev/sda5. The * from sda1 means that is a bootable partition.
Next we have to change the fstab file for having partitions mounted on boot. Like I've said before, is very good idea to make a backup, and we can also make a backup to our fstab file like this:
sudo cp /etc/fstab /etc/fstab_backup.old

Note: the extension of the file could be also .bk, or .old, or .txt, or .back etc(I really don't know if there are restrictions here).

If you read this how to I suppose that you don't have already a mount point for your NTFS partitions, then lets make one, or to in my case, because I have to partitions to mount. Also we will use the Terminal. Why? Because we need root privileges and have to put the password!

NOTE: if an experimented Linux user is reading this tutorial and sees that something is wrong, or something is not right in what I explain please tell me! You will help me and also those who read this. I have to say that, although I'm using Ubuntu for 2 years I think, I have a lot more to learn and put in practice. Thanks for your understanding!

Making two different folders in /media is not so difficult:
sudo mkdir /media/win /media/win1

After that we have to modify the fstab file like this:
sudo gedit /etc/fstab

and to add at the bottom of the file this two lines (like I said these is only for me):
dev/sda1 /media/win ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
dev/sda5 /media/win1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1

After this steps you have to restart the system to see the effects.
Hope that is working great for you and that you didn't had any problems.

If by any way you don't trust what I'm saying please look on this tutorial from ArsGeek site or site where you can find out how to mount FAT32 partitions.

Postări populare de pe acest blog

Install Heroes Of Might and Magic 3 on Ubuntu Linux

This is an other small tutorial on how to install a game on Ubuntu Linux. Until now I've already explained how to install Football Manager 2011 on Ubuntu and I've seen that a lot of people are entering on my blog looking how to do that.
I think that you know Heroes 3 and that you've played in Windows but the story and the game play is calling you to play it also in Linux, no? First we have to download and install this game.

I think that this is the easiest step, you just have to search on Google something like this download heroes 3 linux and I'm definitively sure that you'll find a site from which to download the game files ;).
After downloading the game you have to install it. If the *.iso file is compressed in a  *.bz2 file you have to uncompressed it. After that write in the Terminal this, after you go with cd command in the folder where the iso file is:
sudo mount -t iso9660 -o loop HMM3-Linux.iso /mnt/fakecd
In this moment the iso will…

Adaugare posturi TV in SopCast Player

Vreau să vă prezint mai jos o metodă, destul de uşoară, prin care puteţi urmări diferite posturi TV online fără a mai intra pe vreun site de fiecare dată când vreţi să vedeţi ProTV, sau PrimaTV, sau HBO, sau alt post TV. Această metodă o puteţi folosi în Linux dar şi în Windows.

Am mai prezentat cu ceva timp în urmă metode de a urmări online posturi TV româneşti utilizând diferite programe ca Sopcast şi TV-MAXE, iar această metodă foloseşte programul Sopcast Player deoarece majoritatea posturilor TV sunt transmise pe net prin serviciul sopcast.

Wallpaper-uri pentru Anul Nou 2016

Anul 2016 este aproape și nici nu-mi vine să cred ce rapid a trecut 2015. Bradul este împodobit, Moș Crăciun sper că a venit, dar oare desktopul vostru e pregătit pentru venirea Anului Nou? Dacă încă nu, atunci grăbiți-vă să descărcați un wallpaper pe care să-l folosiți la cumpăna dintre ani.

Mai multe wallpapre-uri găsiți pe aceste site-uri:

La muți ani!