Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all, I have an extra drive on an ITE controller which I can mount with the command 'mount /dev/hdf5 /mnt/ARCHIVE' (the drive is named archive). I can then open ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User martinfromdublin's Avatar
    Join Date
    Dec 2004
    Location
    Dublin, Rep. of Ireland
    Posts
    445

    Permanent mounting of drives/partitions


    Hi all,

    I have an extra drive on an ITE controller which I can mount with the command 'mount /dev/hdf5 /mnt/ARCHIVE' (the drive is named archive). I can then open it thorugh the 'mnt' folder in my home directory. What I would like to do is permanently mount it so it is mounted on start-up and I can create a link on my desktop to it like I can with my other drives/partitions.

    How do I do this? I was once talked through it in the IRC channel (I miss that facility )but never wrote down the instructions.

    Martin
    LINUX: Where do you want to go.......Tomorrow!

    Registered Linux user 396633

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    In /etc/fstab, add a line like this:
    Code:
    /dev/hdf5    /mnt/ARCHIVE    auto    defaults    0    0
    If you know the filesystem type, you can replace auto with that.
    Stand up and be counted as a Linux user!

  3. #3
    Linux User martinfromdublin's Avatar
    Join Date
    Dec 2004
    Location
    Dublin, Rep. of Ireland
    Posts
    445
    Hi Zelmo,

    Sorry but I'm hopeless with the command line, how do I access and modify the ect/fstab from the command line in a root console?

    Martin
    LINUX: Where do you want to go.......Tomorrow!

    Registered Linux user 396633

  4. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    If you would prefer to access the file using a graphical editor, try one of the following:

    For KDE:
    Code:
    kdesu kwrite /etc/fstab
    For GNOME:
    Code:
    gksu gedit /etc/fstab
    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  5. #5
    Linux User martinfromdublin's Avatar
    Join Date
    Dec 2004
    Location
    Dublin, Rep. of Ireland
    Posts
    445
    That seemed to work at first, but now none of my drives seem to be mounted. When I went to closed the terminal window, there were loads of error messages about files types being invalid,unfortunately I closed the window without copying it. But heres the etc/sfstab file,

    /dev/hda10 / ext2 defaults 1 1
    none /dev/pts devpts mode=0620 0 0
    /dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec 0 0
    /dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec 0 0
    none /mnt/hd supermount dev=/dev/ide/host0/bus0/target1/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,kudzu,codepage=850 0 0
    /dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
    /dev/hdb1 /mnt/win_c2 vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
    /dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
    /dev/hdf1 /mnt/archive vfat defaults 0 0
    /dev/hdf5 /mnt/archive1 vfat defaults 0 0
    none /proc proc defaults 0 0
    /dev/hda7 swap swap defaults 0 0

    Each time I try to open my files via the desktop I'm told only root can mount that drive

    Martin

    EDIT: It's okay, I fixed it.I removed the line referring to hdf1, that's an extra copy of XP I run and is not important. Once I took that away and saved the changes, then manually remounted everything,all was well.But if you can see the cause in the bootloader I posted will you enlighten me as I don't know what it was that created the conflict.
    LINUX: Where do you want to go.......Tomorrow!

    Registered Linux user 396633

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •