Re: FreeBSD USB Install
On Thu, Jan 15, 2009 at 9:08 PM, Da Rock wrote: > > This seems to be a bit of a sideline... but how does it work if you move > the disk around? Assuming generic kernel, you should be boot that kernel > on practically any machine- right? But I had trouble with it not finding > the drive- boot manager ok, install fine, just won't boot. I assumed > that the da0xxx was simply a pointer (programming speak) so that if you > inserted the disk somewhere else (another port, another m/c, etc) it may > not "point" to the same place for booting. Would this be right? > I haven't had an issue with it finding the loader yet (but I'm not using GRUB, I'm using the FreeBSD loader). And following the directions linked above, I used the geom label process, so I don't have to worry about /dev/daXs1d or whatever it was detected on...just use /dev/ufs/FreeBSDStick (or whatever you label it). --Brian _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
On Fri, 2009-01-09 at 14:11 -0200, Sergio de Almeida Lenzi wrote: > Hello > > I notice that when you write zeros to the first sectors > of the pen drive it gets mad about it > and you must make fsck and disklabel TWICE... > > the first time, it complains, > the second time it works fine > > I assume you have grub installed (pkg_add -r grub) > > I use the folowing procedure: > 1) put the pen drive on the computer it finds at da0 > 2) dd bs=512 if=/dev/zero of=/dev/da0 count=20 > 2) fdisk -BI /dev/da0 > 3) disklabel -w -B /dev/da0s1 > 4) fdisk -BI /dev/da0 > 5) disklabel -w -B /dev/da0s1 > 6) newfs -L FreeBSDstick /dev/da0s1a > 7) mount -o async /dev/da0s1a /mnt > 8) mkdir /mnt/boot/grub > 9) cd /usr/local/share/grub/*/ > 10 cp * /mnt/boot/grub > 11) cat <<% > /mnt/boot/grub/menu.lst > title FreeBSD on USB > root (hd0,0,a) > kernel /boot/loader > % > 12) umount /mnt > 13) grub --batch <<% > device (hd7) /dev/da0 > root (hd7,0,a) > setup (hd7) > % > = > now just populate the /mnt with bsd and your system > should come up... > > = > > > Hope this will help... > > > Here i use 4gb pen-drivers running FreeBSD 7 with zfs... > it works fine and very fast... > > Sergio. This seems to be a bit of a sideline... but how does it work if you move the disk around? Assuming generic kernel, you should be boot that kernel on practically any machine- right? But I had trouble with it not finding the drive- boot manager ok, install fine, just won't boot. I assumed that the da0xxx was simply a pointer (programming speak) so that if you inserted the disk somewhere else (another port, another m/c, etc) it may not "point" to the same place for booting. Would this be right? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
[Fwd: Re: FreeBSD USB Install]
--- Begin Message --- On Fri, 2009-01-09 at 14:11 -0200, Sergio de Almeida Lenzi wrote: > Hello > > I notice that when you write zeros to the first sectors > of the pen drive it gets mad about it > and you must make fsck and disklabel TWICE... > > the first time, it complains, > the second time it works fine > > I assume you have grub installed (pkg_add -r grub) > > I use the folowing procedure: > 1) put the pen drive on the computer it finds at da0 > 2) dd bs=512 if=/dev/zero of=/dev/da0 count=20 > 2) fdisk -BI /dev/da0 > 3) disklabel -w -B /dev/da0s1 > 4) fdisk -BI /dev/da0 > 5) disklabel -w -B /dev/da0s1 > 6) newfs -L FreeBSDstick /dev/da0s1a > 7) mount -o async /dev/da0s1a /mnt > 8) mkdir /mnt/boot/grub > 9) cd /usr/local/share/grub/*/ > 10 cp * /mnt/boot/grub > 11) cat <<% > /mnt/boot/grub/menu.lst > title FreeBSD on USB > root (hd0,0,a) > kernel /boot/loader > % > 12) umount /mnt > 13) grub --batch <<% > device (hd7) /dev/da0 > root (hd7,0,a) > setup (hd7) > % > = > now just populate the /mnt with bsd and your system > should come up... > > = > > > Hope this will help... > > > Here i use 4gb pen-drivers running FreeBSD 7 with zfs... > it works fine and very fast... > > Sergio. This seems to be a bit of a sideline... but how does it work if you move the disk around? Assuming generic kernel, you should be boot that kernel on practically any machine- right? But I had trouble with it not finding the drive- boot manager ok, install fine, just won't boot. I assumed that the da0xxx was simply a pointer (programming speak) so that if you inserted the disk somewhere else (another port, another m/c, etc) it may not "point" to the same place for booting. Would this be right? --- End Message --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
On Wed, Jan 14, 2009 at 10:37 PM, Fbsd1 wrote: >> > > Your link to the instructions is dead. > The page has been down on me before...give it a few hours, or plug that URL into Google and load the cached version (which takes a while to load since the CSS still tries to come from the original site). --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
Brian McCann wrote: On Fri, Jan 9, 2009 at 10:43 AM, Brian McCann wrote: Well this just got a LOT more frustrating and interesting. I made a stick following those directions using a new stick...worked fine, booted off of it...did some work on it...somehow the filesystem got very corrupted in one of various things I was doing to it (I think it was when I accidentially unplugged it before running a sync and umount). I figured it'd just be easier to start over and build it again from scratch. So...I try to newfs it ("newfs -U -L FreeBSDStick /dev/da1s1a", and newfs fails with "cg 0: bad magic number" . Now I'm really getting pissed. So...I run a dd ("dd if=/dev/zero of=/dev/da1 bs=1m"), and do the whole thing over...here's the console output: umm# dd if=/dev/zero of=/dev/da1 bs=1m dd: /dev/da1: short write on character device dd: /dev/da1: end of device 3830+0 records in 3829+1 records out 4016045568 bytes transferred in 4324.380202 secs (928699 bytes/sec) umm# fdisk -BI /dev/da1 *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found fdisk: Geom not found: "da1" umm# bsdlabel -B -w da1s1 umm# newfs -U -L FreeBSDStick /dev/da1s1a /dev/da1s1a: 3827.9MB (7839640 sectors) block size 16384, fragment size 2048 using 21 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. with soft updates super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200 cg 0: bad magic number So now I'm getting seriously ticked off. Anyone have any ideas what the heck could be causing this? This thumb drive was working fine with FreeBSD! I'm trying a dd on a thumb drive w/o specifying a block size / BS...we'll see what that does...but I'm still open to suggestions since I'm just about out of ideas. Thanks! --Brian To the list of things tried...add formatting the USB stick with the HDD Low Level Format Tool (http://hddguru.com/content/en/software/2006.04.12-HDD-Low-Level-Format-Tool/). Still no joy... For those following along at home, I found the cause of my problems. It apparently all came down to the machine I was making the stick on. Any machine that had an Intel SCB2 motherboard in it, would screw it up. I switched to using a different & newer machine, re-did the directions at http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 , and all my problems with it went away. YAY!!! Thanks to all those who provided input. Long live FreeBSD! --Brian Your link to the instructions is dead. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
On Fri, Jan 9, 2009 at 10:43 AM, Brian McCann wrote: >> >> Well this just got a LOT more frustrating and interesting. I made a >> stick following those directions using a new stick...worked fine, >> booted off of it...did some work on it...somehow the filesystem got >> very corrupted in one of various things I was doing to it (I think it >> was when I accidentially unplugged it before running a sync and >> umount). I figured it'd just be easier to start over and build it >> again from scratch. So...I try to newfs it ("newfs -U -L FreeBSDStick >> /dev/da1s1a", and newfs fails with "cg 0: bad magic number" . Now I'm >> really getting pissed. So...I run a dd ("dd if=/dev/zero of=/dev/da1 >> bs=1m"), and do the whole thing over...here's the console output: >> >> umm# dd if=/dev/zero of=/dev/da1 bs=1m >> dd: /dev/da1: short write on character device >> dd: /dev/da1: end of device >> 3830+0 records in >> 3829+1 records out >> 4016045568 bytes transferred in 4324.380202 secs (928699 bytes/sec) >> umm# fdisk -BI /dev/da1 >> *** Working on device /dev/da1 *** >> fdisk: invalid fdisk partition table found >> fdisk: Geom not found: "da1" >> umm# bsdlabel -B -w da1s1 >> umm# newfs -U -L FreeBSDStick /dev/da1s1a >> /dev/da1s1a: 3827.9MB (7839640 sectors) block size 16384, fragment size 2048 >>using 21 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. >>with soft updates >> super-block backups (for fsck -b #) at: >> 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, >> 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, >> 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200 >> cg 0: bad magic number >> >> So now I'm getting seriously ticked off. Anyone have any ideas what >> the heck could be causing this? This thumb drive was working fine >> with FreeBSD! I'm trying a dd on a thumb drive w/o specifying a block >> size / BS...we'll see what that does...but I'm still open to >> suggestions since I'm just about out of ideas. >> >> Thanks! >> --Brian >> >> > > To the list of things tried...add formatting the USB stick with the > HDD Low Level Format Tool > (http://hddguru.com/content/en/software/2006.04.12-HDD-Low-Level-Format-Tool/). > Still no joy... > For those following along at home, I found the cause of my problems. It apparently all came down to the machine I was making the stick on. Any machine that had an Intel SCB2 motherboard in it, would screw it up. I switched to using a different & newer machine, re-did the directions at http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 , and all my problems with it went away. YAY!!! Thanks to all those who provided input. Long live FreeBSD! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
Hello I notice that when you write zeros to the first sectors of the pen drive it gets mad about it and you must make fsck and disklabel TWICE... the first time, it complains, the second time it works fine I assume you have grub installed (pkg_add -r grub) I use the folowing procedure: 1) put the pen drive on the computer it finds at da0 2) dd bs=512 if=/dev/zero of=/dev/da0 count=20 2) fdisk -BI /dev/da0 3) disklabel -w -B /dev/da0s1 4) fdisk -BI /dev/da0 5) disklabel -w -B /dev/da0s1 6) newfs -L FreeBSDstick /dev/da0s1a 7) mount -o async /dev/da0s1a /mnt 8) mkdir /mnt/boot/grub 9) cd /usr/local/share/grub/*/ 10 cp * /mnt/boot/grub 11) cat <<% > /mnt/boot/grub/menu.lst title FreeBSD on USB root (hd0,0,a) kernel /boot/loader % 12) umount /mnt 13) grub --batch <<% device (hd7) /dev/da0 root (hd7,0,a) setup (hd7) % = now just populate the /mnt with bsd and your system should come up... = Hope this will help... Here i use 4gb pen-drivers running FreeBSD 7 with zfs... it works fine and very fast... Sergio. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
> > Well this just got a LOT more frustrating and interesting. I made a > stick following those directions using a new stick...worked fine, > booted off of it...did some work on it...somehow the filesystem got > very corrupted in one of various things I was doing to it (I think it > was when I accidentially unplugged it before running a sync and > umount). I figured it'd just be easier to start over and build it > again from scratch. So...I try to newfs it ("newfs -U -L FreeBSDStick > /dev/da1s1a", and newfs fails with "cg 0: bad magic number" . Now I'm > really getting pissed. So...I run a dd ("dd if=/dev/zero of=/dev/da1 > bs=1m"), and do the whole thing over...here's the console output: > > umm# dd if=/dev/zero of=/dev/da1 bs=1m > dd: /dev/da1: short write on character device > dd: /dev/da1: end of device > 3830+0 records in > 3829+1 records out > 4016045568 bytes transferred in 4324.380202 secs (928699 bytes/sec) > umm# fdisk -BI /dev/da1 > *** Working on device /dev/da1 *** > fdisk: invalid fdisk partition table found > fdisk: Geom not found: "da1" > umm# bsdlabel -B -w da1s1 > umm# newfs -U -L FreeBSDStick /dev/da1s1a > /dev/da1s1a: 3827.9MB (7839640 sectors) block size 16384, fragment size 2048 >using 21 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. >with soft updates > super-block backups (for fsck -b #) at: > 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, > 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, > 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200 > cg 0: bad magic number > > So now I'm getting seriously ticked off. Anyone have any ideas what > the heck could be causing this? This thumb drive was working fine > with FreeBSD! I'm trying a dd on a thumb drive w/o specifying a block > size / BS...we'll see what that does...but I'm still open to > suggestions since I'm just about out of ideas. > > Thanks! > --Brian > > To the list of things tried...add formatting the USB stick with the HDD Low Level Format Tool (http://hddguru.com/content/en/software/2006.04.12-HDD-Low-Level-Format-Tool/). Still no joy... --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
On Fri, Jan 9, 2009 at 4:30 AM, chris.scott wrote: > if your still stuck i can give you a dd of my usb image that definitely > works > if it still doesnt work for you you will know its a hardware issue and not > your building skills 8) > > Brian McCann wrote: >> >> On Wed, Jan 7, 2009 at 11:18 AM, Chris Scott >> wrote: >> >>> >>> Hi, >>> >>> >>> >>> Ditch sysinstall and follow this >>> >>> >>> >>> http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb- >>> stick-episode-2 >>> >>> >>> >>> glabel (the -L one newfs) is your friend, as it will help you avoid the >>> situation when you get boot failures when you try to boot off ur usb >>> disk on a machine that has scsi drives (da0 wont be the usb drive) >>> >>> >>> >> >> Firing that up now...I'll post the results. I tried this some time >> ago and it wouldn't work...but that could have been me doing something >> wrong or the PC didn't support booting from USB. >> >> Thanks, I'll let ya know! >> --Brian >> >> > > Well this just got a LOT more frustrating and interesting. I made a stick following those directions using a new stick...worked fine, booted off of it...did some work on it...somehow the filesystem got very corrupted in one of various things I was doing to it (I think it was when I accidentially unplugged it before running a sync and umount). I figured it'd just be easier to start over and build it again from scratch. So...I try to newfs it ("newfs -U -L FreeBSDStick /dev/da1s1a", and newfs fails with "cg 0: bad magic number" . Now I'm really getting pissed. So...I run a dd ("dd if=/dev/zero of=/dev/da1 bs=1m"), and do the whole thing over...here's the console output: umm# dd if=/dev/zero of=/dev/da1 bs=1m dd: /dev/da1: short write on character device dd: /dev/da1: end of device 3830+0 records in 3829+1 records out 4016045568 bytes transferred in 4324.380202 secs (928699 bytes/sec) umm# fdisk -BI /dev/da1 *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found fdisk: Geom not found: "da1" umm# bsdlabel -B -w da1s1 umm# newfs -U -L FreeBSDStick /dev/da1s1a /dev/da1s1a: 3827.9MB (7839640 sectors) block size 16384, fragment size 2048 using 21 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. with soft updates super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200 cg 0: bad magic number So now I'm getting seriously ticked off. Anyone have any ideas what the heck could be causing this? This thumb drive was working fine with FreeBSD! I'm trying a dd on a thumb drive w/o specifying a block size / BS...we'll see what that does...but I'm still open to suggestions since I'm just about out of ideas. Thanks! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
Brian McCann wrote: On Wed, Jan 7, 2009 at 9:34 AM, Matthias Apitz wrote: El día Wednesday, January 07, 2009 a las 03:17:02PM +0100, Polytropon escribió: I could only suggest to eliminate all slices and partitions on the thumb drive (such as it was a new "disk" right from the factory) and let sysinstall put slice and partitions onto it. The problem is that 'from the factory' sometimnes they come already Windows-like formated; I've wiped out all with: # dd if=/dev/zero of=/dev/da0 bs=1m (double check that /dev/da0 is really the device you want to clean) matthias Ok...so I zero'd out two different thumb drives (one 1gb stick, another a 4gb stick...not that it matters)...and both of them failed in the same way. I boot the machine with nothing but the CD-Rom drive and the USB stick. No fancy options or anything in the install process...just create one slice that takes up the whole drive, then one parition (da0s1a) mounted as "/"...about as basic as you can get. Any other thoughts? I don't understand why this wouldn't work...it's just another drive... Thanks for all the input! --Brian You're installing it into a single partition? Just / with everything on it? Maybe try the standard installation procedure with a /, swap, tmp, var and user. Let sysinstall do its job and use auto-defaults. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
On Wed, Jan 7, 2009 at 11:18 AM, Chris Scott wrote: > Hi, > > > > Ditch sysinstall and follow this > > > > http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb- > stick-episode-2 > > > > glabel (the -L one newfs) is your friend, as it will help you avoid the > situation when you get boot failures when you try to boot off ur usb > disk on a machine that has scsi drives (da0 wont be the usb drive) > > Firing that up now...I'll post the results. I tried this some time ago and it wouldn't work...but that could have been me doing something wrong or the PC didn't support booting from USB. Thanks, I'll let ya know! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
On Wed, Jan 7, 2009 at 9:34 AM, Matthias Apitz wrote: > El día Wednesday, January 07, 2009 a las 03:17:02PM +0100, Polytropon > escribió: >> >> I could only suggest to eliminate all slices and partitions on the >> thumb drive (such as it was a new "disk" right from the factory) >> and let sysinstall put slice and partitions onto it. > > The problem is that 'from the factory' sometimnes they come already > Windows-like > formated; I've wiped out all with: > > # dd if=/dev/zero of=/dev/da0 bs=1m > > (double check that /dev/da0 is really the device you want to clean) > >matthias > Ok...so I zero'd out two different thumb drives (one 1gb stick, another a 4gb stick...not that it matters)...and both of them failed in the same way. I boot the machine with nothing but the CD-Rom drive and the USB stick. No fancy options or anything in the install process...just create one slice that takes up the whole drive, then one parition (da0s1a) mounted as "/"...about as basic as you can get. Any other thoughts? I don't understand why this wouldn't work...it's just another drive... Thanks for all the input! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
FreeBSD USB Install
Hi, Ditch sysinstall and follow this http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb- stick-episode-2 glabel (the -L one newfs) is your friend, as it will help you avoid the situation when you get boot failures when you try to boot off ur usb disk on a machine that has scsi drives (da0 wont be the usb drive) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
Steve Bertrand wrote: Matthias Apitz wrote: El día Wednesday, January 07, 2009 a las 03:17:02PM +0100, Polytropon escribió: On Wed, 7 Jan 2009 08:25:45 -0500, "Brian McCann" wrote: Hi all. I'm trying to install FreeBSD 7.1 off the CD to a USB thumb drive, but every time I try it fails. sysinstall says "Unable to make new root filesystem on /dev/da0s1a1. Command returned status 38". When I switch to the debug console, I get "cg 0: bad magic number". This thumb drive was being used on my Windows machine previously, then I re-formatted it as UFS to use it on a FreeBSD machine...so I know the thumb drive itself works. Can someone shed some light on this problem? I could only suggest to eliminate all slices and partitions on the thumb drive (such as it was a new "disk" right from the factory) and let sysinstall put slice and partitions onto it. The problem is that 'from the factory' sometimnes they come already Windows-like formated; I've wiped out all with: # dd if=/dev/zero of=/dev/da0 bs=1m (double check that /dev/da0 is really the device you want to clean) sysinstall will provide you an option to erase any existing 'partitions' that exist on the drive during install, so the 'dd' is redundant. I've never installed directly to a thumbdrive before. Normally I'd install to a hard disk, pear it down, and then effectively copy the system to the thumb drive manually. I end up with a system as such (so I don't need a hard disk): router# df -h FilesystemSizeUsed Avail Capacity Mounted on /dev/da0a 939M410M454M47%/ devfs 1.0K1.0K 0B 100%/dev /dev/md0 31M 20K 28M 0%/tmp /dev/md1 15M 36K 14M 0%/var/run /dev/md2 31M318K 28M 1%/var/log /tmp 31M 20K 28M 0%/var/tmp That said, installing to a USB disk through sysinstall should technically (AFAIK) be no different than installing to a standard SCSI hard disk (da0). What options are you supplying when you reach the 'FDISK Partition Editor' screen? Also, if you are installing the system via sysinstall that is running on an already installed FreeBSD, you must use the 'w' option before 'q'. Quit within the disk editor while running under FreeBSD does not imply 'write'. (This being opposed to booting from a CD to install). Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" I've installed 7.0 on an USB IDE drive last week. At the time the USB drive had a Linux distro on it which I destroyed, place the install CD on the CD drive, selected boot from USB, the drive showed up on sysinstall, and performed a pretty standard FreeBSD install. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
Matthias Apitz wrote: > El día Wednesday, January 07, 2009 a las 03:17:02PM +0100, Polytropon > escribió: > >> On Wed, 7 Jan 2009 08:25:45 -0500, "Brian McCann" wrote: >>> Hi all. I'm trying to install FreeBSD 7.1 off the CD to a USB thumb >>> drive, but every time I try it fails. sysinstall says "Unable to make >>> new root filesystem on /dev/da0s1a1. Command returned status 38". >>> When I switch to the debug console, I get "cg 0: bad magic number". >>> This thumb drive was being used on my Windows machine previously, then >>> I re-formatted it as UFS to use it on a FreeBSD machine...so I know >>> the thumb drive itself works. Can someone shed some light on this >>> problem? >> I could only suggest to eliminate all slices and partitions on the >> thumb drive (such as it was a new "disk" right from the factory) >> and let sysinstall put slice and partitions onto it. > > The problem is that 'from the factory' sometimnes they come already > Windows-like > formated; I've wiped out all with: > > # dd if=/dev/zero of=/dev/da0 bs=1m > > (double check that /dev/da0 is really the device you want to clean) sysinstall will provide you an option to erase any existing 'partitions' that exist on the drive during install, so the 'dd' is redundant. I've never installed directly to a thumbdrive before. Normally I'd install to a hard disk, pear it down, and then effectively copy the system to the thumb drive manually. I end up with a system as such (so I don't need a hard disk): router# df -h FilesystemSizeUsed Avail Capacity Mounted on /dev/da0a 939M410M454M47%/ devfs 1.0K1.0K 0B 100%/dev /dev/md0 31M 20K 28M 0%/tmp /dev/md1 15M 36K 14M 0%/var/run /dev/md2 31M318K 28M 1%/var/log /tmp 31M 20K 28M 0%/var/tmp That said, installing to a USB disk through sysinstall should technically (AFAIK) be no different than installing to a standard SCSI hard disk (da0). What options are you supplying when you reach the 'FDISK Partition Editor' screen? Also, if you are installing the system via sysinstall that is running on an already installed FreeBSD, you must use the 'w' option before 'q'. Quit within the disk editor while running under FreeBSD does not imply 'write'. (This being opposed to booting from a CD to install). Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
El día Wednesday, January 07, 2009 a las 03:17:02PM +0100, Polytropon escribió: > On Wed, 7 Jan 2009 08:25:45 -0500, "Brian McCann" wrote: > > Hi all. I'm trying to install FreeBSD 7.1 off the CD to a USB thumb > > drive, but every time I try it fails. sysinstall says "Unable to make > > new root filesystem on /dev/da0s1a1. Command returned status 38". > > When I switch to the debug console, I get "cg 0: bad magic number". > > This thumb drive was being used on my Windows machine previously, then > > I re-formatted it as UFS to use it on a FreeBSD machine...so I know > > the thumb drive itself works. Can someone shed some light on this > > problem? > > I could only suggest to eliminate all slices and partitions on the > thumb drive (such as it was a new "disk" right from the factory) > and let sysinstall put slice and partitions onto it. The problem is that 'from the factory' sometimnes they come already Windows-like formated; I've wiped out all with: # dd if=/dev/zero of=/dev/da0 bs=1m (double check that /dev/da0 is really the device you want to clean) matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ SPAMer of the year: Subject: Alle Software ist Deutsche Sprachen >From: -40 % die Neujahrsaktion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD USB Install
On Wed, 7 Jan 2009 08:25:45 -0500, "Brian McCann" wrote: > Hi all. I'm trying to install FreeBSD 7.1 off the CD to a USB thumb > drive, but every time I try it fails. sysinstall says "Unable to make > new root filesystem on /dev/da0s1a1. Command returned status 38". > When I switch to the debug console, I get "cg 0: bad magic number". > This thumb drive was being used on my Windows machine previously, then > I re-formatted it as UFS to use it on a FreeBSD machine...so I know > the thumb drive itself works. Can someone shed some light on this > problem? I could only suggest to eliminate all slices and partitions on the thumb drive (such as it was a new "disk" right from the factory) and let sysinstall put slice and partitions onto it. Furthermore, I think /dev/da0s1a1 looks a bit strange. Shouldn't it be /dev/da0s1a (without the 1) for the root partition? -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
FreeBSD USB Install
Hi all. I'm trying to install FreeBSD 7.1 off the CD to a USB thumb drive, but every time I try it fails. sysinstall says "Unable to make new root filesystem on /dev/da0s1a1. Command returned status 38". When I switch to the debug console, I get "cg 0: bad magic number". This thumb drive was being used on my Windows machine previously, then I re-formatted it as UFS to use it on a FreeBSD machine...so I know the thumb drive itself works. Can someone shed some light on this problem? Thanks! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"