Announcement

Collapse
No announcement yet.

auto mount ext4 (solved)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    auto mount ext4 (solved)

    it seems i ll be forever noob

    short: plz tell me line to append in fstab, so as to auto mount ext4 partition at startup with read write permission to all user.

    long:
    Since i install *buntu every 2 weeks or so i decided to give permanent space for music, photos, videos on one of the partition.
    i used gparted to make following partition. (single hard disk drive)
    2gb for swap
    ~15gb primary partition for / ext4
    90gb primary partition for DATA ext4.

    kubuntu does not mount the 90gb ext4 partition. i manually have to click on that drive and enter root password.

    here is what i could do with help of dibl's question #15. (thanks dibl for creating best 20 noob question) and using some info from http://wiki.archlinux.org/index.php/Fstab:

    Code:
    sudo mkdir /mnt/data
    sudo nano /etc/fstab
    appended this line:
    Code:
    # DATA partition on /mnt/data
    UUID=307fe982-f44f-4e15-adca-31de34976c7a    /mnt/data    ext4  auto,rw,noatime 0    2
    but still
    1. boot process is not smooth. it stucks at playmouth screen..resuming only after hitting alt+ctrl+del to show the log-in.
    2. i dont have read write permission. (though now data partition is mounted without password )

    Please tell me what i am doing wrong.
    thanks in advance...
    asus A52N
    Dual boot: Kubuntu 11.10 64bit, Ubuntu 11.10 64bit
    AMD Athlon II 64 X2 | 4 GB DDR3 RAM | ATI Radeon HD 4200
    windoze free since 2009 12 16 (Vijay din= Victory day)

    #2
    Re: auto mount ext4

    Please post the output of sudo fdisk -l
    and sudo blkid
    Tell us which partition you have designated for DATA.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: auto mount ext4

      sudo fdisk -l output:
      Code:
      Disk /dev/sda: 120.0 GB, 120034123776 bytes
      255 heads, 63 sectors/track, 14593 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0x000d0ba4
      
        Device Boot   Start     End   Blocks  Id System
      /dev/sda1  *      1    2490  20000893+ 83 Linux
      /dev/sda2      14245    14594   2802689  5 Extended
      /dev/sda3      2491    14244  94414005  83 Linux
      /dev/sda5      14245    14594   2802688  82 Linux swap / Solaris
      
      Partition table entries are not in disk order
      sudo blkid output:
      Code:
      /dev/sda1: UUID="ea23ddf1-ae00-4db6-9765-a95c12267eb6" TYPE="ext4" 
      /dev/sda3: LABEL="DATA" UUID="307fe982-f44f-4e15-adca-31de34976c7a" TYPE="ext4" 
      /dev/sda5: UUID="055e01c6-a5cd-46b3-9787-d6c9bc7f90f7" TYPE="swap"
      data is on sda3.
      one more thing to add. i saw the hdd partition in KDE partition manager just now. it shows:
      <partition> <type> <mount point> <label> <size>
      /dev/sda3 ext4 /mnt/data/,/media/sda3 DATA 90.1gb
      there was no need to create another mount point (/mnt/data) in ftab..was it?
      asus A52N
      Dual boot: Kubuntu 11.10 64bit, Ubuntu 11.10 64bit
      AMD Athlon II 64 X2 | 4 GB DDR3 RAM | ATI Radeon HD 4200
      windoze free since 2009 12 16 (Vijay din= Victory day)

      Comment


        #4
        Re: auto mount ext4

        Originally posted by kapil
        2. i dont have read write permission. (though now data partition is mounted without password )
        With linux native filesystems (like ext), you don't define ownerships/permissions at mount time (via mount options), these are handled by the filesystem itself.

        Once the filesystem is mounted, you can change ownerships/permissions to give yourself write permission to the filesystem with chmod (permissions) and chown (ownerships) commands, example:
        Code:
        sudo chown -R kapil:kapil /media/sda3
        (the above recursively changes the ownership of the filesystem on /media/sda3 to user kapil, which is usually enough to gain write access to it as user kapil).

        You can of course use dolphin to change ownerships/permissions as well (right-click on directory/file and choose properties), but you usually have to start dolphin as root to change things you do not have write access to (kdesudo dolphin).

        there was no need to create another mount point (/mnt/data) in ftab..was it?
        looks like it is also mounted on /media/sda3.

        EDIT: (A word of warning)
        Be careful with chown and chmod commands, especially when using the -R (recursive) option. Make sure you target the directories you mean to target, and not the root directory (/) or other system directories. Results of typos vary from "nothing happening", through "easily revertable", to "disastrous".

        Comment


          #5
          Re: auto mount ext4

          @kubicle: thanks. the problem is solved.
          now, the fstab has following entry for mounting at boot:
          Code:
          UUID=43977832-f15f-4192-855d-78f74cd797f6 /media/sda3 ext4 defaults       0 0
          used the chmod command for giving permission to user group and other users.
          Code:
          sudo chmod g+w /media/sda3
          sudo chmod go+w /media/sda3
          now everything is fine
          asus A52N
          Dual boot: Kubuntu 11.10 64bit, Ubuntu 11.10 64bit
          AMD Athlon II 64 X2 | 4 GB DDR3 RAM | ATI Radeon HD 4200
          windoze free since 2009 12 16 (Vijay din= Victory day)

          Comment

          Working...
          X