kickstart fails when mounting partitions in "%pre" script on Red Hat Enterprise Linux 5.5

Solution Verified - Updated -

Issue

  • kickstart fails when using follwing "%pre" script.

    for part in `fdisk -l | grep -i Linux | egrep -iv "swap|raid" | awk '{print $1}' | sort`
    do
        echo -e "${blue}  Trying to rescue data from $part${gray}"
        mkdir -p /tmp/probedisk
        mount -o ro $part /tmp/probedisk
        umount /tmp/probedisk
        rmdir /tmp/probedisk
    done
    

Environment

  • Red Hat Enterprise Linux version 5.5

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.