I am new to Ubuntu and have a quesion:  I have Ubuntu 16.04 running on VMware. My initial setup had one disk. I added another 2 disk (one 2GB and one 1GB). Now I want to add them to the Ubuntu, how can I do that? First I know I should format them but when I want run fdisk command I get this error:  Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xd5a1dff9.  Command (m for help):   And here is my disk info:    *-disk:0                        description: SCSI Disk        physical id: 0.0.0        bus info: scsi@32:0.0.0        logical name: /dev/sda        size: 10GiB (10GB)        capabilities: partitioned partitioned:dos        configuration: logicalsectorsize=512 sectorsize=512 signature=bcc12dac   *-disk:1        description: SCSI Disk        physical id: 0.1.0        bus info: scsi@32:0.1.0        logical name: /dev/sdb        size: 1GiB (1073MB)        configuration: logicalsectorsize=512 sectorsize=512   *-disk:2        description: SCSI Disk        physical id: 0.2.0        bus info: scsi@32:0.2.0        logical name: /dev/sdc        size: 2GiB (2147MB)        configuration: logicalsectorsize=512 sectorsize=512   *-cdrom        description: DVD-RAM writer        physical id: 0.0.0        bus info: scsi@3:0.0.0        logical name: /dev/cdrom        logical name: /dev/cdrw        logical name: /dev/dvd        logical name: /dev/sr0        capabilities: audio cd-r cd-rw dvd dvd-r dvd-ram        configuration: status=open   My question is how to solve this issue using command only?
I want to know how to format a storage drive from the terminal. Helpful things to provide in the answer would be often used options for commands and base knowledge that one can use to extrapolate future uses. Specifically I would like to know how to format in the different file systems such as NTFS, FAT32, EXT4, etc. Information on how to partition the drive via terminal is also wanted.  I am trying to format a high capacity external hard drive (EHDD) into NTFS - from the terminal.   I know I can use gparted for this as well as other GUI programs, but I still want to now how to do it from the terminal.
Can markdown mini replace an en dash with a normal hyphen in URLs? I'm wondering how to approach duct work, piping, and wiring? In the past, I have used the spin tool to make corners, but I find it very cumbersome. How do you do duct work and piping? I have seen people use curves, but I find it's hard to get straight 90 degree angles or just uniform angling across the whole model. It's also hard connecting piping together if they started from different locations. Here's some reference: What was the inspiration for the design of R2-D2? Looking at R2-D2, I can't think of any robots I've seen in science fiction that vaguely resemble R2D2's design.  What was the inspiration for the design of R2-D2? I need to make a converter to go from RS422 full duplex to my Arduino. I have found lots of different chips which I think can do this, but am slightly confused by the terminology. The RS422 device is a laser distance sensor ().  It has RX+, RX-, TX+, TX-. So I have two lines for input and two lines for output.  I could use two RS485 line drivers to achieve the full duplex comms which I need.  There are a lot of chips to do that.  But then on my Arduino (clone: chipkit max32) would I need to use two UART channels? And then alternate which one I am sending each byte on?  The device uses 4 byte instructions. So if I wanted to send an instruction would I send Serial1(firstByte) then Serial2(secondByte), Serial1(thirdByte), Serial2(fourthByte)?   And then receive data the same way? I feel like I am missing something and can do this on one UART channel but am not sure how. How do I use reflection to call a generic method? I've got a PHP script that needs to invoke a shell script but doesn't care at all about the output. The shell script makes a number of SOAP calls and is slow to complete, so I don't want to slow down the PHP request while it waits for a reply. In fact, the PHP request should be able to exit without terminating the shell process.  I've looked into the various exec(), shell_exec(), pcntl_fork(), etc. functions, but none of them seem to offer exactly what I want. (Or, if they do, it's not clear to me how.) Any suggestions? Capacitor discharging through no load? What exactly would happen in the ideal case where a capacitor were to discharge into a wire with zero resistance?  Like in here:  There is still charge on one plate of the capacitor, which will try to go to the other plate to make $\Delta V = 0$ across the capacitor, so there has to be a current $I$.  But as more charge goes to the other side of the capacitor, the more repulsion these will cause to more coming towards them. So I am assuming current cannot just be constant?  I am starting from $$ I = C \frac{dV}{dt}, $$ but I know neither $V(t)$ nor $I$. Limit of $x\left(\left(1 + \frac{1}{x}\right)^x - e\right)$ when $x\to\infty$ I am stuck on how to calculate the following limit: $$\lim_{x\to\infty}x\left(\left(1 + \frac{1}{x}\right)^x - e\right).$$  Definitely, it has to be through l'Hôpital's rule. We know that $\lim_{x\to\infty} (1+(1/x))^x = e$. So, I wrote the above expression as $$\lim_{x\to\infty}\frac{\left(1 + \frac{1}{x}\right)^x - e}{1/x}.$$Both numerator and denominator tend to zero as x tends to infinity. I applied l'Hôpital's rule twice, but I got the limit equal to infinity which is clearly wrong. In the book, it says that the limit should be $-e/2$.  Any help please? Also, in case someone managed to solve it, please tell me which numerator and denominator did you apply your l'Hôpital's rule to in both cases? Thanks a lot  Also, guys can you tell me how to write equations in this forum? Thanks. Where can I leave luggage in Frankfurt, either airport or train station? I need to find a place to leave my luggage in lockers for 2 days in Frankfurt, either the airport (Terminal 1) or at the train station. I have to go by train to Stuttgart for 2 days without luggage. The luggage is 5 bags, 28 inches. Is there a way to move a Trello Checklist to a different Card? I often need to consolidate (combine) Checklists from a couple of Cards into one Card.  Any way to do this? Radical change of favourite tags doesn't reflect in questions list There's vs There are For example:     There's two options here   or     There are two options here   I hear a lot of people say the first line (or something similar), but isn't that incorrect? Isn't it plural and therefore you should use "there are"? What laptop specs are important for intensive image editing work? How important is the following in purchasing a laptop that will be used for image editing:   processor speed amount of RAM integrated vs. dedicated graphics card HD speed (SSD; or 5400/7200/10000 rpm) Execute a script upon logout/reboot/shutdown in Ubuntu I'd like to run a .sh file using bash on logout and shutdown of Ubuntu. I have searched up and down the web and have found only fixes for KDE and GNOME. The script is simple, I just need to know if I can add the line of code to the "logoff/shutdown" file or if I need to reference it in another script. Why would a company care about the price of its own shares in the stock market? Rich Snippets not working (and working at the same time?) What are all the member-functions created by compiler for a class? Does that happen all the time? If $x^{2}-x\in Z(R)$ for all $x\in R$, then $R$ is commutative. Proving that closed (and open) balls are convex Pull down resistor on logic gate input I would like to use a pull-down resistor on the input of a NOT logic gate. I am using a 5V microcontroller, and I want to ensure that the input of the gate will never be floating (eg. microcontroller damage).  General information:  The logic gate I am using is a HD74LS04 inverter whose datasheet can be found . I am testing the output by placing my positive multi-meter lead on R4 and the negative lead on GND. With the digital pin floating, the output of 1Y is 4.33V. This is the expected behavior.  The logic gate requires a minimum of 2.0V for Vih. If I understand this circuit correctly, I expect the voltage at pin 1A to be 3.76V since R2 and R3 will form a voltage divider. This value seems plenty to signify a 'high' in the logic gate.  R2 exists to protect the digital pin. Ideally, I would have liked R2 to be 1KΩ. Increasing the value of R2 means I have to increase the value of R3 to maintain the same voltage divider. During testing I found that if R3 was any value over 3.3KΩ, the pin 1A would not get pulled down all the way if I left the digital pin floating.   Tests: If I disconnect everything except GND and Vcc and place the positive lead of my multi-meter on pin 1A (now floating) and the negative lead to GND, I read 1.49V. Placing a pull-down resistor (R3) on pin 1A to GND with a value of 100Ω changes the reading to 0.02V. Increasing the resistor's value to 330Ω increases the reading to 0.07V. At the value I need, 3.3KΩ, the reading increases to 0.60V. Finally, changing the resistor's value to 1MΩ increases the reading to 1.47V and actually changes the output of pin 1Y to low.  The test that uses the 3.3KΩ resistor is concerning. The reading I took (0.60V) seems to be approaching the Vil maximum of the logic gate which is 0.80V.   Questions:  This must be a trivial question, but why does an R3 value of 3.3KΩ not pull pin 1A all the way to GND? Is there a formula for determining the correct pull-down resistor value? Other answers I found on here simply state 10KΩ as a 'good' value for a pull-up resistor. I'm not sure where that value comes from or if it is applicable to a pull-down resistor.         &ndash; Schematic created using   Edit: Although Ignacio's answer technically answers the question, I thought I would share some information I found for others who may come across this question.  User 'Papabravo' on the  states that the calculation for a pull down resistor can be calculated by taking the Vil (0.8V) and dividing it by the "standard TTL load" of 1.6mA. As Ignacio pointed out, my specific logic gate can source up to 0.4mA, so the calculation would be 0.8/0.0004A which equals 2KΩ. For safety, I performed the calculation at 0.5V in order to give myself some headroom.  Other Resources: