Results 1 to 3 of 3

Thread: persistent home on captive ntfs

  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
  •  


Vintage S-100 California Computer Systems cards Z80 cpu + ADS  PromBlaster picture

Vintage S-100 California Computer Systems cards Z80 cpu + ADS PromBlaster

$895.00



🔥 RARE VINTAGE HP 2113A 21MX 1000 E-SERIES MINICOMPUTER CHASSIS BACKPLANE picture

🔥 RARE VINTAGE HP 2113A 21MX 1000 E-SERIES MINICOMPUTER CHASSIS BACKPLANE

$249.00



🔥 RARE VINTAGE HP 2112A 21MX M-SERIES 16-BIT MINICOMPUTER HP picture

🔥 RARE VINTAGE HP 2112A 21MX M-SERIES 16-BIT MINICOMPUTER HP

$299.99



Vintage Computer - PC Innovation Intel 486DX2 - Dos Ver 6.2 Windows 3.1 picture

Vintage Computer - PC Innovation Intel 486DX2 - Dos Ver 6.2 Windows 3.1

$250.00



Panasonic Toughbook CF-29 Vintage Computer - Not Working parts picture

Panasonic Toughbook CF-29 Vintage Computer - Not Working parts

$89.95



Vintage Microsoft Windows NT 3.51 Workstation 3.5 Floppy Big Box Complete No COA picture

Vintage Microsoft Windows NT 3.51 Workstation 3.5 Floppy Big Box Complete No COA

$139.99



HP 5060-8359 8K Semiconductor Memory Module 5080-9747 Vintage HP Computer picture

HP 5060-8359 8K Semiconductor Memory Module 5080-9747 Vintage HP Computer

$224.72



Vintage Radio Shack TRS-80 5.25

Vintage Radio Shack TRS-80 5.25" Floppy Disk Lot of 9 Single Sided Used

$49.99



Vintage Jetway J-620BF Socket 370 Celeron AT Motherboard SiS 620 Brand New picture

Vintage Jetway J-620BF Socket 370 Celeron AT Motherboard SiS 620 Brand New

$75.00



Vintage Hewlett Packard HP 13181-60074 Circuit Card Assembly / Interface Board. picture

Vintage Hewlett Packard HP 13181-60074 Circuit Card Assembly / Interface Board.

$135.37