Hot answers tagged

3

Summary for future reference: The shebang points to /bin/bash but the source command makes the code run in a current shell which turned out to be csh. The code works on my bash on Debian and it doesn't work on my csh there, when invoked with source filename.sh. Yet it looks like the OP's intention was to run it with bash. To make it run with bash as ...


2

Not a direct answer to your question, but you could cryptsetup open, resize2fs to shrink your encrypted filesystem, cryptsetup close, parted resizepart to shrink the partition and mkpart a new one in the freed space, mkfs to create an unencrypted filesystem suitable for hassle-free data exchange. If you decide on that route you have to keep in mind that the ...


2

Have you tried with dd? That would give: dd if=/dev/sdb1 of=/dev/sda2 bs=1M


2

If all you want is to make ad0 bootable, you don't need the contents of the /dev and /proc file systems. They are dynamically generated by the kernel when you mount these file systems and access them. If the used disk space in ad6 (the clone source drive) is less than the size of the clone target, it should be possible to copy the source files using any ...


2

Client doesn't need to know IP address of the DHCP server. Client will send initial packet to all hosts within its subnet using broadcast address 255.255.255.255. For further reading you may refer to official documentation of DHCP protocol https://tools.ietf.org/html/rfc2132 To restart dhcp client on particular network interface (em0in your case), you may ...


1

You can use make.conf. See an old announce: The following variables can be used in make.conf to configure options. They are processed in the order listed below, i.e. later variables override the effects of previous variables. Options saved using the options dialog are processed right before OPTIONS_SET_FORCE. OPTIONS_SET - List of options to enable ...


1

The localhost entry is always "the machine you are currently logged in to". It's also referred to as loopback, though that's more the interface name than the host name. The IP address is 127.0.0.1.


1

Yes, for PC-BSD you can install programs using the Appcafe, packages or ports. They MAY conflict. I exclusively use packages (or ports) and avoid the Appcafe at all costs. I don't remember why, just that I had issues with it years ago. The package system is installed by default. If you need ports you can portsnap them or git them (see what I did there??) ...


1

It is as the LWN article states "when you write out a block, you lock it and iterate through the records of individual changes to this block. For each individual change whose dependencies haven't yet been satisfied, you undo that change to the block, and then write out the resulting block." However the part of visualizing this whole process was difficult and ...


1

To make the console mode permanent, add a line to /etc/rc.conf: allscreens_flags="MODE_332" (substitute your desired mode number for 332 of course.)



Only top voted, non community-wiki answers of a minimum length are eligible