Mounting USB drives

Question

I installed my Ubuntu from a Pen Drive.

Now, my pen drive is not mounting automatically. Everytime, I reboot I have to manually mount the pen drive. Is there a way by which I can make ubuntu automatically mount my USB drives ?

Answer

Open /etc/fstab for editing, e.g.

sudo gedit /etc/fstab

    Find a line like this (usually at the end):

    /dev/sdb1  /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0  0

      and comment it out by placing a # at the beginning:

      #/dev/sdb1  /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0 0

        You can also rename the real cdrom mount point to /media/cdrom0 if you like.

        Advertisements
        Published in: on July 27, 2008 at 11:32 am  Leave a Comment  

        Creating Mount Points

        Question

        How to create Mount Points in ubuntu ?

        Answer

        For example, if you want to create a Mount Point called DISK1, then type the following command in the terminal :

        sudo mkdir /media/DISK1

        Then, you can include this mount point in the fstab file

        Published in: on June 9, 2008 at 12:01 pm  Leave a Comment  

        Space in Partition Name

        Question

        I have a partition called ‘OLD DISK’. How do I specify it in the FSTAB file with the space ? If I put quotation marks, it returns an error.

        Answer

        You have to ‘escape’ the space with 40. For example, your FSTAB entry will be something like

        /dev/sdb3   /media/OLD40DISK  auto  defaults  0

        Published in: on June 5, 2008 at 3:43 am  Leave a Comment  

        Mounting USB manually

        Question

        How do I manually mount a USB drive in Ubuntu ?

        Answer

        In the Terminal, you can type the following command :

        sudo mount /dev/sdc1 /mnt

        Then, you plug your USB drive.

        Published in: on June 5, 2008 at 3:28 am  Leave a Comment