Fedora Linux Support Community & Resources Center
  #1  
Old 30th May 2012, 05:22 AM
wwhheerree Offline
Registered User
 
Join Date: May 2012
Location: Shanghai
Posts: 1
windows_7ie
KickStart PostInstall Script Mount CIFS Problem

Hi Guys, I find a strange problem of KickStart post script when installing RHEL 6.2 from PXE server.

I have the following command in post script. It will mount a Windows share folder and copy its content to "/opt/folder".

%post

ifconfig >> /root/log.txt
mkdir /mnt/folder
mkdir /opt/folder
mount -t cifs -o username=XXX,passwd=XXX //192.168.100.100/folder/ /mnt/folder
cp -r /mnt/folder/* /opt/folder/

%end

This script show the following error when I install RHEL 6.2 from PXE. I dump IP to log.txt and eth0 IP address is correct. The same script works find in RHEL 6.1 PXE installation

mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Does anyone have any clue? Many thanks!! I've been struggling on this problem.

---------- Post added at 04:22 AM ---------- Previous post was at 02:44 AM ----------

I search google and find one similar problem (http://serverfault.com/questions/203...ter-reboot-why)

Then I add "modprobe cifs" before mounting. But still have the same problem. I doubt some services are not started druing post installation for RHEL 6.2.
Reply With Quote
Reply

Tags
cifs, kickstart, mount, post script, postinstall, problem, pxe install, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 16 Kickstart PostInstall, start service on chroot Freesat Installation and Live Media 1 25th February 2012 04:18 PM
F15 KickStart PostInstall Script Mount CIFS Problem TiggerFish Installation and Live Media 3 7th September 2011 10:36 AM
F15 kickstart problem re. postinstall script & installing rpms zack_dingbat Installation and Live Media 0 15th June 2011 11:35 AM
Fedora 10 Kickstart postinstall script i2ambler Installation and Live Media 0 6th March 2009 10:34 PM
Mount.cifs problem daniel_owen_uk Servers & Networking 4 30th March 2006 03:29 PM


Current GMT-time: 06:20 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat