Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Mounting multile partitions at startup

  1. #11
    Join Date
    Apr 2009
    Location
    Decatur, Il.
    Beans
    129
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mounting multile partitions at startup

    Quote Originally Posted by Rebelli0us View Post
    Just add them to fstab or use a utility like mountmanager to do it for you.
    I might use a program eventually, but I like to actually learn how things work before I take the easier route. Helps me to be able to troubleshoot problems if I actually know what's going on. Thanks though, I'll check that mountmanager out.

    I know Windows better than I know the back of my hand and now it's time to master Linux ;p
    We are 138

  2. #12
    Join Date
    Apr 2009
    Location
    Decatur, Il.
    Beans
    129
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mounting multile partitions at startup

    Can I assume I can mount different partitions to the same mount point?

    Code:
    /dev/sda2 /mnt/windows ntfs-3g defaults,locale=en_US.utf8 0 0
    /dev/sda7 /mnt/windows ntfs-3g defaults,locale=en_US.utf8 0 0
    etc...
    Last edited by Lateralus138; July 13th, 2012 at 06:11 PM.
    We are 138

  3. #13
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Mounting multile partitions at startup

    No you can not. And I would change those options as well but that's up to you.

    EDIT: I would change them to this if it was my system:
    Code:
    UUID=A********* /mnt/WinC ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0
    UUID=O********* /mnt/WinD ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0
    You would have to create the /,nt/WinC and /mnt/WinD mountppoints first.
    Last edited by Morbius1; July 13th, 2012 at 06:13 PM.

  4. #14
    Join Date
    Apr 2009
    Location
    Decatur, Il.
    Beans
    129
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mounting multile partitions at startup

    Quote Originally Posted by Morbius1 View Post
    No you can not. And I would change those options as well but that's up to you.
    Ok so maybe like this:
    Code:
    /dev/sda2 /mnt/windows1 ntfs defaults,locale=en_US.utf8 0 2 
    /dev/sda7 /mnt/windows2 ntfs defaults,locale=en_US.utf8 0 2
    Edit:
    Code:
    /dev/sda2 /mnt/windows1 ntfs defaults,umask-000,dmask=000,fmask=111,locale=en_US.utf8 0 2 
    /dev/sda7 /mnt/windows2 ntfs defaults,umask-000,dmask=000,fmask=111,locale=en_US.utf8 0 2
    Last edited by Lateralus138; July 13th, 2012 at 06:18 PM.
    We are 138

  5. #15
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Mounting multile partitions at startup

    Sorry, posted with an edit right past you.

    Yes, different mount points but I would go back to using uuid's instead of the /dev/sdxy. "ntfs" or "ntfs-3g" are both the same in Ubuntu. And "windows_names" prevents you from adding a file in Linux with a name Windows cannot interpret. And keep the last digit as zero not 2. ANd uid=1000 will make you the owner of the mounted partition not root.

  6. #16
    Join Date
    Apr 2009
    Location
    Decatur, Il.
    Beans
    129
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mounting multile partitions at startup

    Quote Originally Posted by Morbius1 View Post
    Sorry, posted with an edit right past you.

    Yes, different mount points but I would go back to using uuid's instead of the /dev/sdxy. "ntfs" or "ntfs-3g" are both the same in Ubuntu. And "windows_names" prevents you from adding a file in Linux with a name Windows cannot interpret. And keep the last digit as zero not 2. ANd uid=1000 will make you the owner of the mounted partition not root.
    "windows_names"? not sure what part you're talking about and uid=1000? What part is that?

    This is what I have so far
    Code:
    UUID="AA8EE2508EE2149B /mnt/part1 ntfs-3g defaults,locale=en_US.utf8 0 0
    UUID="0C6249226BC6107F /mnt/part2 ntfs-3g defaults,locale=en_US.utf8 0 0
    Last edited by Lateralus138; July 13th, 2012 at 06:26 PM.
    We are 138

  7. #17
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Mounting multile partitions at startup

    One of us need to slow down

    My recommendation was this:
    Code:
    UUID=A********* /mnt/WinC ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0 
    UUID=O********* /mnt/WinD ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0
    Note on umask, dmask, and fmask: dmask and fmask are components of umask. Don't use all three at the same time.

  8. #18
    Join Date
    Apr 2009
    Location
    Decatur, Il.
    Beans
    129
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mounting multile partitions at startup

    Quote Originally Posted by Morbius1 View Post
    One of us need to slow down

    My recommendation was this:
    Code:
    UUID=A********* /mnt/WinC ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0 
    UUID=O********* /mnt/WinD ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0
    Note on umask, dmask, and fmask: dmask and fmask are components of umask. Don't use all three at the same time.
    Ok I think I am getting it

    Code:
    UUID="AA8EE2508EE2149B /mnt/part1 ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0
    UUID="0C6249226BC6107F /mnt/part2 ntfs defaults,locale=en_US.utf8,uid=1000,windows_names 0 0
    as for umask I read this:

    "ntfs/vfat = permissions are set at the time of mounting the partition with umask, dmask, and fmask and can not be changed with commands such as chown or chmod. I advise dmask=027,fmask=137 (if you user umask=000 all your files will be executable). More permissive options would be dmask=000,fmask=111."

    so if I want to be able to execute files on the windows partition I should just use umask=000 alone like this:

    Code:
    UUID="AA8EE2508EE2149B /mnt/part1 ntfs defaults,locale=en_US.utf8,uid=1000,windows_names,umask=000 0 0
    UUID="0C6249226BC6107F /mnt/part2 ntfs defaults,locale=en_US.utf8,uid=1000,windows_names,umask=000 0 0
    ?
    Last edited by Lateralus138; July 13th, 2012 at 06:44 PM.
    We are 138

  9. #19
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Mounting multile partitions at startup

    This is kind of confusing but yes a "umask=000" will make all folders and files executable. But "umask=000" is how an ntfs partition will mount natually so it isn't needed. That said it's best to keep it in fstab as you have done just as a reminder of how you mounted it.

    There is one more tiny thing though:
    UUID="AA8EE2508EE2149B
    UUID="0C6249226BC6107F
    Get rid of those quote marks in front of the first character of your UUID

  10. #20
    Join Date
    Apr 2009
    Location
    Decatur, Il.
    Beans
    129
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mounting multile partitions at startup

    Quote Originally Posted by Morbius1 View Post
    This is kind of confusing but yes a "umask=000" will make all folders and files executable. But "umask=000" is how an ntfs partition will mount natually so it isn't needed. That said it's best to keep it in fstab as you have done just as a reminder of how you mounted it.

    There is one more tiny thing though:
    Get rid of those quote marks in front of the first character of your UUID
    Awesome thanx, now I have a better understanding of it all. That quotation mark was a typo I think and kept there from copying and pasting, but thanks for pointing it out, I did know that, but might have missed it.

    Thanx to everyone for all of your help.
    We are 138

Page 2 of 3 FirstFirst 123 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
  •