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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.