Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi I am very new to linux, I have just installed Oracle Enterprise Linux. (which i believe is build on redhat). This copy of linux is installed on one hard ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    16

    Mount SSD

    Hi I am very new to linux,

    I have just installed Oracle Enterprise Linux. (which i believe is build on redhat).

    This copy of linux is installed on one hard drive, in the system there is another hard drive and also an SSD.

    How can I mount the SSD and other hard drive so that I can read and write to them?

    Unlike Windows, they dont simply appear under 'my computer'

    Any help would be appriciated

  2. #2
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Hello and welcome to the forums!

    You'll need to add entries for them in the /etc/fstab file. Note that you'll need root permissions to edit that file. You can check this wiki page for some help with configuring the fstab file. It was written for Arch but most of it should apply to other distributions as well:

    Fstab - ArchWiki

    If you have any NTFS filesystems on the extra drives, you will need to install ntfs-3g if it isn't installed already.

    You might want to also use the "discard" option in the entry for the SSD if it supports TRIM. More on that here:

    Solid State Drives - ArchWiki
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    16
    cheers, the only drive i need to get recognised is the solid state, ...

    its used with a different ubuntu installation (its actually used foran ingres database file) ... the drive is formatted as ext4 or ext3 ... this should be a problem should it?

  4. #4
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by dsub42 View Post
    ... the drive is formatted as ext4 or ext3 ... this should be a problem should it?
    My SSDs are all formatted ext4 and I've chosen to keep journaling enabled. They seem to be working fine and TRIM appears to be working properly.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    16
    hi I have looked at the link you sent, but it doesnt really mention how to mount / get linux to actually recognise the drive .... im useless with linux commands (never used linux before)

    but ...

    when im logged in as root, and i use the command "blkid" .. the ssd is shown as ..

    /dev/sdc1 TYPE="ntfs"
    /dev/sdc2 LABEL = "SSD" UUID= "a2ace52e....." TYPE = "ext4"


    Can someone help me please ... what commands do I need to run to get this drive mounted?

  6. #6
    Just Joined!
    Join Date
    Aug 2010
    Posts
    16
    I have created a directory using the following command ..

    sudo mkdir /media/ssd

    but now how do I mount the actual drive here?

  7. #7
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    For fstab you would add an entry like

    But if that is the goal, you'd add an entry like
    Code:
    /dev/sdc2 /media/ssd ext4 defaults 0 2
    You could replace /dev/sdc2 with the UUID as well
    Code:
    UUID=a2ace52e....
    Of course using the full UUID.

    While I used your example mount point of /media/ssd, I wouldn't actually put it there. The /media directory is used when the system automounts drives. The /mnt directory is probably a better place for your custom mount points.

    Once you have the fstab entry, do
    Code:
    su -c 'mount -a'
    If you're not looking to always have the drive mounted, you can just use the mount command
    Code:
    su -
    mount /dev/sdc2 /mnt/ssd
    Replacing /mnt/ssd with whatever mount point you do decide on.

  8. #8
    Just Joined!
    Join Date
    Aug 2010
    Posts
    16
    I think the first command on your post didnt show...

    when im logged in as root and i use the following command:

    su - mount /dev/sdc2 /mnt/ssd

    I get the response:

    su: user mount does not exist.....

    Any ideas?

    - I want to perminantly mount the drive for all users of the system, so that they have read and write permissions to the drive...

    What command would I use for this?

  9. #9
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by dsub42 View Post
    when im logged in as root and i use the following command:

    su - mount /dev/sdc2 /mnt/ssd

    I get the response:

    su: user mount does not exist.....

    Any ideas?
    It's not wise to actually log in as root user, but if you already have root permissions, you don't need to add the su -.

    Note, too, that su - is one command, and mount /dev/sdc2 /mnt/ssd is a separate command that should be entered on a new line.

    More on using the command line with Linux here:

    LinuxCommand.org: Learn the Linux command line.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  10. #10
    Just Joined!
    Join Date
    Aug 2010
    Posts
    16
    Thanks ..

    Im struggelling with the following though...

    what command would I use to perminantly mount the drive for all users of the system, so that they have read and write permissions to the drive...

    Anyone?

Page 1 of 2 1 2 LastLast

Posting Permissions

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