Why do I have to mount a drive/folder each time I log on? - Questions

This is a discussion on Why do I have to mount a drive/folder each time I log on? - Questions ; Each time I reboot my computer, I have to mount a drive in my computer that I labeled as "c" (which is actually the disk that contains Windows XP) to make it so I can browse the contents. This is ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Why do I have to mount a drive/folder each time I log on?

  1. Why do I have to mount a drive/folder each time I log on?

    Each time I reboot my computer, I have to mount a drive in my computer
    that I labeled as "c" (which is actually the disk that contains Windows
    XP) to make it so I can browse the contents. This is getting to be a pain.

    Any idea why I have to remount the drive every time I reboot? What can
    I do to avoid this?

    FYI, the command I'm using to mount the drive is:

    mount /dev/hda1 /mnt/c -t ntfs -ro,uid=500

    (I always log into Fedora Core 1 as uid 500)


  2. Re: Why do I have to mount a drive/folder each time I log on?

    In comp.os.linux.questions, gurdude uttered these immortal words:

    > Each time I reboot my computer, I have to mount a drive in my computer
    > that I labeled as "c" (which is actually the disk that contains Windows
    > XP) to make it so I can browse the contents. This is getting to be a
    > pain.
    >
    > Any idea why I have to remount the drive every time I reboot? What can
    > I do to avoid this?
    >
    > FYI, the command I'm using to mount the drive is:
    >
    > mount /dev/hda1 /mnt/c -t ntfs -ro,uid=500


    You need to add a line to /etc/fstab and use the "auto" option. I can't
    remember the exact line for an NTFS mount but it's similar to your mount
    command. Read the fstab man page for more.

    --
    Andy.

  3. Solution: How to prevent having to mount a drive/folder each timeat log on

    Andy Fraser wrote:
    > You need to add a line to /etc/fstab and use the "auto" option. I can't
    > remember the exact line for an NTFS mount but it's similar to your mount
    > command. Read the fstab man page for more.
    >

    Thanks. After some research, here is what works:
    1) log on as root
    2) open the fstab file in a text editing program of your choice
    3) add the following line (for browsing an NTFS hard drive) and save it.

    /dev/hda1 /mnt/c ntfs auto,uid=500,ro

    I left the last two fields blank (alternatively, I believe you could use
    two zeroes, i.e. 0 0)


+ Reply to Thread