LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 10-30-2007, 08:12 PM   #1
taltman
Member
 
Registered: Jun 2004
Posts: 41

Rep: Reputation: 15
freebsd usb thumb drive install


I'm trying to install freebsd from a usb thumb drive(no cdrom floppy etc on the box). I can't seem to find an image online that I can just dd to my usb stick. Everything I come across says you can't just take a cd iso image because of the filesystem the cd uses. I found a script to convert iso images into images bootable from usb, but the script is for bsd and I don't have access to a freebsd box. Does anyone have an image I can dd to my usb drive, so I can install freebsd 6.2?

I also tried using pxe, but I don't have access to nfs(only ftp). I tried chaining the bsd pxeboot through pxelinux, but this hasn't worked out too well. I was hoping that using usb would be much simpler. All the documentation I find seems rather dated, and I'm new to freebsd.

Thanks in advance for any help.
 
Old 10-31-2007, 01:33 AM   #2
winfinit
Member
 
Registered: Jul 2006
Location: FL, Delray Beach
Distribution: Slackware11, LFS
Posts: 67

Rep: Reputation: 15
well, i am not sure why it wont work, i assume you have iso image of yoru freebsd, and that can be mounted as a cd, i think it was mount -o loop -t iso9660 freebsd.iso /mnt/anything

now you can dd /mnt/anything to your usb drive, i dont see any reason why it will not work, computer doesnt care if it is a cd, usb or whatever, it is just looking for boot files
 
Old 10-31-2007, 03:30 PM   #3
taltman
Member
 
Registered: Jun 2004
Posts: 41

Original Poster
Rep: Reputation: 15
You can't just dd the directory because
Code:
# dd if=test/ of=usb
dd: reading `test/': Is a directory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00168597 seconds, 0.0 kB/s
If you copy the files from the iso onto the usb drive
Code:
# cp -r iso_mount/* usb_mount/
Then the bios complains about an invalid image when you try to boot from it. You are correct in that the bios doesn't care if it is a cd/usb/whatever, but the bios isn't simply looking for files since it has no concept of a filesystem(although you might have meant files in the more general sense including the boot sector in which you are correct). I know on hard drives the bios generally grabs the first sector where a boot loader is generally placed. I don't know how a usb stick is treated. That is why I was hoping someone had an image created or a script to create such an image that runs on linux. However, it might be faster for me just to port the freebsd one.
 
Old 02-28-2008, 07:53 PM   #4
borisd
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Same problem here

I'm also trying to install FreeBSD from a USB flash drive. Any help will be appreciated.
 
Old 02-29-2008, 01:20 AM   #5
taltman
Member
 
Registered: Jun 2004
Posts: 41

Original Poster
Rep: Reputation: 15
I never got it working. I eventually just managed to plug a cdrom in the box and installed from there.

That script I posted should work, but you already need a bsd box to run it from. Maybe try a livecd and run the script from there. Freebsd 7.0 just came out so maybe they have an easier way.
 
Old 03-01-2008, 03:22 AM   #6
uxp
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
You might want to check out this thread in the OLPC help forums.

http://olpcnews.com/forum/index.php?topic=1435.0

It shows how to install Ubuntu onto a raw image via Qemu, dd it onto a USB disk or SD card and then boot the OLPC laptop from that image. Similar results. I'd try it myself, and might do so later, however its 2AM right now and I'm looking to go to bed.

Here is the original tutorial that FAQ was based on: http://www.freelikegnu.org/?p=21

I have succeeded with the Ubuntu to OLPC conversion and the only bit of advice I can give is Partitioning. Single partition. No swap. One giant partition. Everything may seem to go perfectly fine all through the dd process, but it wont boot. It corrupts the partition table.

I'll check back either tomorrow or monday and post my results on making a USB install of FreeBSD.
 
Old 03-08-2008, 12:13 AM   #7
lujan
Member
 
Registered: Sep 2003
Distribution: Ubuntu, Debian Sarge, Mac OS X, FreeBSD
Posts: 45

Rep: Reputation: 16
A quick forum search shows this asked only a few weeks ago.

http://www.linuxquestions.org/questi...ht=freebsd+usb

The links I put in that thread work for me for what you want.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 12:09 PM
USB Thumb Drive superdude_876 Slackware 2 10-18-2005 07:42 PM
USB thumb drive detected by usb but not by scsi ashlock Linux - Hardware 6 06-02-2005 02:58 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM
USB thumb drive works great, but I still can't get my USB mouse to work. blk96gt Slackware 8 06-22-2004 01:52 AM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration