Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #67797
| Path | csiph.com!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | 陈添来 <chentianlai@126.com> |
| Newsgroups | linux.debian.kernel |
| Subject | debian's initrd should support ntfs |
| Date | Wed, 19 Aug 2020 07:10:02 +0200 |
| Message-ID | <AFowh-7fb-11@gated-at.bofh.it> (permalink) |
| X-Mailbox-Line | From debian-kernel-request@lists.debian.org Wed Aug 19 05:06:09 2020 |
| Old-Return-Path | <chentianlai@126.com> |
| X-Amavis-Spam-Status | No, score=-0.079 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, CHARSET_FARAWAY_HEADER=0.02, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5.5 |
| X-Greylist | delayed 1847 seconds by postgrey-1.36 at bendel; Wed, 19 Aug 2020 04:49:09 UTC |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=Gu06y KE9YCgC+VYiOm2nyFdzApdSuuAUE2snXEsAgJc=; b=f00h4YCC1irXUa/Ux8tjm kPkEmRYk7mR9xdx0Dfb2CbRDMCqhvx1KDXlujjTwkWFbYZVfL+RFWxxu59UxCmJw R1WoiJUt7wsAZ8RySbEDORFYEJF9/gCLTd1JadILlgzd8EAj2cie2sywZ2EepW5g 7+tuWqxmpIvBgoeE8sbnvk= |
| X-Originating-IP | [116.17.181.113] |
| X-Mailer | Coremail Webmail Server Version XT5.0.10 build 20190724(ac680a23) Copyright (c) 2002-2020 www.mailtech.cn 126com |
| X-Cm-Ctrldata | 2wjCFWZvb3Rlcl9odG09NTUwNDo1Ng== |
| Content-Type | multipart/alternative; boundary="----=_Part_36108_572661233.1597810696679" |
| MIME-Version | 1.0 |
| X-Coremail-Locale | zh_CN |
| X-Cm-Transid | IcqowAD3_48IqDxfo_bmAA--.15707W |
| X-Cm-Senderinfo | hfkh03xldqztbl6rjloofrz/1tbi6BeFslpEBWAAEwABsh |
| X-Coremail-Antispam | 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== |
| X-Mailing-List | <debian-kernel@lists.debian.org> archive/latest/124948 |
| List-ID | <debian-kernel.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-kernel/> |
| List-Archive | https://lists.debian.org/msgid-search/7f66e90e.26f2.17404f061e7.Coremail.chentianlai@126.com |
| Approved | robomod@news.nic.it |
| Lines | 189 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Wed, 19 Aug 2020 12:18:16 +0800 (CST) |
| X-Original-Message-ID | <7f66e90e.26f2.17404f061e7.Coremail.chentianlai@126.com> |
| Xref | csiph.com linux.debian.kernel:67797 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Thank you.
I am chen,a Chinese.
"findiso=/a.iso" is I writed,just to test live-boot how to do when a.iso is not existing, sorry.
You are not a part of debian,but are you part of live-boot packages?live-boot's function 'is_supported_fs' should add one statement,'if test "$fstype" = "ntfs" -a -e /sbin/mount.ntfs -a -e /bin/ntfs-3g;then return 0;fi '.
ntfs-3g's command is /bin/ntfs-3g,and /sbin/mount.ntfs (also /sbin/mount.ntfs-3g) is a soft link to /bin/ntfs-3g.when user installed ntfs-3g,it's /var/lib/dpkg/ntfs-3g.postinst will auto remake initrd.img (call update-initramfs),include live-boot'script in new initrd.img,but,when live-boot not change it's code of function 'is_supported_fs',new initrd.img will boot failed on ntfs.All live-boot need to do is add one statement to it.
Thank you for reply.I will report bugs to debian development.
And,I write a mail to you ,say,'debian live-boot mount /dev/sda1 (where is iso image place,'boot=live,findiso=/abc.iso') in "ro" mode',I am sorry,I am wrong,when I boot into debian,/dev/sda1 is mount in "rw" mode',I am sorry that.
debian initrd live-boot 's prompt is so bad (sorry,have a bug).
when debian initrd live-boot boot failed,it go into a busybox sh whith "(initramfs)",and say "Unable to find a medium containing a live file system",it is bad prompt.because you should point out where is the mountpoint.
It should say "Unable to find a medium containing a live file system,please mount squashfs filesystem(cdrom or iso image /live/filesystem.squashfs) on /run/live/medium,ex:'mount /dev/sda5 /mnt/sda5 -t ntfs (you must add '-t ntfs' to command);mount /mnt/sda5/os/debian/debian-live-10.2.iso /run/live/medium/ -t iso9660 (must add -t iso9660);' ".
here have a wrong,live-boot's script should assign var $livefs_root to '/run/live/medium/' when $livefs_root is empty.
say,"please mount rootfs on /root/ (use overlay or aufs),ex:'mount -t overlay none -o lowerdir=/run/live/rootfs/filesystem.squashfs' ". (hehe,I was wrong,fix it,
"please mount rootfs on /root/ (use overlay or aufs),ex:'mount -t overlay none /root/ -o lowerdir=/run/live/rootfs/filesystem.squashfs/,upperdir=/run/live/upperdir/,workdir=/run/live/workdir/ ' ".
and then user can mount filesystem in busybox shell and boot into system.
Thanks.
At 2020-08-18 19:54:49, "Pipo" <pipo.gold@gmail.com> wrote:
>Hi Chen,
>
>is it Chen?
>
>First of all, I am not part of the Debian development team, so do not ask me
>to change anything in there.
>
>I just answered your question because I went through the same problems.
>You might want to take a look also at Knoppix distribution nased also on Debian to find how Knopper solved the problem about booting on a NTFS. (How he loaded the module ntfs-3g at boot time).
>
>
>I have no idea where the "findiso=a.iso" is coming from. It is certainly not from the standard live build. It is from a customized configuration that has nothing to do with the original live build.
>
>You should read the documentation VERY CAREFULLY because it is very confusing.
>
>Please try all the tutorials in the documentation.
>
>Good luck!
>
>-pipo
>
>
>On 8/18/20 5:38 AM, chentianlai@126.com wrote:
>> Thanks for your reply.
>>
>> I test ntfs-3g,after installed ntfs-3g (in debian 10),it will auto remake initrd.img,but,it is not work.because live-boot's script(/lib/live/boot/9990-misc-helpers.sh) is not support ntfs,even if ntfs-3g had installed.If I want to use ntfs,I must edit live-boot's script.deepin's live-boot had fix this problem (use ntfs-3g).I think debian's initrd.img should support ntfs.
>>
>> Annother question.Debian 's live-boot have a wrong.
>> kernel cmdline "boot=live findiso=/a.iso",where a.iso is not exits,and debian will boot fail,get into a busybox sh (initramfs).I mount a filesystem on /root/,then "CTRL-D"(two time),and it will die (kernel panic),say:
>> Begin: Configuring fstab ... done.
>> Begin: Preconfiguring networking ... done.
>> /init: line 189: 6: Bad file descriptor.(*** wrong is here)
>> (kernel panic)
>> kernel attempt to kill init.
>> init is not tainted.
=========================
>> wrong:"/init: line 189: 6: Bad file descriptor." !!!
>> I checked the boot scipt,found that wrong is in "/lib/live/boot/9990-main.sh".Here is the code:
>>
>> Fstab
>> Netbase
>> Swap
>> *** exec 1>&6 6>&-
>> *** exec 2>&7 7>&-
>> kill ${tailpid}
>>
>> I comment the two line (*** exec),rebuild the initrd,it come into busybox shell again,I mount filesystem on /root/,and it can boot.
>> Thanks.
>>
>> At 2020-08-17 21:04:34, "Pipo" <pipo.gold@gmail.com> wrote:
>>
>>>The normal/standard ntfs "supported" is not ntfs-3g.
>>
>>
Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread
debian's initrd should support ntfs 陈添来 <chentianlai@126.com> - 2020-08-19 07:10 +0200
csiph-web