Find the answer to your Linux question:
Results 1 to 5 of 5
Hello friends, I want to mount a partition automatically when ubuntu starts. I have read some articles about but i think i make some mistake. I have read about etc/fstab ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    28

    how to mount automatically


    Hello friends,

    I want to mount a partition automatically when ubuntu starts.
    I have read some articles about but i think i make some mistake.
    I have read about etc/fstab and I wrote a statement below.

    /dev/sda5 /home/xyz/Desktop/ABC udf,iso9660 user,auto,exec,utf8 0 0

    what is wrong?

    I want only when I open my computer, some partitions can be usable.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Which Linux distro are you using? What is the filesystem of partition that you want to automount?

    Create mount point for each partition and edit /etc/fstab accordingly. Let say, /dev/sda5 has NTFS filesystem.
    Create mount_point
    Code:
    sudo mkdir /media/data
    Add this code in /etc/fstab file
    Code:
    /dev/sda5    /media/data  ntfs-3g  defaults,umask=0  0  0
    Replace ntfs-3g with vfat for FAT32.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    28
    i use ubuntu.
    and i want to mount shared partitions
    i can use them in ubuntu and windows as well.

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Post the output of sudo fdisk -l command here.

    Code:
    sudo fdisk -l
    df -h
    Post output here.
    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,649
    Quote Originally Posted by Utnubu View Post
    i use ubuntu.
    and i want to mount shared partitions
    i can use them in ubuntu and windows as well.
    Are you talking about network shares?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •