Results 1 to 3 of 3

Thread: persistent home on captive ntfs

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2004
    Posts
    6

    persistent home on captive ntfs

    Am trying to make persistent home on ntfs partition.

    Made the following changes:

    1. edit /etc/init.d/knoppix-autoconfig

    added the following :

    case "$fs" in *[Nn][Tt][Ff][Ss]*)
    # umount "$MYHOMEMOUNTPOINT"; echo " ${RED}ERROR: WON'T MOUNT NTFS FILESYSTEM ON $MYHOMEDEVICE READ/WRITE!"
    #break
    umount "$MYHOMEMOUNTPOINT"; mount -t captive-ntfs -o rw,uid=knoppix,gid=knoppix,umask=002 "$MYHOMEDEVICE" "$MYHOMEMOUNTPOINT"


    2. edited /usr/sbin/rebuildfstab

    added the following :
    case "$fstype" in
    ntfs) options="${options},rw,umask=000" ;;
    swap) options="defaults" ;;
    esac

    case "$fstype" in
    ntfs)
    [ -n "$user" ] && options="$options,uid=$user"
    [ -n "$group" ] && options="$options,gid=$group"
    echo "$ADDEDBYKNOPPIX"
    echo "$device $mountpoint captive-ntfs $options 0 0"
    ;;
    esac

    3. edited /usr/sbin/mkpersistenthome

    and commented out
    # mount | grep -q "$DIRECTORY.*ntfs" && { $DIALOG --cr-wrap --title "$TITLE1" --msgbox "$ERROR NTFS" 10 75; bailout; }

    4. Installed captive-ntfs support in chroot envirnment

    Finally when I boot the remastered CD, the captive-ntfs support is there. and am able to create persistenthome image on ntfs partition. But when rebooting, I get an error messages saying that /dev/hdax whiich is my ntfs partition, is already mounted.

    What am I missing?

  2. #2
    Junior Member registered user
    Join Date
    Jun 2004
    Posts
    14
    did you unmount the captive partition when you were done??

  3. #3
    Junior Member
    Join Date
    May 2004
    Posts
    6
    Quote 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

  1. Persistent home from NTFS works in Knoppix 3.8.1
    By eco2geek in forum General Support
    Replies: 4
    Last Post: 05-05-2006, 12:13 AM
  2. Persistent home and NTFS
    By mattperkins26 in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 02-10-2005, 01:05 PM
  3. Captive NTFS on Knoppix 3.6 and WInXP / NTFS hard drive
    By itaydagani in forum MS Windows & New to Linux
    Replies: 3
    Last Post: 02-02-2005, 12:53 AM
  4. captive ntfs - mount ntfs (reade/write) through icon
    By terminator in forum General Support
    Replies: 0
    Last Post: 05-12-2004, 10:52 PM
  5. Persistent home possible with captive NTFS?
    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
  •  


Western Digital WD Blue 3D NAND 500GB 2.5in SATA III Internal SSD WDS500G2B0A picture

Western Digital WD Blue 3D NAND 500GB 2.5in SATA III Internal SSD WDS500G2B0A

$34.99



SSD 880EVO SATA III 2.5 4TB INTERNAL STATE DRIVE picture

SSD 880EVO SATA III 2.5 4TB INTERNAL STATE DRIVE

$214.99



Samsung 860 EVO 250GB SSD MZ-76E250 2.5

Samsung 860 EVO 250GB SSD MZ-76E250 2.5" SATA III Solid State Drive

$39.99



Kingston 128GB M.2 SATA III SSD  picture

Kingston 128GB M.2 SATA III SSD

$13.00



Crucial MX500 500GB 2.5

Crucial MX500 500GB 2.5" SATA III Internal SSD CT500MX500SSD1

$52.99



Samsung 860 EVO 500GB 2.5

Samsung 860 EVO 500GB 2.5" SATA III SSD MZ-76E500 MZ7LH500HALU

$50.00



2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON picture

2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON

$28.80



Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD picture

Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD

$129.99



KingSpec SSD 2.5

KingSpec SSD 2.5" SATA3 Internal Solid State Drive for PC,Laptop,Mac

$60.00



Samsung 850 EVO 250GB SATA III 2.5

Samsung 850 EVO 250GB SATA III 2.5" Internal SSD (MZ7LN250HMJP) dell Lenovo hp

$32.99