Tiny Core Base > Micro Core

NTFS not mounting as rw on boot

(1/2) > >>

Ares:
Hello everybody!

I am running microcore from a ntfs partition on a usb drive. I added tce boot code to enable persistence in that same ntfs partition, but the partition is mounted as read-only.

After reading some of the posts in the forum, I created ntfs-3g.gz (dynamic remaster) that contained:


* /mnt/builtin/optional/ntfs-3g.tcz
* /mnt/builtin/onboot.lst
I also added a startup script to ntfs-3g.tcz (/usr/local/tce-installed/ntfs-3g) that executes rebuildfstab, but it seems that the startup scripts are run late in tce-setup, when the drive has been already mounted (in function process_normal_tcedir).

Any ideas?

Thanks!

Rich:
Hi Ares

--- Quote from: Ares on February 19, 2020, 09:33:20 PM --- ... After reading some of the posts in the forum, I created ntfs-3g.gz (dynamic remaster) ...
--- End quote ---
Did you read this one:
http://forum.tinycorelinux.net/index.php/topic,19399.0.html

Ares:
Hi Rich,

Yes, I read that one (actually, l lost track on how many related posts I read  ;D) but it seems that what Lee mentioned does not apply anymore, or so it seems:


--- Quote ---However, if you use ntfs3g.gz (a secondary initrd) or remaster ntfs3g into core.gz, then ntfs3g will be present before the partition containing the tce directory is mounted.
--- End quote ---

ntfs-3g.gz (secondary init) indeed loads ntfs-3g, but it is not used to mount the ntfs partitions.

I can dismount and mount as read-write manually, but I would prefer it to be done automatically during boot.

Rich:
Hi Ares
The first script shown here looks like it will do what you are looking for:
http://yalis.fr/cms/index.php/post/2013/05/12/NTFS-and-modular-boot-for-TinyCore-Linux
I personally have not tried it. I run Linux on EXT file systems.

Rich:
Hi Ares
Something like this might work:

--- Code: ---tce-load -w squashfs-tools
tce-load -i squashfs-tools
wget http://tinycorelinux.net/10.x/x86/tcz/ntfs-3g.tcz
unsquashfs ntfs-3g.tcz
cd squashfs-root
sudo find | sudo cpio -o -H newc | gzip -2 > ../ntfs-3g.gz
cd ../
wget http://tinycorelinux.net/10.x/x86/release/distribution_files/core.gz
cat core.gz ntfs-3g.gz > core-ntfs-3g.gz
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version