Mounting devices in Mandriva

Discussion in 'Linux, BSD and Other OS's' started by sabashuali, Nov 7, 2005.

  1. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    Hi

    I have my Mandriva up and running.

    I can see the drive I want to mount and when I try to mount it (from the desktop) it tells me that it does not exist in fstab.
    That is cool, no problems there...

    However, how do I edit fstab? In Ubuntu it was 'gedit'. I tried a few variations on the 'edit' theme, in Konsole but it did not work.

    I want to add the following line -
    /dev/hdd1 /mnt/file-pool vfat 'bla bla bla'

    So how do I edit the file and what do I need to put instead of 'bla bla bla' in order to be able to have comlpete rights to the mounted drive?

    Also, on shutdown I had a few errors jumping up. I will have to note them and vome back....
     
  2. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    What drive are you trying to mount? Depending on the type of device, the user-driven mounting of a device might be forbidden by your system's security policy. You can handle root-level mounting of HDDs and other mass storage with Mandriva Control Center (you can do most everything there): either Kmenu -> System -> Configuration -> Configure Your Computer -> Mount Points, or launch from shell:
    Code:
    mcc
    You should be able to mount CD/DVD-ROMs and floppies by default though.

    As far as the file editor is concerned, you have your choice of probably hundreds in Mandriva. For graphical editors I like Kate and KWrite, for CLI editors vi is king. By the way, 'vi' (or 'vim') is the ubiquitous editor on all UNIX platforms because it is lightweight and extremely powerful to use, but it does have a learning curve. If you are serious about Linux, I recommend you take a few minutes and learn the basics. It even comes with a tutor, just run
    Code:
    vimtutor
    from the shell, and you're off and going.

    -AT
     
  3. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    Hi

    I have to say I am getting more and more comfortable with Mandriva.
    It is very Window'ish but in a good way. Makes the 'move-over' a bit easier than Ubuntu (in my opinion anyway).

    I have no problem adding (mounting) drived but I still cannot write to the FAT32 partition I have mounted.

    What are the instructions following the mount command to allow me to write as well as read? In other words - what should come after this
    In fstab?
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    The GUI Way:
    Code:
    mcc
    ... ->Mount Points -> Create, delete and resize hard disk partitions -> Toggle Expert Mode -> (Click on partition to be mounted) -> Options -> (Uncheck 'ro' option)
    [​IMG]

    The CLI Way:
    Code:
    su - root
    vi /etc/fstab
    remove the option ro from the line in question. For instance, if it looked like this:
    Code:
    /dev/hdd1 /mnt/winnt fat32 notail,ro 1 2
    you would change it to look like this:
    Code:
    /dev/hdd1 /mnt/winnt fat32 notail 1 2
    ...you might want to also prevent any executables from being run from that partition for security's sake. In that case just replace ro with noexec and you're good to go.
     
  5. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    Hi

    Thanks for this, I much prefer the GUI way.
    All done now....
     

Share This Page