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, 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