Professional Web Applications Themes

Mounting partition on ad hoc basis - Linux Setup, Configuration & Administration

HI all, My machine is an XP and Linux dual boot machine. Only XP is on C: primary. The secondary drive is partitioned into: 1st partition: FAT32 - this is seen by XP, and is used for backup Extended partition: - contains all Linux logical partitions. When I installed Linux, I did not look at the first partition at all. There is no entry for it in /etc/fstab I would like to mount this partition on an ad hoc basis for backup. But I don't want it to be mounted upon startup. This command worked: mount /dev/hdb1 /mnt -r -t ...

  1. #1

    Default Mounting partition on ad hoc basis

    HI all,

    My machine is an XP and Linux dual boot machine.

    Only XP is on C: primary.


    The secondary drive is partitioned into:

    1st partition: FAT32
    - this is seen by XP, and is used for backup

    Extended partition:
    - contains all Linux logical partitions.


    When I installed Linux, I did not look at the first
    partition at all. There is no entry for it in
    /etc/fstab

    I would like to mount this partition on an ad hoc basis
    for backup. But I don't want it to be mounted upon startup.


    This command worked:

    mount /dev/hdb1 /mnt -r -t vfat

    I could see the drive.



    However, I wanted to mount it as /backup
    not /mnt, but it didn't work.

    mount /dev/hdb1 /backup -r -t vfat
    mount: mount point /backup does not exist


    How can I mount this partition as /backup?


    Thanks
    Roger Guest

  2. #2

    Default Re: Mounting partition on ad hoc basis

    In comp.os.linux.setup Roger Redford <com> wrote: 

    Create the directory /backup first.
    Davide
    Davide Guest

  3. #3

    Default Re: Mounting partition on ad hoc basis

    Roger Redford wrote: 

    You have to make the mountpoint first. 'mkdir /backup'.
    John-Paul Guest

  4. #4

    Default Re: Mounting partition on ad hoc basis

    Roger Redford wrote:
     

    .... you merely need to create the directory named, "/backup"
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    It's better to be wanted for murder that not to be wanted at all.
    - Marty Winch

    mjt Guest

  5. #5

    Default Re: Mounting partition on ad hoc basis

    Roger Redford wrote:
     

    As others have pointed out, the mount point needs to exist BEFORE you can
    mount something into the filesystem. However, if you'd like to use
    "mount-shorthand" like "mount /backup" instead of the full "mount -t ....."
    you need to add the mount options etc to /etc/fstab. Here's a line that
    will work for your setup;

    [/etc/fstab]
    .....
    /devb/hdb1 /backup vfat rw,user,noauto,umask=0 0 0
    .....

    CAUTION: This will mount in read/write mode, allow any user to
    mount/dismount it and allow any user to read/write files on that volume.

    rw = read+write mode (change to "ro" for read-only)
    user = user mountable/dismountable
    noauto = DONT automatically mount this at boot
    umask=0 = essentially, allow full access to any user (read "man mount")

    The last two "0 0" are the dump and pass respectively - read up on man mount
    and man fstab,but in a nutshell the zero prevents file system dumps from
    occuring.

    Anyway, after adding that line to your /etc/fstab you can now type:
    mount /backup
    or
    mount /dev/hdb1

    HTH,

    --James
    __________________________________
    A random quote of nothing:

    A horse breeder has his young colts bottle-fed after they're three
    days old. He heard that a foal and his mummy are soon parted.

    Centurion Guest

Similar Threads

  1. MOUNTING FAT partition
    By SAM in forum Linux Setup, Configuration & Administration
    Replies: 5
    Last Post: September 29th, 06:03 PM
  2. Incrementing a value on a rolling basis
    By Jim in forum Microsoft SQL / MS SQL Server
    Replies: 3
    Last Post: July 10th, 02:45 PM
  3. billing cpu usage of a monthly basis
    By Hans de Git in forum Oracle Server
    Replies: 5
    Last Post: July 9th, 08:41 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139