Re: I need a simple cli tool to rotate mp4 video.
On 31/10/2012 09:01, Jakub Lach wrote: $ ffmpeg -i A.mp4 -vf transpose=1 -r 30 -sameq -acodec copy B.mp4 Is _almost_ ideal, apart from x1.5 increase in size... playing with fps does not change it too. try the -b option to specify the bitrate you want. while I haven't tried it -fs is meant to specify the target filesize. I am guessing that it would adjust quality to match that size. ___ 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: No sound from speaker, using Realtek ALC269 and snd_hda
On 31.10.2012 03:00, Big Yuuta wrote: Yes, actually I'm using sysctl hw.snd.verbose=4 to understand what's happening inside. From my tests, it's not a sense redirection problem. Because, when I unmute everything, and then I plug a headphone, the sound goes to the headphone and the internal speaker is mutted, and when I unplug it, the internal speaker gets the sound, and (nid 26: the headphone) is mutted. So, anyway, I'm still debugging it and I found out that I don't have to unmute everything, I just have to make sure that nid=15 is never mutted. i.e. the test I wrote in my last email could be more precise like this: hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid, int index, int lmute, int rmute, int left, int right, int dir) { uint16_t v = 0; if(nid == 15){ //just don't mute nid15, and it works lmute = 0; rmute = 0; } Strange thing is from my dmesg here: http://dpaste.com/818967/plain/ I thought that nid 15 wasn't used. hdaa0: nid: 15 [DISABLED] hdaa0:Name: audio mixer hdaa0: Widget cap: 0x0020010a hdaa0: Input amp: 0x8000 hdaa0: mute=1 step=0 size=0 offset=0 hdaa0: connections: 2 hdaa0: | hdaa0: + [DISABLED] - nid=2 [audio output] hdaa0: + [DISABLED] - nid=11 [audio mixer] Maybe it's disabled because others were disabled for other reasons? I honestly don't grok the whole thing yet. The driver reports as disabled all parts of the CODEC that are unused in specific configuration. It is quite usual to have half of CODEC unused. To avoid unexpected effects driver mutes all disabled controls. According to information reported by CODEC, this mixer is really unused. I see no problem from the driver side there. We, IMVHO, probably just should add a patch inside hdaa_patches.c for this case: case HDA_CODEC_ALC269: if (subid == 0x10438437){ //0x10438437 is my subsystem id. w = hdaa_widget_get(devinfo, 15); if(w != NULL) //some magic to unmute it ? } break; What do you think? I think Realtek engineers got crazy. They not only created several different CODECs sharing the same ID (my laptop also uses variant of ALC269, but it has no such problem), but also violated their own specs and information reported by CODEC. Patch below should hide problematic muter from the driver. Solution is far from perfect, but that is best I can propose without having more information. Please test it and report about results. --- hdaa_patches.c (revision 242352) +++ hdaa_patches.c (working copy) @@ -541,6 +541,21 @@ hdaa_patch(struct hdaa_devinfo *devinfo) if (w != NULL) w-connsenable[0] = 0; break; + case HDA_CODEC_ALC269: + /* +* ASUS EeePC 1001px has strange variant of ALC269 CODEC, +* that mutes speaker if unused mixer at NID 15 is muted. +* Probably CODEC incorrectly reports internal connections. +* Hide that muter from the driver. There are several CODECs +* sharing this ID and I have not enough information about +* them to implement more universal solution. +*/ + if (subid == 0x10438437) { + w = hdaa_widget_get(devinfo, 15); + if (w != NULL) + w-param.inamp_cap = 0; + } + break; case HDA_CODEC_CX20582: case HDA_CODEC_CX20583: case HDA_CODEC_CX20584: -- Alexander Motin ___ 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: I need a simple cli tool to rotate mp4 video.
Strange thing is, -sameq should give same quality as original. Thanks for all help! -- View this message in context: http://freebsd.1045724.n5.nabble.com/I-need-a-simple-cli-tool-to-rotate-mp4-video-tp5756670p5756776.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ 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: yelp could not be built because of libxul dependency (10.0 vs. 2)
from Ewald Jenisch a...@jenisch.at: I'm trying to get my system up2date using portupgrade as usual. However during the upgrade process I ran into a problem during upgrade of yelp: === yelp-2.30.2_4 depends on package: libxul2 - not found === Found libxul-10.0.10, but you need to upgrade to libxul2. UPDATING has an entry for www/libxul of 20120910 that says ...If you want to stay with 1.9.2... So in order to make yelp build again, does this mean I've got to de-install libxul-10.0.10 and install /usr/ports/www/libxul19 again? Thanks much in advance for your help, -ewald I posted a message on this same issue with gnash and mentioned also yelp. In the case of gnash, libxul19 is supposed to install a file /usr/local/lib/libxul/xpidl but libxul-10.0.9 doesn't. Maybe the yelp port wants/needs this file too? That was only a few days ago, maybe libxul was updated to 10.0.10 just a day or two ago? libxul19 wouldn't install, both because of conflict with libxul and because libxul19 was marked vulnerable. So I appear stuck until they fix this bug. File a bug report? Tom ___ 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: I need a simple cli tool to rotate mp4 video.
On 10/31/12 19:22, Jakub Lach wrote: Strange thing is, -sameq should give same quality as original. Thanks for all help! Using mencoder with a mixture of -mc and -forceidx should help the sync issues. Then just use delay to either adjust the audio or video track. If you are using dvb ts streams though you may need something more specialised like projectx or tsmuxer to fix it. ffmpeg can be tricky for new users, but is basically the same thing if you can get the commands figured out. Mencoder will get you going quicker, though. Good luck! ___ 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: Famp Server
i started installing apache22 and it worked, then i installed mysql it worked fine, also when i installed php5 it worked fine too but when i browse php file it displays the codes not the information like i created a php file to display the current settings ?php echo phpinfo(); ? in the /usr/local/www/apache22/data directory i did everything as root http://www.iceflatline.com/2011/11/how-to-install-apache-mysql-php-and-phpmyadmin-on-freebsd/ check this tutorial which i used to configure the famp on my server thanks From: Dale Scott dalesc...@shaw.ca To: Polytropon free...@edvax.de Cc: freebsd-questions@freebsd.org; Hamisi Jabe hamso...@yahoo.com Sent: Tuesday, October 30, 2012 6:05 PM Subject: Re: Famp Server - Original Message - From: Polytropon free...@edvax.de On Tue, 30 Oct 2012 06:26:19 -0700 (PDT), Hamisi Jabe wrote: Thanks for your quick reply, but would you please give me the right command pkg_add -r apache22 pkg_add -r mysql55-server pkg_add -r php5 i installed these packages one by one but to no success please help, Can you provide the error message of no success? and also when i install them should i go to the port directory or i can execute the command anywhere From anywhere. You must be root though (just in case you were trying to install with a normal user account) ___ 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
Access packets directly from NIC
Hello FreeBSD users ! How can i access and check packets directly from NIC ? Regards, Jack ___ 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: Access packets directly from NIC
2012/10/31 Jack Mc Lauren jack.mclau...@yahoo.com: Hello FreeBSD users ! How can i access and check packets directly from NIC ? Regards, Jack ___ 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 believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) -- ~~~ WBR, Vitaliy Turovets NOC Lead @TV-Net ISP NOC Lead @Service Outsourcing company +38(093)265-70-55 VITU-RIPE X-NCC-RegID: ua.tv ___ 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: Access packets directly from NIC
From owner-freebsd-questi...@freebsd.org Wed Oct 31 06:29:57 2012 From: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= core...@corebug.net Date: Wed, 31 Oct 2012 13:29:05 +0200 Subject: Re: Access packets directly from NIC To: Jack Mc Lauren jack.mclau...@yahoo.com Cc: FreeBSD Global Users Mailing List freebsd-questions@freebsd.org 2012/10/31 Jack Mc Lauren jack.mclau...@yahoo.com: Hello FreeBSD users ! How can i access and check packets directly from NIC ? Regards, Jack I believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) tcpdump is _the_ tool for this for command-line use. For access from within a program, 'man bpf'. ___ 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: Access packets directly from NIC
I believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) Yes, i need to view raw packets and check their protocol, e.g. whether they are ICMP packets or something else ... ___ 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: VirtualBox Guest Addons
On Wed, 31 Oct 2012 10:58:54 +1100, Lachlan Holmes wrote: Hey all, If you can help 'd really appreciate it. I have a 9.0 release 64bit freebsd. I've done a Portsnap fetch extract and freebsd-update. I can't get virtualbox-ose-additions to install I get this error message. # make install clean === virtualbox-ose-additions-4.1.22 requires kernel sources. *** Error code 1 Stop in /usr/ports/emulators/virtualbox-ose-addtions # The error message indicates that you are missing the kernel sources. Obtain /usr/src from the installation media (the src distribution), via SVN or CVS, or by FTP, and retry. It can be found here: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/9.0-RELEASE/src.txz Just extract it into the mentioned location. But I'm new to bsd and and I don't understand how I downloaded the patch and then rebuild the system and then redo the install process. As far as I remember, it's not needed to manually patch anything. On how to configure and install a custom kernel and the operating system, refer to The FreeBSD Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Also refer to the comment header of /usr/src/Makefile. -- Polytropon 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
Re: LIBREOFFICE.TBZ IS BROKEN -- ATTENTION
On 30 October 2012 14:12, awarecons awarec...@gmail.com wrote: Hello! ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.0-release/Latest/libreoffice.tbzand probably other spreaded across ftp.freebsd.org are broken archives. What do you mean by broken archives? Do you have an error message you can share? Chris ___ 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: No sound from speaker, using Realtek ALC269 and snd_hda
Hi Alexander, No, that patch didn't do the trick for the simple reason that my actual subid was 0x84371043 and not 0x1043837 -you spot my mistake? ;-) So here's the one that finally got me sound with my Asus EeePC 1001px on the internal speaker: --- hdaa_patches.c +++ hdaa_patches.c @@ -541,6 +541,21 @@ if (w != NULL) w-connsenable[0] = 0; break; + case HDA_CODEC_ALC269: + /* + * ASUS EeePC 1001px has strange variant of ALC269 CODEC, + * that mutes speaker if unused mixer at NID 15 is muted. + * Probably CODEC incorrectly reports internal connections. + * Hide that muter from the driver. There are several CODECs + * sharing this ID and I have not enough information about + * them to implement more universal solution. + */ + if (subid == 0x84371043) { + w = hdaa_widget_get(devinfo, 15); + if (w != NULL) + w-param.inamp_cap = 0; + } + break; case HDA_CODEC_CX20582: case HDA_CODEC_CX20583: case HDA_CODEC_CX20584: Now I can have a good nap thinking that somehow I contributed a tiny little bit to my favorite OS. Thank you so much, Alexander! Not only you helped me solve this problem that I had for several months, but you also got me interested in FreeBSD's internal code! On Wed, Oct 31, 2012 at 9:35 AM, Alexander Motin m...@freebsd.org wrote: On 31.10.2012 03:00, Big Yuuta wrote: Yes, actually I'm using sysctl hw.snd.verbose=4 to understand what's happening inside. From my tests, it's not a sense redirection problem. Because, when I unmute everything, and then I plug a headphone, the sound goes to the headphone and the internal speaker is mutted, and when I unplug it, the internal speaker gets the sound, and (nid 26: the headphone) is mutted. So, anyway, I'm still debugging it and I found out that I don't have to unmute everything, I just have to make sure that nid=15 is never mutted. i.e. the test I wrote in my last email could be more precise like this: hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid, int index, int lmute, int rmute, int left, int right, int dir) { uint16_t v = 0; if(nid == 15){ //just don't mute nid15, and it works lmute = 0; rmute = 0; } Strange thing is from my dmesg here: http://dpaste.com/818967/plain/ I thought that nid 15 wasn't used. hdaa0: nid: 15 [DISABLED] hdaa0:Name: audio mixer hdaa0: Widget cap: 0x0020010a hdaa0: Input amp: 0x8000 hdaa0: mute=1 step=0 size=0 offset=0 hdaa0: connections: 2 hdaa0: | hdaa0: + [DISABLED] - nid=2 [audio output] hdaa0: + [DISABLED] - nid=11 [audio mixer] Maybe it's disabled because others were disabled for other reasons? I honestly don't grok the whole thing yet. The driver reports as disabled all parts of the CODEC that are unused in specific configuration. It is quite usual to have half of CODEC unused. To avoid unexpected effects driver mutes all disabled controls. According to information reported by CODEC, this mixer is really unused. I see no problem from the driver side there. We, IMVHO, probably just should add a patch inside hdaa_patches.c for this case: case HDA_CODEC_ALC269: if (subid == 0x10438437){ //0x10438437 is my subsystem id. w = hdaa_widget_get(devinfo, 15); if(w != NULL) //some magic to unmute it ? } break; What do you think? I think Realtek engineers got crazy. They not only created several different CODECs sharing the same ID (my laptop also uses variant of ALC269, but it has no such problem), but also violated their own specs and information reported by CODEC. Patch below should hide problematic muter from the driver. Solution is far from perfect, but that is best I can propose without having more information. Please test it and report about results. --- hdaa_patches.c (revision 242352) +++ hdaa_patches.c (working copy) @@ -541,6 +541,21 @@ hdaa_patch(struct hdaa_devinfo *devinfo) if (w != NULL) w-connsenable[0] = 0; break; + case HDA_CODEC_ALC269: + /* +* ASUS EeePC 1001px has strange variant of ALC269 CODEC, +* that mutes speaker if unused mixer at NID 15 is muted. +* Probably CODEC incorrectly reports internal connections. +* Hide that muter from the driver. There are several CODECs +* sharing this ID and I have not enough information about +* them to implement more universal
Re: Famp Server
Hamisi Jabe wrote: i started installing apache22 and it worked, then i installed mysql it worked fine, also when i installed php5 it worked fine too but when i browse php file it displays the codes not the information like i created a php file to display the current settings ?php echo phpinfo(); ? in the /usr/local/www/apache22/data directory i did everything as root http://www.iceflatline.com/2011/11/how-to-install-apache-mysql-php-and- phpmyadmin-on-freebsd/ check this tutorial which i used to configure the famp on my server [snip] Under the IfModule mime_module section in you httpd.conf try adding: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps and restart Apache. Also double check that the Apache PHP module was installed when you built PHP. There will be a line like the following: LoadModule php5_modulelibexec/apache22/libphp5.so -Mike ___ 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: 9.1 and gmirror with GPT?
On 2012-10-29 03:58, Jeremy Chadwick wrote: If you're truly using 4096-byte sectors disks -- specifically MECHANICAL hard disks (MHDDs) -- use of 4KByte alignment is fine. But if you ever plan on using an SSD the future, you need to align things to 1MBytes or 2MBytes. This is why Windows Vista and Windows 7 aligns its partitions to 1MByte boundaries. ...and quite honestly FreeBSD should too. I am aware 9.1-RELEASE supposedly addresses this -- however I have not determined if the alignment size chosen by the committer was 4096 or 1MB/2MB. I have a gut feeling it's the former, and that's bad. With 1MByte or 2MByte alignment, performance on 512-byte MHDDs would be fine, performance on 4096-byte MHDDs would be fine, and performance on SSDs would be fine. Next: in case it's not made clear to readers from Warren's statements: the magical 8 divisor he's using comes from 4096/512 (how many 512 bytes are there in a 4096-byte sector). Thus, for 1MByte alignment the value would be 1048576/512 or 2048. For 2MByte alignment the value would be 2097152/512 or 4096. Thank You Jeremy! In an effort to bring concluding info from the original thread, on some MRB partitioned drives (spinning media in this case) gpart seems unable to align the containing -t freebsd slice to 4K boundaries. However subsequent creation of -t freebsd-ufs and -t freebsd-swap partitions within the slice align correctly. To make this alignment on 1M boundaries instead of 4K boundaries the -a 1M should be used instead of -a 4K. Example gpart commands for MBR partition table aligned to 1M sector size for SSD: gpart create -s MBR mirror/gm0 gpart add -t freebsd -a 1M mirror/gm0 # ignore possible warning mirror/gm0s1 added, but partition is not aligned # create the bsdlabel partitions in slice 1 (s1) gpart create -s BSD mirror/gm0s1 gpart add -t freebsd-swap -a 1M -s 8g mirror/gm0s1 gpart add -t freebsd-ufs -a 1M mirror/gm0s1 # put bootcode on the MBR and mark the first slice active gpart bootcode -b /boot/mbr mirror/gm0 gpart set -a active -i 1 mirror/gm0 # put bootcode on the bsdlabel gpart bootcode -b /boot/boot mirror/gm0s1 ___ 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
Access packets directly from NIC
I believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) Yes, i need to view raw packets and check their protocol, e.g. whether they are ICMP packets or something else ... ___ 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-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: No sound from speaker, using Realtek ALC269 and snd_hda
On 31.10.2012 18:24, Big Yuuta wrote: No, that patch didn't do the trick for the simple reason that my actual subid was 0x84371043 and not 0x1043837 -you spot my mistake? ;-) So here's the one that finally got me sound with my Asus EeePC 1001px on the internal speaker: Now I can have a good nap thinking that somehow I contributed a tiny little bit to my favorite OS. Thank you so much, Alexander! Not only you helped me solve this problem that I had for several months, but you also got me interested in FreeBSD's internal code! Thank you for your contribution, it is really valuable, as there is no other way to handle such kind of hardware issues. I've just committed the patch to the HEAD branch and will merge it down to 8/9-STABLE in two weeks. -- Alexander Motin ___ 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: No sound from speaker, using Realtek ALC269 and snd_hda
On Wed, Oct 31, 2012 at 11:14 PM, Alexander Motin m...@freebsd.org wrote: On 31.10.2012 18:24, Big Yuuta wrote: No, that patch didn't do the trick for the simple reason that my actual subid was 0x84371043 and not 0x1043837 -you spot my mistake? ;-) So here's the one that finally got me sound with my Asus EeePC 1001px on the internal speaker: Now I can have a good nap thinking that somehow I contributed a tiny little bit to my favorite OS. Thank you so much, Alexander! Not only you helped me solve this problem that I had for several months, but you also got me interested in FreeBSD's internal code! Thank you for your contribution, it is really valuable, as there is no other way to handle such kind of hardware issues. I've just committed the patch to the HEAD branch and will merge it down to 8/9-STABLE in two weeks. -- Alexander Motin It was *my* pleasure! Thank you! ___ 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
ZFS HBAs with 8 ports?
I am looking for a fairly dense HBA for a ZFS system. I currently use LSI 2008 chip sets but the boards (e.g., 9211-8i) are limited to eight disks and I have twenty four disks, consuming four of my six MB slots. With two other cards, that leaves me no empty slots. I looked at the 9280-24i4e (I also need an external interface) but it appears MegaRAID+LSI-2108 /does not/ support JBOD, but that is also unclear. One of a few notes in LSI's configuration guide hints: NOTE Integrated MegaRAID displays new drives as Just a Bunch of Disks (JBOD). For MegaRAID, unless the inserted drive contains valid DDF metadata, new drives display as JBOD. Rebuilds start only on Unconfigured Good drives, so you have to change the new drive state from JBOD to Unconfigured Good to start a rebuild. That's far from a decleration of useful JBOD and I've seen the term JBOD to mean different things. Do you know of a fairly dense card known to be useful for ZFS? Can you comment on the 9280-24i4e? ___ 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
help with gpart
I am trying to put FreeBSD on an HP laptop. The use up all the partitions to I deleted the least useful one, shrunk the windows partition and tried to add freeBSD. gpart show: = 63 625142385 ada0 MBR (298G) 63 1985- free - (992k) 2048 407552 1 ntfs [active] (199M) 409600 311951360 2 ntfs (148G) 312360960 33- free - (16k) 312360993 283115448 4 freebsd (135G) 595476441 577575- free - (282M) 596054016 28880896 3 ntfs (13G) 624934912 207536- free - (101M) I do not have any flexibility as to where #4 is. I would like to use the 9.0 installer from this point but it wants to add BSD partitions to the 282M space. I am not sure after much man-ing and google-ing what gpart commands are required. I guess I could use sysinstall at this point but learning gpart seems like a good thing. I assume I need to do something like: gpart add set -a active -i 4 ada04 (not sure geom is correct) gpart bootcode -b /boot/boot0 ada04 and then add the mounts. I would like / swap /var 10g /usr 20g /home (the rest) but am somewhat lost about the syntax and geom values. thanks for any help _ Douglas Denault http://www.safeport.com d...@safeport.com Voice: 301-217-9220 Fax: 301-217-9277 ___ 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: help with gpart
On Wed, 31 Oct 2012, d...@safeport.com wrote: I am trying to put FreeBSD on an HP laptop. The use up all the partitions to I deleted the least useful one, shrunk the windows partition and tried to add freeBSD. gpart show: = 63 625142385 ada0 MBR (298G) 63 1985- free - (992k) 2048 407552 1 ntfs [active] (199M) 409600 311951360 2 ntfs (148G) 312360960 33- free - (16k) 312360993 283115448 4 freebsd (135G) 595476441 577575- free - (282M) 596054016 28880896 3 ntfs (13G) 624934912 207536- free - (101M) I do not have any flexibility as to where #4 is. I would like to use the 9.0 installer from this point but it wants to add BSD partitions to the 282M space. I am not sure after much man-ing and google-ing what gpart commands are required. I guess I could use sysinstall at this point but learning gpart seems like a good thing. I assume I need to do something like: gpart add set -a active -i 4 ada04 (not sure geom is correct) No, for slice 4, it would be ada0s4. For the MBR setup, bootcode must be added to both the MBR (ada0) and the slice. gpart bootcode -b /boot/boot0 ada04 and then add the mounts. I would like / swap /var 10g /usr 20g /home (the rest) but am somewhat lost about the syntax and geom values. thanks for any help bsdlabel partitions are created inside a slice. No idea whether the partition numbers being out of order will be a problem... gpart create -s bsd ada0s4 gpart bootcode -b /boot/boot ada0s4 Then add partitions inside that: gpart add -t freebsd-ufs -s 2g ada0s4 gpart add -t freebsd-swap -s 4g ada0s4 gpart add -t freebsd-ufs -2 10g ada0s4 ... I strongly suggest taking advantage of labels with the -l option. ___ 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