Re: CMI8788 audio card/chip support
On Wed, 29 Aug 2012 22:50:22 +, James Powell wrote: kldload snd_driver only detected my USB Headset and loaded theusb audio driver. It did not detect my CMI8788 (ASUS Xonar DX PCIe)and snd_cmi does not support it. cat /dev/sndstat generated this: FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)Installed devices:pcm0: USB audio (play/rec) default Which is my Logitech USB headset, not my PCIe sound card. The boot generated a message stating Unsupported Sound Carddetected. Please contact li...@support.freebsd.org with soundcard make and model. That would be a good thing to do. On Wed, 29 Aug 2012 23:01:31 +, James Powell wrote: This also was generated at startup: none3@pci0:5:4:0: class=0x040100 card=0x82751043 chip=0x878813f6 rev=0x00 hdr=0x00 vendor = 'C-Media Electronics Inc' device = 'CMI8788 [Oxygen HD Audio]' class = multimedia subclass = audio That information could be useful for the person who maintains the cmi sound card driver. Maybe it's possible to take those IDs (card=0x82751043 chip=0x878813f6) and temporarily patch them into the cmi driver, to try if it then will recognize the device and handle it (maybe with limited functionality)? I know a similar approach has been possible to magically activate some incompatible USB hardware... -- 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
[SOLVED] Re: cannot build any pkg depending on glibmm on poudriere
On Sat, 4 Aug 2012 12:36:16 +0200 Christopher J. Ruwe c...@cruwe.de wrote: Currently, I am failing to compile the packages for my machines with poudriere due to some error with glibmm, which I am unable to trace. The problem seems to be (at least from my point of view), that a dependancy to libsigc++ is not resolved corectly. As no PR has been filed yet and the problem persists with my builds for about two weeks, I expect the error is mine. Refraining from spamming the list, I include a snippet from the build-logs which is exemplary for all others which somehow depend on glibmm: === Returning to build of atkmm-2.22.5 === atkmm-2.22.5 depends on shared library: glibmm-2.4.1 - not found ===Verifying install for glibmm-2.4.1 in /usr/ports/devel/glibmm === Installing existing package /usr/ports/packages/All/glibmm-2.28.2,1.txz Installing glibmm-2.28.2,1...Installing gamin-0.1.10_4...Installing glib-2.28.8_4...Installing pcre-8.31\ ... done Installing perl-threaded-5.14.2_2...Removing stale symlinks from /usr/bin... Skipping /usr/bin/perl Skipping /usr/bin/perl5 Done. Creating various symlinks in /usr/bin... Symlinking /usr/local/bin/perl5.14.2 to /usr/bin/perl Symlinking /usr/local/bin/perl5.14.2 to /usr/bin/perl5 Done. Cleaning up /etc/make.conf... Done. Spamming /etc/make.conf... Done. done Installing python27-2.7.3_3... done No schema files found: doing nothing. done done Installing gio-fam-backend-2.28.8_1... done missing dependency libsigc++-2.2.10 Failed to install the following 1 package(s): /usr/ports/packages/All/glibmm-2.28.2,1.txz Does anybody have any idea on how to resolve that issue? Cheers, Applying ports/170087: [Patch] ports-mgmt/poudriere: fix quoting for poudriere solved the problem. Cheers, -- Christopher J. Ruwe TZ: GMT + 2h signature.asc Description: PGP signature
Force disk with old GPT label to be recognized as MBR one
Hello there, people! I have a FreeBSD box with 9.1-RC3 i386 and an interesting HDD. It was patitioned with GPT and zfs some (long) time ago. After that the hdd has been completely repartitioned with MBR scheme and one single freebsd (165) partition and one slice there. It worked fine in 7.2, but now i have to get the data from that slice and when i connect the hdd to 9.1 box, it finds old corrupt GPT label (i suppose, it's backup GPT header somewhere in the end of actual disk) and does not recognize the MBR scheme there. It sees no freebsd partitions (and one exists there, for sure :) ). So my question is: how do i force the system to ignore old corrupt GPT header on this hdd, or how do i remove the header, or is there any workaround possible? This is what gpart says about this disk: [11:54][border][~] # gpart show ada1 =34 1250263661 ada1 GPT (596G) [CORRUPT] 34 256 1 freebsd-boot (128k) 290 838860800 2 freebsd-zfs (400G) 838861090 411402605- free - (196G) And this is what fdisk says: [11:54][border][~] # fdisk ada1 *** Working on device /dev/ada1 *** parameters extracted from in-core disklabel are: cylinders=1240341 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1240341 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 1250258562 (610477 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 14/ sector 63 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED So fdisk sees everything fine. Thank you a lot guys! -- ~~~ WBR, Vitaliy Turovets Systems Administrator Corebug.Net +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
where is all terminal output sent if the controlling terminal is closed?
I occasionally build ports with extra logs enabled. When I then launch such programs from, say xterm on the background (), I get lots of output on the controlling terminal. If I then close the terminal, where does all the output goes? I presume it's still being sent to the PID of the parent xterm. But this process no longer exists, so what happens then? Thanks Anton ___ 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: Force disk with old GPT label to be recognized as MBR one
On Thu, Aug 30, 2012 at 1:54 AM, Виталий Туровец core...@corebug.net wrote: So my question is: how do i force the system to ignore old corrupt GPT header on this hdd, or how do i remove the header, or is there any workaround possible? dd if=/dev/zero of=/dev/ada1 bs=64k ___ 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: Force disk with old GPT label to be recognized as MBR one
2012/8/30 Michael Sierchio ku...@tenebras.com: On Thu, Aug 30, 2012 at 1:54 AM, Виталий Туровец core...@corebug.net wrote: So my question is: how do i force the system to ignore old corrupt GPT header on this hdd, or how do i remove the header, or is there any workaround possible? dd if=/dev/zero of=/dev/ada1 bs=64k Well, i thought that my need to get files from hdd is easy enough to understand from my original message:) -- ~~~ WBR, Vitaliy Turovets Systems Administrator Corebug.Net +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: Wifi for Lenovo Laptop
From: Waitman Gobble gobble...@gmail.com To: Chris devnullacco...@yahoo.se Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Wednesday, August 29, 2012 6:51 PM Subject: Re: Wifi for Lenovo Laptop On Aug 29, 2012 8:44 AM, Chris devnullacco...@yahoo.se wrote: Hi, I've tried to search the lists but can't find anything, but please point me to an existing resource if available. I recently got a Lenovo ThinkPad Edge E530 (3259-9VG) laptop and would like to get the Wifi card running (fresh FreeBSD 9.0 install), but I'm failling as it has been at least 5 years since I used with wifi under FreeBSD. The card is not automatically detected (interface not listed in ifconfig) so I'm assuming I have to either load a kernel module or go the NDIS path. It seems like on Windows, the same driver is used for E430, E435, E530 and E535, so in case anyone is using one of these models, please let me know if have things running. So some questions that might point me in the right direction: - How can I find out which type of card this laptop actually has (can I read it out of dmesg, some PCI listing or whatever)? All I can find are product sheets saying that it has 11b/g/n, but doesn't help me to find a driver. I Is there some meta-module that loads all the native wifi drivers that I can use that I can test? - If I need to use NDIS emulation, does anyone think it will work for this model/card? Windows drivers can be found here http://support.lenovo.com/en_US/product-and-parts/default.page). The handbook (http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html#CONFIG-NETWORK-NDIS) says I need Win XP drivers, is that old text or do I need that? I can't find XP drivers on the lenovo page... - If NDIS should be possible, how do I extract the .sys and .inf file from the exe that I downloaded from the URL above (I don't have any Windows machine right now). TIA, 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 hi, you can usually find replacement wifi cards for your model on ebay, this can give you an idea of the chipset. also, you could always pull off the panel and look at the card. ndis can be tricky because it needs an older 32 bit driver, and you need to run a 32 bit version of FreeBSD. a good solution is to find a ralink or atheros card on ebay and swap it out, usually will cost less than 10 bucks USD. Waitman Gobble San Jose California USA Hi Waltman, jb and Daniel, (sorry for not replying to the latest email in the thread, something is wrong with my email account) Thanks very much for the help, it is really appreciated. I called Lenovo support and the only info they had was that it was an Intel card, so that's the same info as jb had tracked down (and I also found myself). Using pciconf as per jb's hint tells me it is a broadcom I have: none3@pci0:3:0:0: class=0x028000 card=0x060814e4 chip=0x472714e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM4313 802.11b/g/n Wireless LAN Controller' class = network As per the release notes for 9.0 (http://www.freebsd.org/releases/9.0R/hardware.html#WLAN), the bwn(4) driver be the one to use. Added the following to my /boot/loader.conf following the instructions in http://www.freebsd.org/doc/en/books/handbook/network-wireless.html and rebooted. if_bwn_load=YES wlan_wep_load=YES wlan_ccmp_load=YES wlan_tkip_load=YES (also tried the bwi(4) driver instead of bwn) I still don't get anything in dmesg or ifconfig. So either I have missed some step, or this specific card isn't supported by the bwn/bwi drivers. Anyone have any further ideas? If not, I'll try to track down some USB WLAN card that is supported, as I've also heard the same thing as Daniel, i.e. that non-Lenovo cards are blocked by the BIOS if you try to replace the default one. BR, 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: Force disk with old GPT label to be recognized as MBR one
On Thu, Aug 30, 2012 at 4:18 AM, Виталий Туровец core...@corebug.net wrote: Well, i thought that my need to get files from hdd is easy enough to understand from my original 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
utx.log doesn't update for Samba unmounts
Hello, I'm running 9.1-PRERELEASE (built Aug 1) with Samba 3.6 from ports. I've noticed that the last command's output shows still logged in for all previous smb connections since the last shutdown. However, smbstatus seems accurate, showing only a handful of users connected. For instance, right now, 'last' shows 500 users still logged in, when it's really only a few. I discovered this via a Nagios alert that I had a couple hundred users logged in. The last time I had active SMB/CIFS users was in May of this year, and I don't recall this happening then (judging from Nagios), but that was 9.0-RELEASE. Can anyone reproduce this or does anyone have any ideas? Thanks ___ 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: Force disk with old GPT label to be recognized as MBR one
On Thu, 30 Aug 2012, ??? ??? wrote: Hello there, people! I have a FreeBSD box with 9.1-RC3 i386 and an interesting HDD. It was patitioned with GPT and zfs some (long) time ago. After that the hdd has been completely repartitioned with MBR scheme and one single freebsd (165) partition and one slice there. It worked fine in 7.2, but now i have to get the data from that slice and when i connect the hdd to 9.1 box, it finds old corrupt GPT label (i suppose, it's backup GPT header somewhere in the end of actual disk) and does not recognize the MBR scheme there. In case it has not been said: make a full backup of everything on that disk first using dd. Erasing the last 34 blocks or 17048 bytes of the disk will erase the backup GPT. It may be enough to erase just the very last block. # diskinfo -v /dev/ada1 /dev/ada1 512 # sectorsize 256060514304# mediasize in bytes (238G) 500118192 # mediasize in sectors # : Not tested, could be off by one! # dd if=/dev/zero of=/dev/ada1 bs=512 seek=500118191 Force a retaste with 'true /dev/ada1', then see what gpart shows. If the drive is still seen as GPT, adjust the seek to begin at (mediasize in sectors) - 34. ___ 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: Wifi for Lenovo Laptop
On Thu, 30 Aug 2012, Chris wrote: Using pciconf as per jb's hint tells me it is a broadcom I have: none3@pci0:3:0:0: class=0x028000 card=0x060814e4 chip=0x472714e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM4313 802.11b/g/n Wireless LAN Controller' class = network As per the release notes for 9.0 (http://www.freebsd.org/releases/9.0R/hardware.html#WLAN), the bwn(4) driver be the one to use. Added the following to my /boot/loader.conf following the instructions in http://www.freebsd.org/doc/en/books/handbook/network-wireless.html and rebooted. if_bwn_load=YES wlan_wep_load=YES wlan_ccmp_load=YES wlan_tkip_load=YES The last three are included in the GENERIC kernel. The bwi and bwn drivers need firmware, which is provided by the net/bwi-firmware-kmod and net/bwn-firmware-kmod ports. So install whichever is appropriate. I think the driver tries to load the right firmware automatically, but haven't tried a Broadcom in a while, and it might still be necessary to load the firmware module in /boot/loader.conf. ___ 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: Wifi for Lenovo Laptop
- Original Message - From: Warren Block wbl...@wonkity.com To: Chris devnullacco...@yahoo.se Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org; Waitman Gobble gobble...@gmail.com Sent: Thursday, August 30, 2012 3:58 PM Subject: Re: Wifi for Lenovo Laptop On Thu, 30 Aug 2012, Chris wrote: Using pciconf as per jb's hint tells me it is a broadcom I have: none3@pci0:3:0:0: class=0x028000 card=0x060814e4 chip=0x472714e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM4313 802.11b/g/n Wireless LAN Controller' class = network As per the release notes for 9.0 (http://www.freebsd.org/releases/9.0R/hardware.html#WLAN), the bwn(4) driver be the one to use. Added the following to my /boot/loader.conf following the instructions in http://www.freebsd.org/doc/en/books/handbook/network-wireless.html and rebooted. if_bwn_load=YES wlan_wep_load=YES wlan_ccmp_load=YES wlan_tkip_load=YES The last three are included in the GENERIC kernel. The bwi and bwn drivers need firmware, which is provided by the net/bwi-firmware-kmod and net/bwn-firmware-kmod ports. So install whichever is appropriate. I think the driver tries to load the right firmware automatically, but haven't tried a Broadcom in a while, and it might still be necessary to load the firmware module in /boot/loader.conf. ___ Hi Warren, thanks. Tried with the firmware as well but no better luck. On closer inspection of the bwn manual, it seems like the 4313 is not on the list of suppored versions. What I did find though was that it is supposedly possible to get working using NDIS (even with amd64) as per this PC-BSD wiki page http://wiki.pcbsd.org/index.php/Wireless_Testing I might try the NDIS, but will first see if I can find a USB card as the 'net seems to be full of talk about instability of the NDIS driver for the 4313. Thanks to everyone for the help! BR, 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: pkgng questions
--- On Thu, 8/30/12, Matt Burke mattbli...@icritical.com wrote: From: Matt Burke mattbli...@icritical.com Subject: Re: pkgng questions To: Mark Felder f...@feld.me Cc: po...@freebsd.org Date: Thursday, August 30, 2012, 7:44 AM On 08/30/12 13:01, Mark Felder wrote: I think you're very confused about what pkgng is for. At this time, ports are STILL the recommended way to install things and keep them up to date. Really? I think the last time I compiled X or a web browser (until using poudriere) was about 10 years ago. I mix packages and ports here, heavily using zsh;/var/db/pkg/;pipes;portmaster and a thumbdrive(ftp) to other machines Pkgng is the first step required for us to get a better package management system so we can shift the community towards primarily using packages. I like packages - they save me compiling massive things on my desktop and they let me keep my servers running exactly the same software built from our CI setup. 'make package' is so quick and easy, it'd be hard to beat. So I thought I'd get a grip on pkgng before pkg_* disappears from base. I had a couple of questions I wanted to answer - 1) How easy does it make keeping my desktop (currently releng/9.1 built with dtrace) up-to-date 2) How much easier will it be to maintain production and testing servers? The answer has made me start downloading an OpenIndiana iso. 2. Is there a list of ports like nvidia-driver, nspluginwrapper, linux-f10-flashplugin, sampleicc (dependency of libreoffice!) which aren't in pkgng? Everything can be built into the pkgng format except a few ports that need workarounds. There's a list on the wiki. http://wiki.freebsd.org/pkgng Go to the bottom Known Failures section. I don't see any of the examples I gave listed, apart from nvidia-driver 3. How do I force pkg to install/upgrade a single package, regardless of dependencies being out of date? You should never try to do this anyway; you'll end up with packages built against the wrong versions of libraries. You're suggesting that I should upgrade an entire machine which may have proven itself over a period of years to be perfectly stable, just because I need a small utility which really doesn't care about the man page typo which caused gettext-0.1.2_3 to change to gettext-0.1.2_4? Notable here, things which depend upon firefox; gcc46; ... 4. How do I get poudiere to build against a local src/obj tree, or a zfs snapshot of a pre-built jail, instead of 9.0-RELEASE? The poudriere man page has all the instructions needed to create jails of any release version to be used for building packages. No, the man page doesn't mention anything about specifying where to pull the distribution from, only what method of access to use. You don't do it this way. You build everything on your poudriere server and push all of your packages to the client. You do this every single time. If you decide you want a new package on your client, you build it on your poudriere server and have your client request it. If you're using poudriere/pkgng, your clients should NEVER be compiling ports or installing packages outside of what your poudriere server is providing. Poudriere is giving you a cleanroom environment where it can guarantee that all the packages and their required packages/libraries are sane. Pkgng doesn't require ZFS -- poudriere does. Your clients should never have poudriere. I am confused. If pkg_* are removed, how is a person with a single desktop machine (worst case, a netbook) expected to operate if they need a specific port build? Are they to spend a week compiling 1000+ ports themselves in a poudriere VM? Or is the flexibility of FreeBSD ports just not deemed to be useful to the end user (or person unable to provide a dedicated any more? I am also perplexed; (unconvinced; ignorant...).. Waiting for a more comprehensive comparison to what exists now. And I've read the documentation thoroughly, but not enough times to fully comprehend all the strata... 8. Is there a pkgng equivalent of 'ls -lt /var/db/pkg' without firing up sqlite? Are you looking for the date column (not sure why that's useful as it can change due to many things)? Doesn't pkg info -a suffice? 'ls -lt /var/db/pkg' will show me what packages were installed sorted by day. It is very useful on servers which aren't routinely upgraded to the latest and greatest untested versions /var/db/pkg/ here is also indispensable, ( which I detailed precisely why in a message to the freebsd-current list, this month... ) Until I'm forced to upgrade to /pkg/ instead (I've workarounds and maybe a PR or two (feature req.) thought out...), I see this as a fork of the package registration API to something less useful to some, more useful to others (those using less ports than the number I've
Re: Wifi for Lenovo Laptop
On Aug 30, 2012 7:17 AM, Chris devnullacco...@yahoo.se wrote: - Original Message - From: Warren Block wbl...@wonkity.com To: Chris devnullacco...@yahoo.se Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org; Waitman Gobble gobble...@gmail.com Sent: Thursday, August 30, 2012 3:58 PM Subject: Re: Wifi for Lenovo Laptop On Thu, 30 Aug 2012, Chris wrote: Using pciconf as per jb's hint tells me it is a broadcom I have: none3@pci0:3:0:0: class=0x028000 card=0x060814e4 chip=0x472714e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM4313 802.11b/g/n Wireless LAN Controller' class = network As per the release notes for 9.0 (http://www.freebsd.org/releases/9.0R/hardware.html#WLAN), the bwn(4) driver be the one to use. Added the following to my /boot/loader.conf following the instructions in http://www.freebsd.org/doc/en/books/handbook/network-wireless.html and rebooted. if_bwn_load=YES wlan_wep_load=YES wlan_ccmp_load=YES wlan_tkip_load=YES The last three are included in the GENERIC kernel. The bwi and bwn drivers need firmware, which is provided by the net/bwi-firmware-kmod and net/bwn-firmware-kmod ports. So install whichever is appropriate. I think the driver tries to load the right firmware automatically, but haven't tried a Broadcom in a while, and it might still be necessary to load the firmware module in /boot/loader.conf. ___ Hi Warren, thanks. Tried with the firmware as well but no better luck. On closer inspection of the bwn manual, it seems like the 4313 is not on the list of suppored versions. What I did find though was that it is supposedly possible to get working using NDIS (even with amd64) as per this PC-BSD wiki page http://wiki.pcbsd.org/index.php/Wireless_Testing I might try the NDIS, but will first see if I can find a USB card as the 'net seems to be full of talk about instability of the NDIS driver for the 4313. Thanks to everyone for the help! BR, 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 it would be cool if the 4313 worked, i've got a couple of those sitting around here. ill check out that link, thanks. as far as usb goes, I recommend an ralink based device, like older d_link dongles. (i think anything new on the shelf is using atheros, usb support not working afaik) ... all the usb ralink devices I found on ebay work perfectly. (there are even some that have a boosted range of 3km lol) as far as the bios whitelist, I have an hp with that kind of problem. there are several ways around it, but they are all dirty/suspect. luckily I found an ralink that sailed through the detection. you should be able to find out what lenovo sells as replacement parts to get an idea of what they /approve/ Waitman Gobble San Jose California ___ 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: Force disk with old GPT label to be recognized as MBR one
2012/8/30 Warren Block wbl...@wonkity.com: On Thu, 30 Aug 2012, ??? ??? wrote: Hello there, people! I have a FreeBSD box with 9.1-RC3 i386 and an interesting HDD. It was patitioned with GPT and zfs some (long) time ago. After that the hdd has been completely repartitioned with MBR scheme and one single freebsd (165) partition and one slice there. It worked fine in 7.2, but now i have to get the data from that slice and when i connect the hdd to 9.1 box, it finds old corrupt GPT label (i suppose, it's backup GPT header somewhere in the end of actual disk) and does not recognize the MBR scheme there. In case it has not been said: make a full backup of everything on that disk first using dd. Erasing the last 34 blocks or 17048 bytes of the disk will erase the backup GPT. It may be enough to erase just the very last block. # diskinfo -v /dev/ada1 /dev/ada1 512 # sectorsize 256060514304# mediasize in bytes (238G) 500118192 # mediasize in sectors # : Not tested, could be off by one! # dd if=/dev/zero of=/dev/ada1 bs=512 seek=500118191 Force a retaste with 'true /dev/ada1', then see what gpart shows. If the drive is still seen as GPT, adjust the seek to begin at (mediasize in sectors) - 34. Thank you a lot! It worked like a charm! -- ~~~ WBR, Vitaliy Turovets Systems Administrator Corebug.Net +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: Upgrading 9.1-BETA1 - 9.1-RC1
Hi That is wrong, this worked for me on one of my servers since I did it straight away (as soon as I saw the release for rc1. FreeBSD warsol 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 that was beta1, and I used freebsd-update to upgrade it! Now, on another server i would like to do I have the same error as the OP. Go to: http://update3.freebsd.org/ Simple put, someone has deleted the whole BETA1 directory/brach!? WHY!? is there another way we can accept the key. or is that data needed.. Can we get the branch restored? It does work. Rebuilding world is so painful. thanks -- View this message in context: http://freebsd.1045724.n5.nabble.com/Upgrading-9-1-BETA1-9-1-RC1-tp5737452p5739453.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
NFSv4 ACL permissions setting
Hello all- I've set up ZFS on a FreeBSD 9.0 64-bit server recently. One of the things I've had to learn relates to NFSv4 ACLs. I've developed two scripts to reset permissions- one for files and the other for folders. I've run into an issue with executing a script to set permissions on a bunch of folders. The root filesystem is /data. There are a bunch of subfolders followed by more subfolders. Allow me to demonstrate as follows: dougs@dorado:/# getfacl ./data # file: ./data # owner: root # group: DSP-production group:DSP-production:rwxpDdaARWcCos:fd:allow group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:r-x---a-R-c--s:--:allow dougs@dorado:/# cd data dougs@dorado:/data# ll total 45 drwxrwx---+ 5 root DSP-production 5 Aug 28 10:27 ADS-New drwxrwx---+ 60 root DSP-production 118 Aug 27 14:17 ADS-OLD [ .. snip .. ] drwxrwx---+ 12 root DSP-production12 Aug 27 14:16 WorkinProgress dougs@dorado:/data# getfacl ./ADS-New/ # file: ./ADS-New/ # owner: root # group: DSP-production group:DSP-production:rwxpDdaARWcCos:fd:allow group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:--a-R-c--s:--:allow dougs@dorado:/data# cd ./ADS-New/ dougs@dorado:/data/ADS-New# ll total 9 drwxrwx---+ 5 root nobody 7 Aug 27 14:20 Artworks drwxrwx---+ 4 root nobody 4 Jul 17 12:12 ForDSP drwxrwx---+ 78 root nobody 78 Jul 23 13:17 ForMarketing dougs@dorado:/data/ADS-New# /root/bin/reset-perms-prod-mkt-dirs.sh dougs@dorado:/data/ADS-New# getfacl ./Artworks/ # file: ./Artworks/ # owner: root # group: nobody group:DSP-production:rwxpDdaARWcCos:fd:allow - group:DSP-production:rwxpDdaARWcCos:fd:allow - group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:--a-R-c--s:--:allow dougs@dorado:/data/ADS-New# cd Artworks/ dougs@dorado:/data/ADS-New/Artworks# ll total 4234 drwxrwx---+ 2 root nobody2 Jul 17 12:08 Ask JoeS drwxrwx---+ 2 root nobody 10 Jul 17 12:12 Cool - AD d-w-rwx---+ 2 DSP-alfredo nobody2 Aug 27 14:20 Jaye Additional Art -rwxrwx---+ 1 root DSP-production 3770445 Mar 11 2010 comingsoonIntNepal.pdf -rwxrwx---+ 1 root DSP-production 415338 Mar 11 2010 previewcopy.pdf dougs@dorado:/data/ADS-New/Artworks# cd Ask\ JoeS/ dougs@dorado:/data/ADS-New/Artworks/Ask JoeS# cd .. dougs@dorado:/data/ADS-New/Artworks# getfacl Ask\ JoeS/ # file: Ask JoeS/ # owner: root # group: nobody group:DSP-production:rwxpDdaARWcCos:fd:allow - group:DSP-marketing:rwxpDdaARWcCos:fd:allow owner@:rwxpDdaARWcCos:fd:allow group@:rwxpDdaARWcCos:fd:allow everyone@:--a-R-c--s:--:allow dougs@dorado:/data/ADS-New/Artworks# As you can see, the ADS-New folder where I executed the script shows duplicate entries of the DSP-production group whereas the Ask Joe subfolder underneath the ADS-New folder shows only one DSP-production group. If I run this script on the ADS-OLD folder, I see the same effect- only the first level of subfolders get duplicate DSP-production entries while the rest of the subfolders only contain one entry of the DSP-production group. Why is this happening? The contents of the /root/bin/reset-perms-prod-mkt-dirs.sh is as follows: #!/bin/sh # run this script where you wish to effect the changes # reset perms to default find . -type d -print0 | xargs -0 setfacl -b * # apply perms to files find . -type d -print0 | xargs -0 setfacl -m group@:full_set:fd:allow * find . -type d -print0 | xargs -0 setfacl -m owner@:full_set:fd:allow * find . -type d -print0 | xargs -0 setfacl -m g:dsp-marketing:full_set:fd:allow * find . -type d -print0 | xargs -0 setfacl -m g:dsp-production:full_set:fd:allow * Um? Am I missing something? ~Doug ___ 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