Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Ubuntu 8.04 not automatically mounting new HD

  • 19-06-2008 4:19pm
    #1
    Registered Users, Registered Users 2 Posts: 3,579 ✭✭✭


    Added a new 1TB hard drive to my system recently but I have to manually mount it each time (click on it in Places), it's NTFS formatted and shared with Vista (not the OS though).
    I think I have to mess with fstab or something?


Comments

  • Registered Users, Registered Users 2 Posts: 1,562 ✭✭✭cance


    man fstab
    man mount

    To edit fstab:

    just open up fstab with vi or nano, and the syntax should be self evident:
    Code:

    /path/to/device /path/to/mount/point fstype options 0(in most cases) 0(in most cases)

    so if you wanted to mount a usb flash drive at boot up, taking up device /dev/sda1 at /mnt/usb with a FAT filesystem, the line would be:
    Code:

    /dev/sda1 /mnt/usb vfat defaults 0 0


  • Registered Users, Registered Users 2 Posts: 3,579 ✭✭✭BopNiblets


    Ok I'll give something like that a shot, thanks.


  • Registered Users, Registered Users 2 Posts: 3,579 ✭✭✭BopNiblets


    Hey guys, still haven't sorted this out, here is my fstab file:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda3
    UUID=fdef5777-6150-4be3-9c99-149d852e27bb / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda1
    UUID=92C2B604C2B5ED1B /media/sda1 ntfs defaults,umask=007,gid=46 0 1
    # /dev/sda2
    UUID=D284CEA784CE8E03 /media/sda2 ntfs defaults,umask=007,gid=46 0 1
    # /dev/sdb5
    UUID=92EC643E35B2B190 /media/sdb5 ntfs defaults,umask=007,gid=46 0 1
    # /dev/sdc5
    UUID=C2A9CCDDACC9919F /media/sdc5 ntfs defaults,umask=007,gid=46 0 1
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

    The UUID of the drive I'm trying to add is 4615065F0311C6FD and it's NTFS, but I'm not sure of what to put in for the filesystem and mount points... :(
    My /dev directory doesn't have sda1/2/3 or sdb5/sdc5 in it.


  • Registered Users, Registered Users 2 Posts: 1,231 ✭✭✭stereo_steve


    Restart your computer but don't mount your harddrive..

    In the terminal type df

    This will show you your drives. Make a note of them. Then mount your hard drive and type df again. The difference between the two df's will show you the information you require!

    This way is a bit cumbersome but its straight forward.

    Good luck


  • Registered Users, Registered Users 2 Posts: 3,579 ✭✭✭BopNiblets


    Ah, that got it.
    I used UUID=4615065F0311C6FD /media/sdb5 ntfs defaults,umask=007,gid=46 0 1
    I think the other UUID was my old hard drive.

    Thanks!


  • Advertisement
  • Moderators, Arts Moderators Posts: 35,919 Mod ✭✭✭✭pickarooney


    On a related note, some bright spark at Canonical seems to have decided it would be a good idea to get rid of automounting SD cards, USB devices and other such peripherals in Hardy. Major WTF?
    Why on earth would they do that and how is user Lambda supposed to figure out how to edit an fstab file so his memory card will be visible, the way it was in the last three releases...

    Utter, utter, rubbish.


  • Registered Users, Registered Users 2 Posts: 3,568 ✭✭✭ethernet


    On a related note, some bright spark at Canonical seems to have decided it would be a good idea to get rid of automounting SD cards, USB devices and other such peripherals in Hardy. Major WTF?
    Why on earth would they do that and how is user Lambda supposed to figure out how to edit an fstab file so his memory card will be visible, the way it was in the last three releases...

    Utter, utter, rubbish.
    That's not a great move. Hardy you say? Could this be related to the new policy kit implementation?


  • Registered Users, Registered Users 2 Posts: 3,579 ✭✭✭BopNiblets


    Hmm, I have another problem with this, it was all going well until I had to manually reboot vista today, now my drives won't mount in Linux Mint (I went back into Vista and restarted in case they were locked, but still no luck):
    screenshotei0.jpg

    I saw a way to mount them all as su:
    sudo mount -a
    fuse: failed to access mountpoint /media/VISTA: No such file or directory
    fuse: failed to access mountpoint /media/NIBS: No such file or directory
    fuse: failed to access mountpoint /media/GAMES: No such file or directory

    Here's my fstab file:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda3
    UUID=ef2075fb-fe58-4a44-8384-3b999024a226 / ext3 relatime,errors=remount-ro 0 1
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/sda1 /media/VISTA ntfs,defaults,umask=007,gid=46 0 1
    /dev/sdb5 /media/NIBS ntfs,defaults,umask=007,gid=46 0 1
    /dev/sda2 /media/GAMES ntfs,defaults,umask=007,gid=46 0 1

    :(


  • Closed Accounts Posts: 1,377 ✭✭✭An Fear Aniar


    On a related note, some bright spark at Canonical seems to have decided it would be a good idea to get rid of automounting SD cards, USB devices and other such peripherals in Hardy. Major WTF?

    Well, my copy of hardy 8.04 does mount all my partitions, including automount of USB drives and CDs, don't know about SD cards though.


    .


  • Registered Users, Registered Users 2 Posts: 3,568 ✭✭✭ethernet


    @BopNiblets

    Have to ask the obvious: do the directories VISTA, NIBS and GAMES exist under /media? Mount points have to exist when specified in the mount command.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,579 ✭✭✭BopNiblets


    Oh ok, they used to be there, manually created them now and then did "sudo mount -a" and they popped up, duh me.


  • Registered Users, Registered Users 2 Posts: 3,579 ✭✭✭BopNiblets


    *big bump*
    Thought I'd make use of my old thread, I can make a new one if need be.

    More mounting niggles unrelated to above stuff, after reinstalling Windows 7 and it wiped out GRUB2, which I got back easily enough, some of my drives in Mint aren't mounting the way they were again.
    I appear to have an extra device called NIBS for some reason and my WIN device doesn't mount automatically on boot.

    Also is there a way to hide the System Reserved one from my menu? :)

    fstab file:
    /dev/sda4 /media/GAMES ntfs,defaults,umask=007,gid=46 0 1
    /dev/sdb5 /media/NIBS ntfs,defaults,umask=007,gid=46 0 1
    /dev/sda2 /media/WIN ntfs,defaults,umask=007,gid=46 0 1 
    # / was on /dev/sda3 during installation
    UUID=b5ef4cda-d3ad-4494-9d8f-ce62f8986693 /               ext4    errors=remount-ro 0       1
    

    Computer:
    screenshotcomputerfileb.th.png
    Note the two NIBS, only one of them mounts.

    EDIT: Huh I rebooted there nand everything is back to normal, weird, DISREGARD! :)


Advertisement