Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 43

Thread: HOWTO Automount in Hardy

  1. #21
    Join Date
    Nov 2007
    Beans
    6

    Re: HOWTO Automount in Hardy

    Thank you very much for this! It was uber annoying having to manually mount my partitions at every startup.

  2. #22
    Join Date
    Aug 2007
    Beans
    30

    Re: HOWTO Automount in Hardy

    Alternatively you could use the "NTFS configuration" tool to achieve all this with just a few clicks.

  3. #23
    Join Date
    Jul 2008
    Beans
    93

    Re: HOWTO Automount in Hardy

    Nice guide worked for me.
    I was the kid who just had to find for himself what happened if he stuck a fork in an outlet.

  4. #24
    Join Date
    Nov 2007
    Beans
    3

    Re: HOWTO Automount in Hardy

    this is the easiest way i found to automount:

    http://onlyubuntu.blogspot.com/2008/05/auto-mounting-internal-drives-in-ubuntu.html[/URL]

    but make sure you change all the false values to true instead of just the one he mentions, otherwise i found it didnt work.

  5. #25
    Join Date
    Nov 2007
    Beans
    3

    Re: HOWTO Automount in Hardy


  6. #26
    Join Date
    Aug 2007
    Beans
    30

    Re: HOWTO Automount in Hardy

    Ok ntfs-config was a very bad suggestion. As it turns out that only works untill you actually turn off your computer. It seems that after every cold boot the sd* values change so that doesn't work.

    The fastest way to do this if you have loads of sata/scsi ntfs drives is to:
    1. Install and run ntfs-config (without any of the target drives mounted). You can do this from the add/remove or
    Code:
    sudo apt-get install ntfs-config
    2. Make an fstab backup
    Code:
    sudo cp /etc/fstab /etc/fstab.bak
    and uninstall ntfs-config.
    Unmount the drives (you might need root privileges to do that, if so it can be done by running nautilus as root as described in the next step or from terminal if you know how to).

    3. I was quite happy with the folders as they were created by ntfs-config (they are created as root) so i kept them as they were. If you want to change/rename them you can do that as root in nautilus
    Code:
    gksu nautilus
    or from the terminal using
    Code:
    sudo rmdir /media/mountfolder
    and create new ones
    Code:
    sudo mkdir /media/mountfolder
    I'm sure you can rename folders from terminal, but I don't know how.

    4. Open a terminal and enter
    Code:
    sudo blkid
    This will list your drives with all the info you'll need.

    5. Open another terminal window and edit the fstab ntfs-config created by ntfs-config
    Code:
    gksu gedit /etc/fstab
    Once opened replace all the sd* values in the fstab file with the uid values from blkid (for newer users: just select it with the mouse, rightclick and choose copy and paste it over the sd values) and remove the "" from the uuid. Don't touch the settings for linux filesystems or optical drives.

    6. Save fstab and everything should be ok.

    In my instance these were the fstab entries created by ntfs-config
    Code:
    /dev/sde3 /media/Moviez ntfs-3g defaults,locale=en_US.UTF-8 0 0
    /dev/sdd2 /media/Epz ntfs-3g defaults,locale=en_US.UTF-8 0 0
    /dev/sdc1 /media/Download ntfs-3g defaults,locale=en_US.UTF-8 0 0
    /dev/sdb1 /media/Stuff ntfs-3g defaults,locale=en_US.UTF-8 0 0
    /dev/sda2 /media/DVDS ntfs-3g defaults,locale=en_US.UTF-8 0 0
    And this what I made of it:
    Code:
    UUID=6E286A1C2869E415 /media/Moviez ntfs-3g defaults,locale=en_US.UTF-8 0 0
    UUID=02E09007E08FFF5B /media/Epz ntfs-3g defaults,locale=en_US.UTF-8 0 0
    UUID=3C406343406302CE /media/Download ntfs-3g defaults,locale=en_US.UTF-8 0 0
    UUID=A078885D78883456 /media/Stuff ntfs-3g defaults,locale=en_US.UTF-8 0 0
    UUID=10F0F34141BBBDF9 /media/DVDS ntfs-3g defaults,locale=en_US.UTF-8 0 0
    This is the output from blkid i get now (notice how the sd* has changed from cold booting) :
    Code:
    /dev/sda1: UUID="6C383ED8383EA0CE" LABEL="GAMES" TYPE="ntfs" 
    /dev/sda2: UUID="02E09007E08FFF5B" LABEL="Epz" TYPE="ntfs" 
    /dev/sdc1: UUID="2dfb4ef1-dcde-490a-9e21-40ee47a0c5e2" TYPE="ext3" 
    /dev/sdd1: UUID="A078885D78883456" LABEL="Stuff" TYPE="ntfs" 
    /dev/sda3: TYPE="swap" UUID="6dd3d793-8049-4335-8bbe-14992a4681c7" 
    /dev/sdb2: UUID="689074C590749AF0" LABEL="******* XP x64" TYPE="ntfs" 
    /dev/sdb3: UUID="6E286A1C2869E415" LABEL="Moviez" TYPE="ntfs" 
    /dev/sdb5: UUID="e2e49a1a-77d7-4691-a5d8-11be2eae6ecb" SEC_TYPE="ext2" TYPE="ext3" 
    /dev/sdc2: UUID="10F0F34141BBBDF9" LABEL="DVDS" TYPE="ntfs" 
    /dev/sde1: UUID="3C406343406302CE" LABEL="Download" TYPE="ntfs"
    This way my samba shares and all other permissions stayed intact.

    I have no idea which events could change the uuid from a disk, but i'm sure I'll find out in time

    If I opened a securityhole like this please delete this post.

    If creative and ati would be so kind to either make decent binary drivers or provide the necessary information to the linux community I'd no longer have use for ntfs drives

    This is meant to be a guide for noobs by a noob (obviously). This way I actually had some notion of what I was doing and could always go back a step.
    Last edited by biebel; July 22nd, 2008 at 07:02 PM. Reason: Removing useless steps etc

  7. #27
    Join Date
    Jul 2007
    Beans
    23

    Re: HOWTO Automount in Hardy

    Quote Originally Posted by rich-dvd View Post
    Thank you very much, that worked like a charm

  8. #28
    Join Date
    Aug 2007
    Location
    US
    Beans
    163
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO Automount in Hardy

    hrmm, umask, gid, & uid all break it -- error:
    Code:
    mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
           missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    no biggie, I can manually change permissions on each partition but I'm really trying to find a way to automount hotswap (SATA) drives.

  9. #29
    Join Date
    Aug 2007
    Location
    US
    Beans
    163
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: uhelper=hal

    Quote Originally Posted by Odrodzona-Sarmacja View Post
    nosuid,nodev,uhelper=hal,utf8,shortname=winnt,uid= 1000 0 0
    uhelper=hal let's me mount fine but trying to unmount gives me the following error, in console and dolphin:

    Device to unmount is not in /media/.hal-mtab so it is not mounted by HAL

    ...

    the uhelper option seems to disable the user option (?) because I can only unmount as root. Line in fstab reads:
    Code:
    LABEL=backup1    /media/backup    ext3    uhelper=hal,auto,rw,sync,user        0    2

  10. #30
    Join Date
    Feb 2008
    Location
    Iowegia
    Beans
    182

    Re: HOWTO Automount in Hardy

    First off, I fixed the automount problem using the link prov'd by rich-dvd ... thanks. The negative is that it's mounting the XP system partition ( C: ) as well.

    I was having trouble with all my NTFS partitions labeled (as an example) ntfs-part-X becoming ntfs-part-X_ (notice the tail underscore), with the original becoming deactivated. This would happen every other boot up. Clearing out all folders in Places>Computer>Filesystem>media> except for the cdromX's and folders that matched NTFS partition names seems to have fixed that problem. I also cleared out all ntfs entries from fstab which may have been unnecessary since correcting via the media folder. System>Administration>StorageDeviceManager device tree still doesn't match results from Terminal's ls -l /dev/disk/by-uuid. There is a device entry of sda5 which does not show up in SDM's tree (shows sda1 only) ... appears to be non-fatal though.
    Ubuntu 8.10 x64 & XP Pro x64, Intel DP35DP MoBo, 3.0 GHz E8400 C2D, (2x2) GB GSkill DDR2 800 RAM, BFG-NVidia 8800GT video,
    Koutech PCIe NE222 I/O & PESI300 RAID, M-Audio 2496, DLink 10/100 PCI NIC, and Gateway 24" WS.
    > Linux user #: 476579 <

Page 3 of 5 FirstFirst 12345 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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