-

Originally Posted by
nayr
did you unmount the captive partition when you were done??
I followed the exact same procedure for captive-ntfs as it was for vfat in the script files.
Still while booting up I get an error message.
Here is a bigger portion of my knoppix-autoconfig:
if [ -n "$MYHOMEDIR" ]; then
if trymount "$MYHOMEDEVICE" "$MYHOMEMOUNTPOINT"; then
[ -f "$MYHOMEMOUNTPOINT/knoppix.img" ] && MYHOMEDIR="$MYHOMEMOUNTPOINT/knoppix.img"
while read device mountpoint fs relax; do
case "$mountpoint" in *$MYHOMEMOUNTPOINT*)
case "$fs" in *[Nn][Tt][Ff][Ss]*)
# umount "$MYHOMEMOUNTPOINT"; echo " ${RED}ERROR: WON'T MOUNT NTFS FILESYSTEM ON $MYHOMEDEVICE READ/WRITE!"
#break
# Note: This currently won't work with encrypted partitions
umount "$MYHOMEMOUNTPOINT"; mount -t captive-ntfs -o rw,uid=knoppix,gid=knoppix,umask=002 "$MYHOMEDEVICE" "$MYHOMEMOUNTPOINT"
echo " ${RED}Mounting NTFS during autoconfig"
;;
*[Ff][Aa][Tt]*)
# Note: This currently won't work with encrypted partitions
umount "$MYHOMEMOUNTPOINT"; mount -t vfat -o rw,uid=knoppix,gid=knoppix,umask=002 "$MYHOMEDEVICE" "$MYHOMEMOUNTPOINT"
if [ ! -f "$MYHOMEDIR" ]; then
echo " ${RED}WARNING: FAT32 is not a good filesystem option for /home/knoppix (missing socket/symlink support).${NORMAL}"
echo " ${RED}WARNING: Better use an ext2 loopback file on this device, and boot with home=$MYHOMEDEVICE/knoppix.img.${NORMAL}"
fi
;;
esac
if mount -o remount,rw "$MYHOMEMOUNTPOINT"; then
echo -n " ${GREEN}Mounting ${YELLOW}$MYHOMEDIR${GREEN} as ${YELLOW}/home/knoppix${GREEN}... "
if [ -f "$MYHOMEDIR" ]; then
# It's a loopback file, mount it over the /home/knoppix directory
trymount "$MYHOMEDIR" /home/knoppix
RC="$?"
[ "$RC" = "0" ] && ERROR="$(mount -o remount,rw /home/knoppix 2>&1)"
RC="$?"
else
# Do a --bind mount
ERROR="$(mount --bind "$MYHOMEDIR" /home/knoppix 2>&1)"
RC="$?"
fi
[ "$RC" = "0" ] && echo "${GREEN}/home/knoppix mounted OK.${NORMAL}" || { echo "${RED}FAILED."; echo "$ERROR${NORMAL}"; }
fi
break
;;
esac
done <<EOT
$(cat /proc/mounts)
EOT
fi
fi
Similar Threads
-
By eco2geek in forum General Support
Replies: 4
Last Post: 05-05-2006, 12:13 AM
-
By mattperkins26 in forum MS Windows & New to Linux
Replies: 2
Last Post: 02-10-2005, 01:05 PM
-
By itaydagani in forum MS Windows & New to Linux
Replies: 3
Last Post: 02-02-2005, 12:53 AM
-
By terminator in forum General Support
Replies: 0
Last Post: 05-12-2004, 10:52 PM
-
By arkaine23 in forum Customising & Remastering
Replies: 0
Last Post: 02-17-2004, 12:38 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server
$349.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$381.93

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$308.00

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700
$289.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$169.99

Dell Server Drive and 3.5" Cradle. 960GB SSD Enterprise
$300.00