How to mount CIFS share in %post script during Kickstart Installation of RHEL6?

Solution Verified - Updated -

Issue

  • Not able to mount CIFS share mentioned in %post script in kickstart file.
  • mount command fails out with following error message
mount.cifs kernel mount options: ip=aa.bb.cc.dd,unc=\\aa.bb.cc.dd\linux_share,guest,ver=1,user=,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Environment

  • Red Hat Enterprise Linux 6
  • Kickstarted installation

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content