Live-boot (debian) secondary mount parameter for kernel?
Figured lets start with something "easy".
hardware: - Laptops/Desktops, new and old machines. - USB HDD (with UAS, USB-to-SCSI) or USB stick. - USB 2.0 (using USB 2.0 hub since never sure about compatibility over USB 3.0/3.1) Partitioning: 1#: Primary (FAT16, active, bootable, grub4dos) #: Extended Partition 5#: Logical (FAT32) 6#: Logical (NTFS) 7#: Logical (NTFS) bootloader / OS: G4D (0.4.6a), Debian Live Stretch 9.5.0 Example (boot from ISO): Code:
kernel (hd0,5)/LIVE/vmlinux boot=live components findiso=/LIVE/live.iso nopersistence noeject Example (boot from logical partition directly): Code:
kernel (hd0,5)/LIVE/vmlinux boot=live components bootfrom=/dev/sda6 nopersistence noeject Now there's 2 problems here: 1. Either initramfs fails or debian doesn't know what FAT16. (Mounting of /dev/sda1 fails as it some magical way attemps to mount it as ext4, if I view /etc/fstab at live system. Remounting is possible using vfat type.) 2. Mounting 3rd logical (or primary) NTFS partition at /dev/sda7 fails. ntfs-3g fails to mount it so does "mount -t ntfs ..." Question: Is there anyway to pass mount parameters to kernel at command-line ? - I know fromiso/findiso mounts the partition with ISO/SquashFS at '/lib/live/media/fromiso' Read-Writable as root. So, can I also somehow pass parameter to kernel/initramfs to mount 3rd logical partition the same way? Example: somepath=/dev/sda7 (which would also appear at /lib/live/media/somepath - As for boot partition identified as ext4, well would be also nice to pass parameters, so, it would be identified as vfat (or FAT16). |
It looks to me like you're being thrown off by the HD becoming sdb when you boot from USB. What is the actual output from
Code:
fdisk -l |
Quote:
fdisk -l (booted from ISO as desc. above): Code:
user@debian:~$ sudo fdisk -l blkid: Code:
user@debian:~$ sudo blkid /etc/fstab looks like this (FAT16 error): Code:
proc /proc proc defaults 0 0 Mounting /dev/sda7 error: Code:
user@debian:~$ mkdir $HOME/storage |
There seems to be one solution I just tested that will work, repartitioning:
/dev/sda 1#: Primary (FAT16, active, bootable, grub4dos) #: Extended Partition 5#: Logical (FAT32) 6#: Logical (NTFS) 7#: Logical (NTFS) 8#: Logical (EXT4/NTFS/FAT32) <- Minimal /LIVE (ISO or extracted vmlinuz/initrd/squashfs). Not a perfect, but at least I can mount/see all partitions now. Not counting: - Still have to remount /dev/sda1 at system. *some bug in latest initramfs/kernel* - Original problem of this post is just moved to last partition. Problem persist still of having partition containing files for live-boot at RO mode and readable only by root. |
All times are GMT -5. The time now is 08:52 PM. |