karthikb23
August 31st, 2008, 01:37 PM
Hi,
I am attempting to fix the casper script to make my Ubuntu Hardy on USB persistence.
Despite numerous guides suggesting to drop the "mode" option during persistent disk mount, my ubuntu still boots without mounting the USB partitions.
A piece of code:
[COLOR="DarkGreen"] # Looking for "${root_persistence}" device or file
if [ -n "${PERSISTENT}" ]; then
cowprobe=$(find_cow_device "${root_persistence}")
if [ -b "${cowprobe}" ]; then
cowdevice=${cowprobe}
cow_fstype=$(get_fstype "${cowprobe}")
cow_mountopt="rw,noatime"
else
[ "$quiet" != "y" ] && log_warning_msg "Unable to find the persistent medium"
fi
fi
mount ${cowdevice} -t ${cow_fstype} -o ${cow_mountopt} /cow || panic "Can not mount $cowdevice on /cow"
I have tried a lot of times to get this working now, but to no avail.
I am really tired now.
Any help please? Why my Ubuntu Hardy still wont mount the USB drives on boot?
I am attempting to fix the casper script to make my Ubuntu Hardy on USB persistence.
Despite numerous guides suggesting to drop the "mode" option during persistent disk mount, my ubuntu still boots without mounting the USB partitions.
A piece of code:
[COLOR="DarkGreen"] # Looking for "${root_persistence}" device or file
if [ -n "${PERSISTENT}" ]; then
cowprobe=$(find_cow_device "${root_persistence}")
if [ -b "${cowprobe}" ]; then
cowdevice=${cowprobe}
cow_fstype=$(get_fstype "${cowprobe}")
cow_mountopt="rw,noatime"
else
[ "$quiet" != "y" ] && log_warning_msg "Unable to find the persistent medium"
fi
fi
mount ${cowdevice} -t ${cow_fstype} -o ${cow_mountopt} /cow || panic "Can not mount $cowdevice on /cow"
I have tried a lot of times to get this working now, but to no avail.
I am really tired now.
Any help please? Why my Ubuntu Hardy still wont mount the USB drives on boot?