How To Use NTFS Drives/Partitions Under Ubuntu Edgy Eft - Page 3
3 Internal NTFS PartitionChapter three is about using ntfs-3g with an internal NTFS drive (e.g. if you are in a dual-boot environment and want to mount your Windows partition under Linux).
3.1 Modify /etc/apt/sources.listThe ntfs-3g packages that we need to install are in an external Ubuntu repository (http://flomertens.keo.in/ubuntu/) therefore we must add deb http://flomertens.keo.in/ubuntu/ edgy main main-all to /etc/apt/sources.list: sudo vi /etc/apt/sources.list
Afterwards we update our packages database: sudo apt-get update
3.2 Install ntfs-3gNext we install ntfs-3g: sudo apt-get install ntfs-3g If you see this, please answer with y: Reading package lists... Done
3.3 Find Out About Your NTFS PartitionNext we must find out how our NTFS partition is named. Therefore we run sudo fdisk -l | grep NTFS The output should look like this: /dev/sda1 1 48641 390708801 7 HPFS/NTFS So our NTFS partition is /dev/sda1 in this example.
3.4. Mount The NTFS PartitionNow we can use ntfs-3g to mount our NTFS partition. In this example I want to mount it in the directory /mnt/windows, so we must make sure it exists: sudo mkdir /mnt/windows Next we mount our NTFS partition: sudo ntfs-3g /dev/sda1 /mnt/windows (Of course this works only if /dev/sda1 hasn't been mounted before.) Now open a file browser on your desktop and see if you can access your NTFS drive and save files to it.
3.5 Mount The NTFS Partition At Boot TimeOf course we don't want to mount our NTFS partition manually all the time, but rather have it mounted automatically when the system boots up. To do this, make a backup of /etc/fstab: sudo cp -pf /etc/fstab /etc/fstab_orig and then open /etc/fstab: sudo vi /etc/fstab and check if there is already an entry for the NTFS partition. If so, modify it, otherwise add a new line like this one:
If you want to use another locale than en_US.utf8, replace it with your preferred locale. You can get a list of all available locales on your system by running sudo locale -a The output should be similar to this: C After you have modified /etc/fstab, reboot your system: sudo shutdown -r now After the reboot, your NTFS partition should have automatically been mounted to /mnt/windows.
4 Links
|



print: 


Recent comments
12 hours 15 min ago
12 hours 19 min ago
16 hours 21 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 13 hours ago
2 days 13 hours ago
2 days 15 hours ago
2 days 19 hours ago
4 days 51 min ago