SLES 11 SP2: Trying to permanently/automatically mount

Hi SLES community,

I’m a new user to SUSE and I wanted to figure out how to permanently/automatically mount a directory to a file system.

I’m using a VM of SLES. I have multiple HDDs created on this VM.

if I type lsblk in terminal I have this:

so the code I use to mount my directory is >> mount /dev/sdb /sma/photos

If I do this, I can temporary mount it to the point. When I restart, the mountpoint will be blank again.

Is there a way for me to permanently/automatic mount the directory?

Any help would be much appreciated.

I hope I posted in the right section. Thank you in advance.

Hi
Just add the entries to /etc/fstab following the info from the manual
mount.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.93-0.8-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

[QUOTE=malcolmlewis;17621]Hi
Just add the entries to /etc/fstab following the info from the manual
mount.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.93-0.8-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks![/QUOTE]

Thanks for the response, Malcolm.

Question how do I add it to fstab? fstab isn’t a directory I can get into. Additionally, what is the code for the manual mount?

On Fri, 22 Nov 2013 18:14:02 GMT, sma94539
sma94539@no-mx.forums.suse.com wrote:
[color=blue]

malcolmlewis;17621 Wrote:[color=green]

Hi
Just add the entries to /etc/fstab following the info from the manual
mount.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.93-0.8-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks![/color]

Thanks for the response, Malcolm.

Question how do I add it to fstab? fstab isn’t a directory I can get
into. Additionally, what is the code for the manual mount?[/color]

fstab is a file located in /etc. Use vi or whatever editor you
prefer.

Regards,
Ken

I see. Thanks Ken and Malcolm!!

I was able to have my directories auto mount even when I reboot.