Re: UFS in a USB flash drive (ufs:/dev/da0s1a)
- Reply: Ronald Klop : "Re: UFS in a USB flash drive (ufs:/dev/da0s1a)"
- In reply to: Ronald Klop : "Re: UFS in a USB flash drive (ufs:/dev/da0s1a)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Oct 2022 12:09:02 UTC
On Mon, Oct 10, 2022 at 7:11 PM Ronald Klop <ronald-lists@klop.ws> wrote: > > > *Van:* Archimedes Gaviola <archimedes.gaviola@gmail.com> > *Datum:* maandag, 10 oktober 2022 12:40 > *Aan:* freebsd-fs@freebsd.org > *Onderwerp:* UFS in a USB flash drive (ufs:/dev/da0s1a) > > Hi, > > I have a scenario (see below) after which the FreeBSD kernel boots-up in > my embedded system, it is looking for the root filesystem. Now, I want to > build one from scratch based on the examples below using a UFS filesystem > in a USB flash drive -> ufs:/dev/da0s1a. Are there any available > step-by-step reference(s) that can help and guide me in the building > process? > > ... > > > Trying to mount root from cd9660:/dev/map/rootfs.uzip []... > mountroot: waiting for device /dev/map/rootfs.uzip... > Mounting from cd9660:/dev/map/rootfs.uzip failed with error 19. > > Loader variables: > > Manual root filesystem specification: > <fstype>:<device> [options] > Mount <device> using filesystem <fstype> > and with the specified (optional) option list. > > eg. ufs:/dev/da0s1a > zfs:tank > cd9660:/dev/cd0 ro > (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) > > ? List valid disk boot devices > . Yield 1 second (for background tasks) > <empty line> Abort manual input > > mountroot> > > ... > > Thanks and best regards, > Archimedes > > > > Hi, > > From your mail I don't really understand what your level of skills with > FreeBSD is. I assume the scenario with cd9660 and error 19 is not your > biggest concern. You just want to install on a USB flash drive. > > Does this help: https://docs.freebsd.org/en/books/handbook/bsdinstall/ ? > > Regards, > Ronald. > > Hi Ronald, No, it's not about installing FreeBSD from scratch using a USB flash drive as I already flashed and installed the FreeBSD kernel in the SPI flash RAM using trivial FTP in the U-boot loader. What I want is mounting the root filesystem that's been created in the USB flash drive (this hardware has USB port) using the ufs:/dev/da0s1a method but before that happens, I need to create that root filesystem (/) from scratch in the USB flash drive so that it can be mounted right after the kernel is loaded. Not sure what level I am as a FreeBSD user but I can install and setup FreeBSD system, networking, install packages and re-build or compile a kernel. Thanks and best regards, Archimedes