Announcement

Collapse
No announcement yet.

auto mount partition at login

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

    auto mount partition at login

    Hello all once again!
    I installed kubuntu 8.10 sometime ago... and now I want it to mount a fat32 partition on login. I edited my /etc/fstab file and added this line at the end
    Code:
    # /dev/sdb6
    UUID=xyz	/media/newdisk	vfat	detaults,auto,users,exec,uid=1000,gid=100,umask=000	0	0
    but couldn't succeed (This line works perfectly well on Ubuntu 8.04 installation on this computer).
    Now, it doesn't even mount after logging in (earlier, after logging in, I would start dolphin and click on the partition - it would ask me for the password and then mount the partition). It gave me the following error at the bottom of dolphin window
    An error occurred while accessing 'NewDisk', the system responded:
    org.freedesktop.Hal.Device.Volume.PermissionDenied
    Device /dev/sdb6 is listed in /etc/fstab. Refusing to mount
    Then as suggested by dibl on this post (http://kubuntuforums.net/forums/inde...opic=3099199.0), I added directory '/media/newdisk' but still I get the same error.

    When I try to mount from Konsole (sudo mount /dev/sdb6) it gives me this error:
    wrong fs type, bad option, bad superblock on /dev/sdb6,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    Can anybody tell me whats wrong here?
    Triple booting Kubuntu Intrepid with XP and Ubuntu Hardy <br />Intel Pentium DualCore 2 Ghz, 1 GB RAM Intel 945GM MoBo

    #2
    Re: auto mount partition at login

    These are the two fstab entries I have for my two vfat drives:
    UUID=100B-2074 /media/USB_60G vfat defaults,user,umask=000,relatime 0 2
    UUID=1BD7-0D75 /media/PCMCIA_5G vfat defaults,user,umask=000,relatime 0 2
    Both are available after boot.

    Change your fstab entry to reflect what I have after the mount points. Note that the very last entry is a 2 not a 0. Within fstab, this is important. The only partitions/devices that should have option 0 (last entry) are /proc and any non-HD devices - CD/DVD Roms and Floppy drives. All other fstab ext3 partitions should have option 2 as the last entry, except for the root partition, which should have option 1 as the last entry.

    If you want to learn more about how to use fstab, visit How to fstab by bodhi.zazen (Ubuntu Forum Staff member).
    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
      [Solved] auto mount partition at login

      Edited the line. Now it looks like this
      Code:
      /dev/sdb6  /media/newdisk   vfat   defaults,user,auto,relatime   0    0
      and it works now! I guess the option 'relatime' worked, but I didn't see this anywhere mentioned in the howto's that you suggested or the others that I read earlier. What is this option about?

      Also I kept the fsck pass at '0' since I didn't want Kubuntu to check this partition at boot up. Do you think its necessary?

      Thanks!
      Triple booting Kubuntu Intrepid with XP and Ubuntu Hardy <br />Intel Pentium DualCore 2 Ghz, 1 GB RAM Intel 945GM MoBo

      Comment

      Working...
      X