Results 1 to 5 of 5

Thread: saving changes to /etc/fstab

  1. #1

    saving changes to /etc/fstab

    Okay, I'm very new, less than 24 hours. I found an article about using captive ntds with 3.6 that includes making changes to /ets/fstab
    I cannot save the changes. I've been round and round with permissions, but it seems as if I'm trying to make changes to the cd. Can anyone please tell me what I'm missing?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568
    I wouldn't put a captive-ntfs-mounted drive in fstab. I'd mount it manually. A known bug listed on the Captive site says that writes aren't committed during machine shutdown. But that's your choice.*

    Within KDE, bring up a terminal.
    su
    cd /etc
    mcedit fstab
    (make your changes and save it)

    Then if you use the "Save KNOPPIX configuration" command off the Knoppix menu, and reload your saved configs the next time you reboot, Knoppix will use your modified fstab.

    * Matter of fact, 90% of the time I have no luck getting files I edit on my NTFS partition to "stick". They edit and save OK, but I switch back to Windows and the changes haven't been committed. Hope your luck is better.

  3. #3
    Thanks for the tip. However, I can't make the ntfs partition writeable no matter what I do. The following is an article I found on a linux forum. I tried exactly what was prescribed with no results. Then I noticed if I added the user "captive" with the default id of 1001, a corresponding group was added with id of 1002. No change. I downloaded the ntfs drivers from the service pack 1a, then tried the following mounting method and then tried mounting manually. I tried editing fstab by changing only ro to rw. I am now out of ideas and would appreciate any help. Thanks.


    Solution! for V3.6-2004-08-16

    The problem is that the user "captive" and group "captive" have been removed accidentally in V3.6. One has to recreate them; I copied settings from KnxV3.4-2004-05-17-EN for use in procedure below.

    Penguin Menu:Root Shell
    passwd
    (set to your choice)

    KDE Menu:System:KUser
    (enter passwd)
    OK
    Adduser Button: captive
    userID: 108 (same as v3.4)
    login shell: /bin/false
    home folder: /var/lib/captive
    uncheck all three boxes (in reverse order to avoid greying out)
    Groups Tab
    Primary Group: nogroup
    OK
    AddGroup Button:
    Group name: captive
    Group number: 116 (not same as V3.4, but close by.)
    SAVE
    Dialog 'no shadow entry for captive': OK

    Penguin Menu: Utilities:Captive NTFS
    Follow menu directions; get XP drivers from your hard drive, or download them; Win 2k drivers won't work.

    Penguin Menu:Root Shell
    mkdir /mnt/hda1 (or whatever you like)
    mount -t /dev/hda1 /mnt/hda1

    Lastly, there's couple in's and out's for accessing the drive:
    I edited the lines in /etc/fstab to look like: (changed ntfs to captive-ntfs and ro to rw)

    # Added by KNOPPIX
    /dev/hda1 /mnt/hda1 captive-ntfs noauto,users,exec,rw,umask=000,uid=knoppix,gid=kno ppix 0 0

    Next, right clik on kde desktop icon:Propertiesevice:uncheck Read Only
    Now you can open the drive by clicking this icon in Konqueror and read/write as you like.

    Lastly, REMEMBER to unmount the drive before quitting or your changes may be lost and not copied from the sandbox data area to be written to the hard drive.

  4. #4
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981

    Re: saving changes to /etc/fstab

    Quote Originally Posted by masimar
    Okay, I'm very new, less than 24 hours.
    I saw a tag once that read "proudly using Linux since last Tuesday". Guess that fits.

    I don't know much about captive ntfs but I did a search & found this:

    http://www.knoppix.net/forum/viewtopic.php?t=11736

    Hope it helps.

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568
    Here's what greenfly (aka Kyle Rankin) recommends in Knoppix Hacks: After you've installed the Captive drivers, mount the drive with the command

    sudo mount -t captive-ntfs -o uid=knoppix,gid=knoppix /dev/hda1 /mnt/hda1

    replacing "hda1" with whatever your NTFS partition is. Then the partition's writeable by the regular Knoppix user (which is the real trick here). Of course, you can't have hda1 mounted already.

    Then to unmount it and save changes to the disk, use the command

    sudo umount /mnt/hda1

    Please post your success rate with Captive -- I have Win2K on an NTFS partition, and although using Captive hasn't harmed my drive, more often than not the files I edit using Captive haven't changed the next time I examine them in Windows.

Similar Threads

  1. Problem when moving New Fstab to the Old Fstab to fix Suse
    By cheetahman in forum General Support
    Replies: 19
    Last Post: 03-21-2005, 11:58 AM
  2. Replies: 3
    Last Post: 11-16-2004, 02:16 AM
  3. help me fix my fstab
    By DimGR in forum Hardware & Booting
    Replies: 8
    Last Post: 05-29-2004, 04:48 AM
  4. etc/fstab: what should be in it?
    By digiSal in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 12-19-2003, 04:41 PM
  5. fstab
    By rmayer1 in forum Hdd Install / Debian / Apt
    Replies: 15
    Last Post: 03-23-2003, 08:17 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
  •  


Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1625.00



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

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

$275.00



Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed picture

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed

$49.99



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



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

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

$409.99



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

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

$378.93



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

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

$308.00



2U AI MINING SERVER 2x Xeon 36 cores 2.3Ghz DDR4 2x NVIDIA V100 GPU PCIe 2PS USA picture

2U AI MINING SERVER 2x Xeon 36 cores 2.3Ghz DDR4 2x NVIDIA V100 GPU PCIe 2PS USA

$799.00



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00