Sponsored Content
Full Discussion: Freebsd live usb
Operating Systems BSD Freebsd live usb Post 302675531 by urello on Monday 23rd of July 2012 08:18:56 AM
Old 07-23-2012
Freebsd live usb

Hello. I'm going to make freebsd live usb based on FreeBSD-8.3-RELEASE-i386-livefs.iso. The iso is 257 Megabytes, but after i copy its content to usb drive its volume increases to 971 Megabytes. I tried different methods of copying (tar,cp,cpio) but with the same result. Could anyone help?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Usb printer on freebsd

Hello,i have laserjet 1000 usb printer on fbsd 4.7 when i connect it to usb, usbdev tells me it is working, on port ulpt0 (whatever). When i send some data to port it doesn't tell me any error, printcap is modifyed according manual, and lpr -Plj /etc/rc.conf gives me following error /kernel:... (1 Reply)
Discussion started by: hachik
1 Replies

2. BSD

Detecting usb stick in freebsd

I inserted a 8GB usb stick in a number of machine with FreeBSD 7.1, but the medium was not detected: $ dmesg | grep MB usable memory = 4263022592 (4065 MB) avail memory = 4082540544 (3893 MB) pci0: <serial bus, SMBus> at device 31.3 (no driver attached) ad0: 238475MB <WDC WD2500BEVT-00ZCT0... (6 Replies)
Discussion started by: figaro
6 Replies

3. UNIX for Dummies Questions & Answers

Using USB sticks in FreeBSD

I have a number of questions regarding using usb sticks on xfce and freebsd. 1- Does the thunar volume manager (xfce plugin) actually provide a means to automount usb sticks? I have set all possible options in the volume manager, but have not had any automount yet. 2- Is there any utility on... (0 Replies)
Discussion started by: figaro
0 Replies

4. BSD

Mounting a USB stick in FreeBSD

When mounting a USB stick or pen drive on a FreeBSD machine I always issue the following command: mount -t msdosfs /dev/da0s1 /mnt Something I have always wondered is what the option msdosfs stands for and more importantly, why it is necessary. (7 Replies)
Discussion started by: figaro
7 Replies

5. Linux

Live Knoppix on usb sdb2 kernel not found

Hi all I have a usb external drive with two partitions sdb1 ntfs and sdb2 ext3 with label Linux I copied a knoppix live distro in the second partition, then I installed grub on the drive. Now in the directory /media/sdb2/boot/grub i have the file device.map with the following content: (hd0) ... (4 Replies)
Discussion started by: guast
4 Replies

6. Red Hat

How to install fedora 13 from a usb media....it should not like 'live'?

im using Dell Inspiron with windows 7 as operating system.....in my hard drive there is some 34 gb unpartitioned space and now i want to install fedora 13 into it, after installation it should be dual boot. problem here is... i have the fedora 13 image file ie fedora13-i386-DVD.iso file. ... (13 Replies)
Discussion started by: karthik437
13 Replies

7. Linux

Kexec with Live USB/CD

Hello Recently I found this (for me) really usefull tool kexec which can load a new Kernel while running one. I tested it some times with the same kernel I was running, "rebooting" the system without powering it off at any time :D But I need kexec basically just for live usbs. I want to start... (17 Replies)
Discussion started by: al0x
17 Replies

8. BSD

Installing FreeBsd. No usb device found

Hello, all. My english is not good. I have a problem installing FreeBsd. I have not CD-Roms, so i use program FlashBoot for convert iso-image to USB Device. After, I was beginning to install FreeBsd (Sorry my english) When it's time to choose an installation media, i select 9 USB:... (3 Replies)
Discussion started by: snet
3 Replies

9. UNIX for Dummies Questions & Answers

kcore and a live persistent linux usb distro

I have 2 computers, from now on i shall call these computers A and B. Made a live linux distro (bodhi) on A which has 1GB internal memory , because windows is unstable on B, which has 512MB internal memory. I mean with memory the internal memory of the computer, not the memory of the usb... (0 Replies)
Discussion started by: anno
0 Replies

10. Solaris

Solaris 11 install via live usb

Hello All, I am attempting to boot and install Solaris 11 via live USB on a HP DL580 Gen9 Server. Unfortunately, when I do this it boots into System Maintenance Mode. The attachment (Pic1) shows what I am seeing via the console. The BIOS is in UEFI boot. Does not work on legacy mode as I... (15 Replies)
Discussion started by: Kerbi
15 Replies
COMPAT_FREEBSD(8)					    BSD System Manager's Manual 					 COMPAT_FREEBSD(8)

NAME
compat_freebsd -- setup procedure for running FreeBSD binaries DESCRIPTION
NetBSD supports running FreeBSD binaries. Most binaries should work, except programs that use FreeBSD-specific features. These include i386-specific calls, such as syscons utilities. The FreeBSD compatibility feature is active for kernels compiled with the COMPAT_FREEBSD option enabled. A lot of programs are dynamically linked. This means, that you will also need the FreeBSD shared libraries that the program depends on, and the runtime linker. Also, you will need to create a ``shadow root'' directory for FreeBSD binaries on your NetBSD system. This directory is named /emul/freebsd. Any file operations done by FreeBSD programs run under NetBSD will look in this directory first. So, if a FreeBSD pro- gram opens, for example, /etc/passwd, NetBSD will first try to open /emul/freebsd/etc/passwd, and if that does not exist open the 'real' /etc/passwd file. It is recommended that you install FreeBSD packages that include configuration files, etc under /emul/freebsd, to avoid naming conflicts with possible NetBSD counterparts. Shared libraries should also be installed in the shadow tree. Generally, you will need to look for the shared libraries that FreeBSD binaries depend on only the first few times that you install a FreeBSD program on your NetBSD system. After a while, you will have a sufficient set of FreeBSD shared libraries on your system to be able to run newly imported FreeBSD binaries without any extra work. Setting up shared libraries How to get to know which shared libraries FreeBSD binaries need, and where to get them? Basically, there are 2 possibilities (when following these instructions: you will need to be root on your NetBSD system to do the necessary installation steps). 1. You have access to a FreeBSD system. In this case you can temporarily install the binary there, see what shared libraries it needs, and copy them to your NetBSD system. Example: you have just ftp-ed the FreeBSD binary of SimCity. Put it on the FreeBSD system you have access to, and check which shared libraries it needs by running 'ldd sim': me@freebsd% ldd /usr/local/lib/SimCity/res/sim /usr/local/lib/SimCity/res/sim: -lXext.6 => /usr/X11R6/lib/libXext.so.6.0 (0x100c1000) -lX11.6 => /usr/X11R6/lib/libX11.so.6.0 (0x100c9000) -lc.2 => /usr/lib/libc.so.2.1 (0x10144000) -lm.2 => /usr/lib/libm.so.2.0 (0x101a7000) -lgcc.261 => /usr/lib/libgcc.so.261.0 (0x101bf000) You would need go get all the files from the last column, and put them under /emul/freebsd. This means you eventually have these files on your NetBSD system: /emul/freebsd/usr/X11R6/lib/libXext.so.6.0 /emul/freebsd/usr/X11R6/lib/libX11.so.6.0 /emul/freebsd/usr/lib/libc.so.2.1 /emul/freebsd/usr/lib/libm.so.2.0 /emul/freebsd/usr/lib/libgcc.so.261.0 Note that if you already have a FreeBSD shared library with a matching major revision number to the first column of the ldd output, you won't need to copy the file named in the last column to your system, the one you already have should work. It is advisable to copy the shared library anyway if it is a newer version, though. You can remove the old one. So, if you have these libraries on your system: /emul/freebsd/usr/lib/libc.so.2.0 and you find that the ldd output for a new binary you want to install is: -lc.2 => /usr/lib/libc.so.2.1 (0x10144000) You won't need to worry about copying /usr/lib/libc.so.2.1 too, because the program should work fine with the slightly older version. You can decide to replace the libc.so anyway, and that should leave you with: /emul/freebsd/usr/lib/libc.so.2.1 Finally, you must make sure that you have the FreeBSD runtime linker and its config files on your system. You should copy these files from the FreeBSD system to their appropriate place on your NetBSD system (in the /emul/freebsd tree): usr/libexec/ld.so var/run/ld.so.hints 2. You don't have access to a FreeBSD system. In that case, you should get the extra files you need from various ftp sites. Information on where to look for the various files is appended below. For now, let's assume you know where to get the files. Retrieve the following files (from _one_ ftp site to avoid any version mismatches), and install them under /emul/freebsd (i.e. foo/bar is installed as /emul/freebsd/foo/bar): sbin/ldconfig usr/bin/ldd usr/lib/libc.so.x.y.z usr/libexec/ld.so ldconfig and ldd don't necessarily need to be under /emul/freebsd, you can install them elsewhere in the system too. Just make sure they don't conflict with their NetBSD counterparts. A good idea would be to install them in /usr/local/bin as ldconfig-freebsd and ldd-freebsd. Run the FreeBSD ldconfig program with directory arguments in which the FreeBSD runtime linker should look for shared libs. /usr/lib are standard, you could run like the following: me@netbsd% mkdir -p /emul/freebsd/var/run me@netbsd% touch /emul/freebsd/var/run/ld.so.hints me@netbsd% ldconfig-freebsd /usr/X11R6/lib /usr/local/lib Note that argument directories of ldconfig are mapped to /emul/freebsd/XXXX by NetBSD's compat code, and should exist as such on your system. Make sure /emul/freebsd/var/run/ld.so.hints is existing when you run FreeBSD's ldconfig, if not, you may lose NetBSD's /var/run/ld.so.hints. FreeBSD ldconfig should be statically linked, so it doesn't need any shared libraries by itself. It will create the file /emul/freebsd/var/run/ld.so.hints. You should rerun the FreeBSD version of the ldconfig program each time you add a new shared library. You should now be set up for FreeBSD binaries which only need a shared libc. You can test this by running the FreeBSD ldd on itself. Suppose that you have it installed as ldd-freebsd, it should produce something like: me@netbsd% ldd-freebsd `which ldd-freebsd` /usr/local/bin/ldd-freebsd: -lc.2 => /usr/lib/libc.so.2.1 (0x1001a000) This being done, you are ready to install new FreeBSD binaries. Whenever you install a new FreeBSD program, you should check if it needs shared libraries, and if so, whether you have them installed in the /emul/freebsd tree. To do this, you run the FreeBSD version ldd on the new program, and watch its output. ldd (see also the manual page for ldd(1)) will print a list of shared libraries that the program depends on, in the form -l<majorname> => <fullname>. If it prints ``not found'' instead of <fullname> it means that you need an extra library. Which library this is, is shown in <major- name>, which will be of the form XXXX.<N> You will need to find a libXXXX.so.<N>.<mm> on a FreeBSD ftp site, and install it on your sys- tem. The XXXX (name) and <N> (major revision number) should match; the minor number(s) <mm> are less important, though it is advised to take the most recent version. 3. In some cases, FreeBSD binary needs access to certain device file. For example, FreeBSD X server software needs FreeBSD /dev/ttyv0 for ioctls. In this case, create a symbolic link from /emul/freebsd/dev/ttyv0 to a wscons(4) device file like /dev/ttyE0. You will need to have at least options WSDISPLAY_COMPAT_SYSCONS and probably also options WSDISPLAY_COMPAT_USL in your kernel (see options(4) and wscons(4)). Finding the necessary files Note: the information below is valid as of the time this document was written (June, 1995), but certain details such as names of ftp sites, directories and distribution names may have changed by the time you read this. The FreeBSD distribution is available on a lot of ftp sites. Sometimes the files are unpacked, and you can get the individual files you need, but mostly they are stored in distribution sets, usually consisting of subdirectories with gzipped tar files in them. The primary ftp sites for the distributions are: ftp.freebsd.org:/pub/FreeBSD Mirror sites are described on: ftp.freebsd.org:/pub/FreeBSD/MIRROR.SITES This distribution consists of a number of tar-ed and gzipped files, Normally, they're controlled by an install program, but you can retrieve files ``by hand'' too. The way to look something up is to retrieve all the files in the distribution, and ``tar ztvf'' through them for the file you need. Here is an example of a list of files that you might need. Needed Files ld.so 2.0-RELEASE/bindist/bindist.?? ldconfig 2.0-RELEASE/bindist/bindist.?? ldd 2.0-RELEASE/bindist/bindist.?? libc.so.2 2.0-RELEASE/bindist/bindist.?? libX11.so.6.0 2.0-RELEASE/XFree86-3.1/XFree86-3.1-bin.tar.gz libX11.so.6.0 XFree86-3.1.1/X311bin.tgz libXt.so.6.0 2.0-RELEASE/XFree86-3.1/XFree86-3.1-bin.tar.gz libXt.so.6.0 XFree86-3.1.1/X311bin.tgz The files called ``bindist.??'' are tar-ed, gzipped and split, so you can extract contents by ``cat bindist.?? | tar zpxf -''. Extract the files from these gzipped tarfiles in your /emul/freebsd directory (possibly omitting or afterwards removing files you don't need), and you are done. BUGS
The information about FreeBSD distributions may become outdated. BSD
June 4, 1995 BSD
All times are GMT -4. The time now is 04:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy