Unable to write persistant files to HDD
:( I'm running Knoppix 3.8 Live CD on a Win95 Pentium 200MHz pc. I have only 64 meg of ram.
I'm running in text mode to conserve memory. Trying to make a swapfile. The mkdosswap will not create it. See posting in Boot/Hardware problems - Unable to create swapfile. I've tried all recomendations and nothing works.
This is the sequence:
dd if=/dev/zero of=/mnt/hda1/swap bs=1M count=65
ls -l shows the swap file was created on /mnt/dev/hda1
it appears as though the file was created but I did not see any action on the HDD led.
When I reboot Knoppix in text mode the file is gone. ls -l now shows Total 0.
Why can't I write a file to the hard drive? /mnt/had1 is the fat32 partition is it not?
The docs with knoppix indicate that the knoppix.swp file can be deleted after terminating knoppix. Why can I not see this file under Windows? Where are the files I'm creating written if not to the HDD?
Re: Unable to write persistant files to HDD
Quote:
Originally Posted by Ham13
:( I'm running Knoppix 3.8 Live CD on a Win95 Pentium 200MHz pc. I have only 64 meg of ram.
I'm running in text mode to conserve memory. Trying to make a swapfile. The mkdosswap will not create it. See posting in Boot/Hardware problems - Unable to create swapfile. I've tried all recomendations and nothing works.
This is the sequence:
dd if=/dev/zero of=/mnt/hda1/swap bs=1M count=65
ls -l shows the swap file was created on /mnt/dev/hda1
it appears as though the file was created but I did not see any action on the HDD led.
When I reboot Knoppix in text mode the file is gone. ls -l now shows Total 0.
Why can't I write a file to the hard drive? /mnt/hda1 is the fat32 partition is it not?
The docs with knoppix indicate that the knoppix.swp file can be deleted after terminating knoppix. Why can I not see this file under Windows? Where are the files I'm creating written if not to the HDD?
/mnt/hda1 "is" the fat32 partition only after you have mounted the partition. Before that it's just a normal directory and everything you put there will disappear when you reboot.
So what you need to do is:
Code:
mount /dev/hda1 /mnt/hda1
dd if=/dev/zero of=/mnt/hda1/knoppix.swp bs=1M count=65
sync
umount /mnt/hda1
Explanation:
1. mount-command makes the hda1-partition available at /mnt/hda1 directory
2. dd creates the swapfile.
3. sync-command waits until that file has been fully written to the HD.
4. umount-command "unmounts" the hda1-partition so that you can reboot safely.