Page 15 of 21 FirstFirst ... 51314151617 ... LastLast
Results 141 to 150 of 205

Thread: How to fstab

  1. #141
    Join Date
    Sep 2007
    Location
    Seattle, USA
    Beans
    116
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to fstab

    Much appreciated! And in general, the information that I've found here on this forum is incredibly helpful.

    In case it helps future visitors, here's the line I added to fstab to mount a FAT32 eSATA volume into an existing directory that I created called /media/disk-1:

    Code:
    # VFAT
    # /dev/sda1
    UUID=0FFD-432F /media/disk-1 vfat auto,users,utf8,umask=000 37 0 0

  2. #142
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How to fstab

    Hello daqron, welcome to the forums!
    Just a let you know: there is a minor error in your fstab entry.

    Each fstab line (besides comments and empty lines) should have exactly six space-separated fields. Yours has seven:
    Code:
    UUID=0FFD-432F /media/disk-1 vfat auto,users,utf8,umask=000 37 0 0
    Perhaps you meant
    Code:
    UUID=0FFD-432F /media/disk-1 vfat auto,users,utf8,umask=000 0 0
    Note that with a non-zero value (37) in the fifth field, you are telling dump to backup this partition.
    By default, however, Ubuntu does not install dump, so I think this field is meaningless unless you install dump.

    Cheers,
    unutbu

  3. #143
    Join Date
    Apr 2007
    Beans
    179

    Re: How to fstab

    I must being doing something wrong that is simple.
    When attempting to use e2label to assign a label to a partition on my other internal HD, I receive the following error message:

    e2label: Is a directory while trying to open /media/disk/newbackup
    Couldn't find valid filesystem superblock.

    There a number of partitions on my other HD, which is why I want to assign a label to this one before entering it in fstab to enable it for backups.

  4. #144
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How to fstab

    I was able to reproduce your error message. It happens when you specify the partition by mount point instead of specifying the partition by its device name.

    /media/disk/newbackup is the mount point.
    The device name might be something like /dev/sdb1

    So the command you are looking for is
    Code:
    sudo e2label /dev/sdb1 LABEL
    of course, make sure you change /dev/sdb1 to the correct device name.

    To find the device name type
    Code:
    df
    Look for the line which lists /media/disk/newbackup under the column entitled "Mounted on" and find the device name under the column entitled "Filesystem".

  5. #145
    Join Date
    Sep 2007
    Location
    Seattle, USA
    Beans
    116
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to fstab

    Quote Originally Posted by unutbu View Post
    Hello daqron, welcome to the forums!
    Thank you sir and/or madam.

    Quote Originally Posted by unutbu View Post
    Perhaps you meant
    Code:
    UUID=0FFD-432F /media/disk-1 vfat auto,users,utf8,umask=000 0 0
    That is exactly what I meant. fstab auto-corrected by removing the superfluous "0" at the end, but I went ahead and changed the 37 to 0. Thanks for the clarification.
    "I take it from your glum demeanor that your ill-advised foray into time-travel destroyed yet another reality."

  6. #146
    Join Date
    Dec 2006
    Beans
    7,349

    Re: How to fstab

    Hi,

    A quick question that may be a little off-topic:

    I am running Intrepid Ibex as guest using VirtualBox on a slackware host. I have set up a shared folder on the host and placed the matching folder on my Intrepid desktop. I have loaded this from fstab as:

    Code:
    share /home/andrew/Desktop/share vboxsf uid=andrew,gid=users 0 0
    Two questions about this:

    1. Why did I have to use the uid / gid pair instead of 'user'?
    2. Is there a better way to load this shared folder in fstab?


    I apologise ahead for this question as I suck at fstab .

    Andrew

  7. #147
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to fstab

    Quote Originally Posted by andrew.46 View Post
    Hi,

    A quick question that may be a little off-topic:

    I am running Intrepid Ibex as guest using VirtualBox on a slackware host. I have set up a shared folder on the host and placed the matching folder on my Intrepid desktop. I have loaded this from fstab as:

    Code:
    share /home/andrew/Desktop/share vboxsf uid=andrew,gid=users 0 0
    Two questions about this:

    1. Why did I have to use the uid / gid pair instead of 'user'?
    2. Is there a better way to load this shared folder in fstab?


    I apologise ahead for this question as I suck at fstab .

    Andrew
    On topic : As far as I know this i show you add (VirtualBox) shares to fstab (your syntax looks good to me). In terms of the options , those are determined by the VirtualBox guest Additions similar to other file systems.

    By that I mean if you look at man mount

    http://linux.die.net/man/8/mount

    You will see each file system has it's own options, and this must then be the behavior of vboxsf .

    ======

    Off topic: I find it is just as easy to use a shared USB device or better a Samba server. Just as easy, IMO, to set up. You can also use other network protocols, such as ssh (scp), sshfs, ftp, https, NFS, etc.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  8. #148
    Join Date
    Dec 2006
    Beans
    7,349

    Re: How to fstab

    Hi bohdi.zazen,

    Thanks for your reply:

    Quote Originally Posted by bodhi.zazen View Post
    [...] each file system has it's own options, and this must then be the behavior of vboxsf .
    Indeed I see now. The options for vboxsf are a little hidden from me, the docs have little to say. I shall pursue this with the virtualbox people. Fortunately the options I scavenged from google are working as I wish .

    Off topic: I find it is just as easy to use a shared USB device or better a Samba server. Just as easy, IMO, to set up. You can also use other network protocols, such as ssh (scp), sshfs, ftp, https, NFS, etc.
    I will investigate, although my need to share between host and guest will probably be fairly minimal.

    Thanks again,

    Andrew

  9. #149
    Join Date
    Oct 2008
    Location
    New Dehi, India
    Beans
    119
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to fstab

    I want to make a general entry (in order to specify configuration information) to mount any ISO image file, i wish; such that when I issue mount command, image gets mounted (as staged below) and I don't have to specify configuration information.
    mount <image_path> <mountpoint>
    I tried
    LABEL='*' /media/IMAGE udf,iso9660 user,loop=/dev/loop0 0 0
    but no avail.
    Do wildcards works in fstab entries?
    What is difference between the options 'loop' and 'loop=/dev/loop0'?
    Thanks in advance..
    Nature Thoughts & Symmetry

  10. #150
    Join Date
    Oct 2008
    Location
    New Dehi, India
    Beans
    119
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to fstab

    Quote Originally Posted by munishvit View Post
    I want to make a general entry (in order to specify configuration information) to mount any ISO image file, i wish; such that when I issue mount command, image gets mounted (as stated below) and I don't have to specify configuration information.
    mount <image_path> <mountpoint>
    Guys, is there any way around?
    Nature Thoughts & Symmetry

Page 15 of 21 FirstFirst ... 51314151617 ... 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
  •