LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu 9 How to automount NTFS drive? (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-9-how-to-automount-ntfs-drive-740119/)

mitchell7man 07-14-2009 09:14 PM

Ubuntu 9 How to automount NTFS drive?
 
Okay, so I'm comming back to linux, so I'm going through all the pains I did before, except this time around it seems everything autoconfigs alot better, ntfs is supported by default, graphics drivers auto install etc etc. But, now that this is the case, my old instructions for automounting my ntfs drives dont seem to make much sense. How should I go about doing this now?


Thanks
MJ

micxz 07-14-2009 09:21 PM

checkout fstab

mitchell7man 07-14-2009 09:36 PM

MY FSTAB is:
Quote:

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb6 during installation
UUID=f3a3f1b6-902d-4004-9817-1e3a0caf322c / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=9d7899a4-9739-40d5-8c6a-3a7f75fc192e none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0
and my device appears to be mounting on /media/Data,

so what are the paramaters that I should add to make it auto mount? ... I'm not seing an sda# in my /dev folder...

Thanks for any help... MJ

micxz 07-14-2009 10:00 PM

Quote:

Originally Posted by mitchell7man (Post 3607900)
MY FSTAB is:
and my device appears to be mounting on /media/Data

Where are you seeing this? I don't see "/media/Data" in your fstab.

The parameters are auto (I think this is default) instead of noauto. The whole entry should look something like:
Code:

/dev/diskid /media/data  ntfs-3g  auto 0 0
Of course with your disk ID and mount point created (/media/data)

mitchell7man 07-14-2009 10:05 PM

I'm talking about when I just double click on the disk from 'Places' which uses whatever ubuntu comes with by default. That is why it is not in the fstab. I need to add it to the fstab, do I need to go about creating a directory and all that? Also, how do I find out where it is in /dev?

Thanks again,
MJ

micxz 07-14-2009 10:10 PM

How about trying this:
- Double click it as you did.
- Then run the command "mount"
- take what you've learned from mount and apply it to fstab

micxz 07-14-2009 10:12 PM

Quote:

Originally Posted by mitchell7man (Post 3607924)
go about creating a directory and all that? Also, how do I find out where it is in /dev?

Thanks again,
MJ

You will se when you run mount to dev name of the drive and just create a mount point by making a folder:
mkdir /media/data

mitchell7man 07-14-2009 10:22 PM

Okay thanks, does this look right?

Quote:

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb6 during installation
UUID=f3a3f1b6-902d-4004-9817-1e3a0caf322c / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=9d7899a4-9739-40d5-8c6a-3a7f75fc192e none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/Data type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

micxz 07-14-2009 10:28 PM

Looks good to me. Just make sure /media/Data (Capitol D exists) and without the "()" around the options'

mitchell7man 07-15-2009 12:53 AM

Okay, should work. Installing XP on Virtual Box so wont be able to reboot until thats done.
Thanks :)

micxz 07-15-2009 01:21 AM

Quote:

Originally Posted by mitchell7man (Post 3608027)
Okay, should work. Installing XP on Virtual Box so wont be able to reboot until thats done.
Thanks :)

XP blah' Aight' hope it works out'

mitchell7man 07-16-2009 02:24 AM

Okay, works perfect, but had to change the line a bit, i had type in there, its working witht his line
Quote:

/dev/sdb1 /media/Data auto rw,nosuid,nodev,allow_other,blksize=4096
Thanks!


All times are GMT -5. The time now is 01:46 PM.