Sorry if this question seems to be a silly one. But I want to clear my doubt regarding the relationship between partitioning and the file system.  These days almost all the hard disks come with a single partition by default. But why at least one partitioning is needed if I intend to use the whole hard disk and if I don't need any logical partitions?   To store files on the hard disk, isn't it installing the file system is enough by formatting it with a particular file system?. To install a file system why the partitioning has to be done? Somehow I didn't understand the logic between the file system and the partition. I think the partition is required only if you need the hard drive to be divided logically.   Could you please provide me any technical explanation on why the partition is required?  //Karteek
I see in my company's IT installations that there are numerous disks with one partition occupying all of the space on disk. There is typically something like a /dev/sdb with a partition /dev/sdb1, and the size of /dev/sdb1 is the size of the whole block device. The partition is then mounted with the required file-system format, mountpoint etc.  I do not understand why we would use a partition rather than the whole disk for such (1-partition) configurations. Is there any reason why a partition would be used in this case rather than a whole disk ? Are there any best practices that recommend this approach ?  For example, we could create a Filesystem on a whole raw block device and mount it without needing any partition:  mkfs.ext4 -E stride=16,stripe-width=64 /dev/xvde mount /dev/xvde /mnt/abc   That creates a mountpoint without a specified partition. As a verification:  # sfdisk -l /dev/xvde  Disk /dev/xvde: 6527 cylinders, 255 heads, 63 sectors/track  # fdisk -l /dev/xvde  Disk /dev/xvde: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   For something with a partition, we get the list of partitions under it:  # fdisk -l /dev/sdb  Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00082e8c     Device Boot      Start         End      Blocks   Id  System /dev/sdb1            2048  3907026943  1953512448   83  Linux   My fundamental question is this: Is there some advantage in creating a partition and then creating a filesystem on that partition, as compared to creating a filesystem on the whole disk and then mounting the whole disk ?
I am new to photography, and need a little advice. I currently have a .   To get rolling, where do I go from here? Does the camera matter? Is this camera enough to start with? Possible (but not serious) glitch in close/reopen I just had one of my questions closed. (Hey - it happens to everyone) When I clicked on reopen - lo and behold - it worked. I cast a reopen vote!  Is this a glitch? I know we need 4 more votes anyway but still...  And no  tag please :) Typesetting long division with tabular and overlining repeating part Completely synchronise multiple Macs $K \subset \mathbb{R}^n$ is compact iff it is closed and bounded I want to prove $\Leftarrow$.  I just need one more step, now. If I find a compact set that contains K, then it will finish the proof. Rudin take a k-cell to do that, but before it he proves that every k-cell is compact, and I think I can take a more simple compact to do this step. I has thinked in the closed ball, but don't know how to prove that it is compact. Can anyone help me to find this set, if it really exists? Thanks. How to evaluate the product: How to evaluate the product:  $$\prod _{n=2}^\infty\left(1+\dfrac{1}{n^2}+\dfrac{1}{n^4}+\dfrac{1}{n^6}+\dfrac{1}{n^8}+\ldots\right)$$  $$\left(1+\dfrac{1}{n^2}+\dfrac{1}{n^4}+\dfrac{1}{n^6}+\dfrac{1}{n^8}+\ldots\right)=\dfrac{1}{1-\dfrac{1}{n^2}}$$  How to proceed now? reports:  Two mathematicians have uncovered a simple, previously unnoticed property of prime numbers [...]. Prime numbers, it seems, have decided preferences about the final digits of the primes that immediately follow them. Among the first billion prime numbers, for instance, a prime ending in 9 is almost 65 percent more likely to be followed by a prime ending in 1 than another prime ending in 9.  Do these insights make breaking keys based on primes more mathematically plausible in a shorter amount of time? How to install an application that requires gksu package on ubuntu 18.04? I downloaded the Upwork desktop App on ubuntu 18.04. When I open it with Gdebi package installer I saw this error:    I tried to install gksu manually via sudo apt install gksu but I got this error  Building dependency tree        Reading state information... Done Package gksu is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'gksu' has no installation candidate   How can I install this software on ubuntu 18.04 (I download it yesturday so it is the most recent version on upwork website) ? When looking at used camera bodies, a question that comes up a lot, is "how many shutter actuations, or clicks, does it have?"   What I am wondering is, how many is too many. In other words, is there a reference for knowing when a sensor is more likely to go? How should I judge a camera body with 20000 vs 5000? Is that a significant difference, or is that not even relevant.  Obviously this might something that is dependent on model, so if there is some information based on model that would be even more interesting.  One of the guys at Canon Tech Support said that this is completely irrelevant for the Rebel series cameras, but he is obviously slightly biased. :) How do I search events between two set dates inside WP? How does RNA transcription determine which half of the DNA to use? I feel that I might have a complete misunderstanding here. If DNA has two strands, how does the machinery of RNA transcription determine which one to transcribe? pm-hibernate freezes and/or fails to resume on Dell XPS 13, 14.04, 3.19 kernel Is there a new auto-login feature? how to get the current chapter name, section name, subsection name, etc? How can one get the current name of the following: Chapter, Section, Subsection(s), frame, label, mdframed? Get the real width and height of an image with JavaScript? (in Safari/Chrome) sed - replace string with file contents I have two files: file1 and file2.  file1 has the following contents:  ---   host: "localhost"   port: 3000   reporter_type: "zookeeper"   zk_hosts:      - "localhost:2181"   file2 contains an IP address (1.1.1.1)  What I want to do is replace localhost with 1.1.1.1, so that the end result is:  ---   host: "1.1.1.1"   port: 3000   reporter_type: "zookeeper"   zk_hosts:      - "1.1.1.1:2181"   I have tried:  sed -i -e "/localhost/r file2" -e "/localhost/d" file1 sed '/localhost/r file2' file1 |sed '/localhost/d' sed -e '/localhost/r file2' -e "s///" file1   But I either get the whole line replaced, or the IP going to the line after the one I need to modify. I just got a new hat! :D screaming with joy Looking at so many users looking all exquisite with their stunningly 'fitted' hats, I'm wondering if there's an option to resize or rotate a hat?  PS: Happy Winter Bash everyone! :) Simple programs with tutorials for beginners in graphic design? Suppose I have some large datafile, which overflow the screen in both vertical and horizontal direction. How can I browse this file, while the header-lines stay on the screen?  For the moment, I am using less -S, so that I can nicely scroll my file horizontally and vertically. However, when scrolling down, the header lines obviously disappear. Is there a way to keep these using less?  An alternative is using vim in split-screen mode with :set nowrap. However, now if I scroll horizontally, the top window doesn't scroll in the same way (:windo set scrollbind only works for vertical scrolling as far as I know). How to show that when the linear transformation $\Phi =\psi \circ \phi : E \rightarrow G$ is injective, then $\phi$ is also injective? How to show that when the linear transformation $\Phi =\psi \circ \phi : E \rightarrow G$  (where $\phi : E \rightarrow F$ and $\psi : F \rightarrow G$) is (1) injective, then $\phi$ is injective and when (2) $\Phi$ is surjective, then $\psi$ is also surjective ?  I've tried to prove it by the definition of injection and surjection, but I'm not convinced myself by it.  For example, in the first case :  If $\Phi$ is injective, $\forall g \in G$, we have $0$ or $1$ $e \in E$ such as $\Phi(e)=g$.  $\Rightarrow \Phi(e) = \psi(\phi(e)) = \psi(f) =g$.   So $\forall f \in F$, we also have $0$ or $1$ $e \in E$ such as $\phi(e)=f \in F$.   $\Rightarrow \phi$ is injective.  Is this right or did I prove nothing at all ? I think it is easier to convince myself/ to understand with surjectivity but still..