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

Thread: /etc/fstab Errors when doing sudo mount -a

  1. #11
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: /etc/fstab Errors when doing sudo mount -a

    Quote Originally Posted by Joshwaa View Post
    Hm.. explain further?
    Ah, forget it. I've always used 'defaults' for the option in ntfs fstab lines and I thought that 'default' wouldn't work, but I've just tried it and it does.

    Saves a keypress, I suppose.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  2. #12
    Join Date
    Oct 2010
    Beans
    69
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: /etc/fstab Errors when doing sudo mount -a

    Quote Originally Posted by coffeecat View Post
    Ah, forget it. I've always used 'defaults' for the option in ntfs fstab lines and I thought that 'default' wouldn't work, but I've just tried it and it does.

    Saves a keypress, I suppose.

    I've tried what you've said, and it still doesn't work.. im confused as to why this isn't working..
    Joshwaa ~ Ubuntu 11.10 (32bit) / Windows 7 Ultimate (32bit)
    Packard Bell TJ65 - 320gb Internal HDD - 1TB External HDD - 3.2Ghz Dual Core Intel Processor - 280gb Linux Partition - 4gb DDR2 RAM - Nvidia G210M 412mb - 10gb SWAP

  3. #13
    Join Date
    Aug 2008
    Location
    Somerset, Great Britain
    Beans
    Hidden!

    Re: /etc/fstab Errors when doing sudo mount -a

    Does it give any details on the error?

    Out of curiosity, what does "sudo fdisk -l" output?

  4. #14
    Join Date
    Jun 2010
    Beans
    Hidden!

    Re: /etc/fstab Errors when doing sudo mount -a

    could you try mounting it to a directory without a space?
    Code:
    sudo mkdir /media/windows-7
    then in fstab - line 12
    Code:
    /dev/sda3 /media/Windows-7 ntfs-3g defaults 0 0
    EDIT:
    also post the output of
    Code:
    sudo blkid -c /dev/null
    Last edited by Verbeck; November 6th, 2010 at 12:07 PM.

  5. #15
    Join Date
    Oct 2010
    Beans
    69
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: /etc/fstab Errors when doing sudo mount -a

    Quote Originally Posted by Ant59 View Post
    Does it give any details on the error?

    Out of curiosity, what does "sudo fdisk -l" output?
    It just says that line 12 is bad..
    hm..

    Code:
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 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: 0xdc82dc82
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1530    12288000   27  Unknown
    /dev/sda2   *        1530        1543      102400    7  HPFS/NTFS
    /dev/sda3            1543       35089   269457752    7  HPFS/NTFS
    /dev/sda4           35089       38914    30718977    f  W95 Ext'd (LBA)
    /dev/sda5           35089       38914    30718976   83  Linux
    
    Disk /dev/sdb: 3965 MB, 3965190144 bytes
    49 heads, 48 sectors/track, 3292 cylinders
    Units = cylinders of 2352 * 512 = 1204224 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           4        3293     3868160    b  W95 FAT32
    Joshwaa ~ Ubuntu 11.10 (32bit) / Windows 7 Ultimate (32bit)
    Packard Bell TJ65 - 320gb Internal HDD - 1TB External HDD - 3.2Ghz Dual Core Intel Processor - 280gb Linux Partition - 4gb DDR2 RAM - Nvidia G210M 412mb - 10gb SWAP

  6. #16
    Join Date
    Aug 2008
    Location
    Somerset, Great Britain
    Beans
    Hidden!

    Re: /etc/fstab Errors when doing sudo mount -a

    What details does it give if you try it manually?

    Code:
    sudo mount /dev/sda3 "/media/Windows 7"

  7. #17
    Join Date
    Oct 2010
    Beans
    69
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: /etc/fstab Errors when doing sudo mount -a

    Quote Originally Posted by Ant59 View Post
    What details does it give if you try it manually?

    Code:
    sudo mount /dev/sda3 "/media/Windows 7"

    Code:
    Mount is denied because the NTFS volume is already exclusively opened.
    The volume may be already mounted, or another software may use it which
    could be identified for example by the help of the 'fuser' command.
    Joshwaa ~ Ubuntu 11.10 (32bit) / Windows 7 Ultimate (32bit)
    Packard Bell TJ65 - 320gb Internal HDD - 1TB External HDD - 3.2Ghz Dual Core Intel Processor - 280gb Linux Partition - 4gb DDR2 RAM - Nvidia G210M 412mb - 10gb SWAP

  8. #18
    Join Date
    Aug 2008
    Location
    Somerset, Great Britain
    Beans
    Hidden!

    Re: /etc/fstab Errors when doing sudo mount -a

    I think I've got it! Did you correctly shut down Windows before booting Ubuntu? If you hibernated or didn't shut down, you won't be able to mount the Windows partition.

  9. #19
    Join Date
    Oct 2010
    Beans
    69
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: /etc/fstab Errors when doing sudo mount -a

    Quote Originally Posted by Ant59 View Post
    I think I've got it! Did you correctly shut down Windows before booting Ubuntu? If you hibernated or didn't shut down, you won't be able to mount the Windows partition.
    It was shut down properly.. haha.
    The thing is, it shows up in my the sidebar of Nautilus and I click it and it mounts.. it's weird because my music on Rhythmbox is being pulled from my Win7 partition and I have to open the partition for the music to load, I'm trying to make the partition automatically load.
    Joshwaa ~ Ubuntu 11.10 (32bit) / Windows 7 Ultimate (32bit)
    Packard Bell TJ65 - 320gb Internal HDD - 1TB External HDD - 3.2Ghz Dual Core Intel Processor - 280gb Linux Partition - 4gb DDR2 RAM - Nvidia G210M 412mb - 10gb SWAP

  10. #20
    Join Date
    Jun 2010
    Beans
    Hidden!

    Re: /etc/fstab Errors when doing sudo mount -a

    also. before you try sudo mount -a, unmount the device first if its already mounted

    Code:
    sudo umount /dev/sda3

Page 2 of 3 FirstFirst 123 LastLast

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
  •