LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   aa1 - How do I edit fstab to automount external ntfs-3g hdd? (https://www.linuxquestions.org/questions/linux-newbie-8/aa1-how-do-i-edit-fstab-to-automount-external-ntfs-3g-hdd-711730/)

hegemoni 03-15-2009 08:45 AM

aa1 - How do I edit fstab to automount external ntfs-3g hdd?
 
AA1 Linux linpus user

I'm trying to find out how my external hdd may open so I can write to it. I have made this file:
Quote:

etc/hal/fdi/policy/20-ntfs-config-write-policy.fdi
with this content:

Quote:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="ntfs">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.fstype" type="string">ntfs-3g</merge>
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
<append key="volume.mount.valid_options" type="strlist">locale=</append>
</match>
</match>
</device>
</deviceinfo>
I have also made several mountpoints, and they work, but only when I mount manually. I used this code:
Quote:

[root@localhost user]# mount -t ntfs-3g /dev/sdb1 /media/"Name of my disk" -o force
I found a tip saying that I could add something like this to my fstab-file
Quote:

/dev/sdb1 /media/"Name of my disk" ntfs-3g auto 0 0
1. I have installed fuse-convmvfs-0.2.4-4.fc8. Do I need this file? (I have also installed the ntfs-3g file. It seems to work ok)

2. Is the code I want to put in my fstab file the right one? Should I f.ex. write default instead of auto?

3. How do I actually open the fstab file and write to it? I have tried to find the code, but I didn't want to try them, because I have had enough recoveries.....:D Typical :newbie:

4. Is there other solutions on this problem?

-hegemoni

malekmustaq 03-15-2009 10:52 AM

hegemoni:

your 3 & 4 questions:

3. How do I actually open the fstab file and write to it? I have tried to find the code, but I didn't want to try them, because I have had enough recoveries.....

==> fstab is located at /etc/fstab (you just cd there)
you can write and save your edit on fstab file using your root account: so you have to su or sudo -i first in order to edit the file by issuing command: vi fstab {read man pages first how to use vi editor==> man vi}


4. Is there other solutions on this problem?

==> a) enter command as root at the terminal: fdisk -l and you will see what drives are available in the peripherals

==> b) you should mount them manually, or if you want to auto mount them you must enter the commands within fstab

==> c) to take a peep at how the system handled devices and mountings cat or less these files:

cat /proc/mounts
cat /etc/mtab
cat /proc/partitions
cat /etc/fstab

finally, there is a gold mine of user information in solving basic user challenges in this directory:

/usr/doc/linux-HOWTOs

hope it helps.


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