WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: (中文) How can I automatically load all partitions when tinycore starts?  (Read 382293 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #90 on: January 19, 2022, 01:22:27 AM »
Hi polikuo
It seems no matter what I try, I can't change  iocharset  on a mounted vfat drive.
Using the  remount  option ignores  iocharset , though it does honor the  rw  and  ro  flags.
Mounting the partition a second time to a new mountpoint ignores  iocharset.
I'm starting to think it's not possible.

Online polikuo

  • Hero Member
  • *****
  • Posts: 736
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #91 on: January 19, 2022, 01:37:54 AM »
It seems no matter what I try, I can't change  iocharset  on a mounted vfat drive.
Hi Rich.
I couldn't remount with iocharset either.
The only way I could think of without remastering is detailed in my previous post.
OK, I managed to mount all the partitions onboot.
No remastering required.
...
I had to use copy2fs in order to unmount the partition safely.
It's doable with /opt/bootlocal.sh
Now I'm thinking, would it be better if I edit /opt/bootsync.sh instead.
Considering that, /opt/bootsync.sh halt a little until the partition is remounted.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #92 on: January 19, 2022, 01:47:35 AM »
Hi polikuo
I suppose the other thing that might work is:
1. Boot base norestore
2. Unmount and remount the partition with desired options.
3. In bootsync, load extensions, for F in `cat onboot.lst`; do tce-load $F; done
4. In bootsync, do restore, filetool.sh -r

Offline gadget42

  • Hero Member
  • *****
  • Posts: 800
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #93 on: January 19, 2022, 01:55:26 AM »
not sure this would help but maybe worth a read regarding vfat and dosfstools?

https://www.golinuxcloud.com/linux-mount-command-iso-usb-network-drive/#USB_Drive_with_FAT32_or_vFAT_File_System
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Online polikuo

  • Hero Member
  • *****
  • Posts: 736
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #94 on: January 19, 2022, 02:09:23 AM »
Hi Rich.
The thing is, the default mount, busybox version, doesn't support that option.
With bootcode "base norestore" the system always goes into prompt.
That's fine for us experienced users, but I doubt the OP would be happy with that.
Further more, with those bootcodes, everything is in its default form.
No modified bootsync.sh or bootlocal.sh.

After reviewing the post, I think there's a better solution.
The OP says he has several partitions.
It's fine to put his tce directory in his other linux distro partition.
Then he only has to put the distribution files (vmlinuz64, corepure64.gz) in that FAT partition so his bootloader can find them and assign tcedir via the bootcode.
Now the locked partition is a ext4 one, he can just mount those windows partitions however he likes.
Everything should be fine.
« Last Edit: January 19, 2022, 02:17:43 AM by polikuo »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #95 on: January 19, 2022, 02:11:56 AM »
Hi gadget42
No, the vfat driver is built into the kernel.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #96 on: January 19, 2022, 02:15:34 AM »
Hi polikuo
That certainly sounds simpler than trying to force a square peg into a round hole.

Online polikuo

  • Hero Member
  • *****
  • Posts: 736
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #97 on: January 19, 2022, 02:18:07 AM »
Hi Rich

The questions now remains are, does ext4 support UTF-8 with this setting ?

Are there UTF-8 documents in his ext4 partition ?

Offline liuzhaoyzz

  • Jr. Member
  • **
  • Posts: 75
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #98 on: January 19, 2022, 09:30:32 AM »
Hi polikuo
It seems no matter what I try, I can't change  iocharset  on a mounted vfat drive.
Using the  remount  option ignores  iocharset , though it does honor the  rw  and  ro  flags.
Mounting the partition a second time to a new mountpoint ignores  iocharset.
I'm starting to think it's not possible.

我用我前面修改过的rebuildfstab,可以实现tinycore放在FAT32分区,开机后,FAT32分区有iocharset参数啊,启动后会自动挂载,中文文件名字和文件夹没有乱码。
就是只修改82行为以下内容:    vfat|msdos) OPTIONS="${OPTIONS},umask=000,iocharset=utf8" ;;


但是仅限于Tinycore所在的那个FAT32分区会被自动挂载上去,其他分区不能自动挂载上,需要手工挂载,用polikuo写的脚本或者tcz可以。

Offline liuzhaoyzz

  • Jr. Member
  • **
  • Posts: 75
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #99 on: January 19, 2022, 09:39:09 AM »
Hi Rich

The questions now remains are, does ext4 support UTF-8 with this setting ?

Are there UTF-8 documents in his ext4 partition ?

我把tinycore放在EXT4分区,bootcode加载了locale=zh_CN.UTF-8,安装了notocjk-regular-fonts-ttc中文字体,安装了getlocale.tcz,运行
sudo getlocale.sh,选择了zh_CN.UTF-8
xfe文件管理器中,中文文件夹和文件名字都是正常显示的。

ext4分区是tinycore开机启动后自动挂载的,因为vmlinuz64和corepure64.gz在这个分区上面。

但是我不想用ext4分区,因为他们在windows下面难以访问,我除了尝试linux,我还有windows系统呢。
paragonextfs,感觉对于ext4分区访问,在虚拟机中文件感觉不会实时更新。

Offline liuzhaoyzz

  • Jr. Member
  • **
  • Posts: 75
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #100 on: January 19, 2022, 09:47:42 AM »
Hi Rich

The questions now remains are, does ext4 support UTF-8 with this setting ?

Are there UTF-8 documents in his ext4 partition ?

链接: https://pan.baidu.com/s/18oFGYPSLkSt4STcGixeU8A?pwd=gpjs 提取码: gpjs
你看下上面的截图,/mnt/sdc3是ext4分区,挂载的option是noauto,users,exec,不需要iocharset参数,iocharset参数好像FAT32/NTFS才需要,特别是FAT32分区,好像必须要iocharset参数,NTFS可能不要也行,但是加上最好。
« Last Edit: January 19, 2022, 09:50:04 AM by liuzhaoyzz »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #101 on: January 19, 2022, 10:40:24 AM »
Hi polikuo
ext4  uses the systems  locale.

Online polikuo

  • Hero Member
  • *****
  • Posts: 736
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #102 on: January 19, 2022, 10:43:08 AM »
但是我不想用ext4分区,因为他们在windows下面难以访问,我除了尝试linux,我还有windows系统呢。
paragonextfs,感觉对于ext4分区访问,在虚拟机中文件感觉不会实时更新。
You've obviously misunderstood what we're talking about.
You can keep the distribution files in your FAT partition.
Just the tce directory along with the "optional" one inside.
Then specify the location of the tce directory with your "cheatcode".
Like all the other linux distro, the bootloader can be put into a dedicated partition.
How does your grub.cfg look like now after all the adjustments ?

你顯然誤會我們的意思了,我沒要你把vmlinuz64跟corepure64.gz拿出來。
我只要你的tce資料夾,還有它裡面的optional資料夾,套件都放這。
再從grub2指定資料夾位置即可。
就像其他linux發行版,大家都可以設定獨立的bootloader分割槽(分區)。
經過前面各種改動後,你現在的grub.cfg長怎樣 ?

Online polikuo

  • Hero Member
  • *****
  • Posts: 736
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #103 on: January 19, 2022, 10:44:11 AM »
Hi polikuo
ext4  uses the systems  locale.
Thanks for the info, Rich.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: (中文) How can I automatically load all partitions when tinycore starts?
« Reply #104 on: January 19, 2022, 10:59:47 AM »
Hi polikuo
Based on reply #99, it sounds like installing Tinycore to ext4 with proper locale works. Once installed, a separate
VFAT partition could be created and mounted with any parameters desired to be used for file sharing with Windows.