I am currently using Ubuntu from a Live USB and in Gparted can see that my internal hdd has 1 partition /dev/sda1 size: 931.51 Gb, file system unknown.. I want to prepare this hard drive to install Ubuntu onto, but the disk utility tells me there are 798 bad sectors (which from doing a bit of research is approximately 0.00004%). Doing some reading in other forums, apparently running  mkfs.ext4 -c /dev/sda1   will create file system to which I can install Ubuntu and avoid the bad blocks in doing so. I really have no clue about this sort of thing, so just want to know if this will work or if it is the right way to go about it at least.   The reason I ask is because it is going to be a very time consuming process, as after 1h 35 mins it is only 0.08% done..  I am a complete linux n00b so please be as straightforward as possible in your responses, and thanks in advance for your help!
I tried to fix my hard drive using Ubuntu but I encountered an error message and didn't know how to proceed. I need to fix my bad sectors   fsck /dev/sdb   fsck from util-linux 2.20.1   e2fsck 1.42.5 (29-Jul-2012)   fsck.ext2: Permission denied while trying to open /dev/sdb   You must have r/w access to the filesystem or be root
Appendix without letter in TOC In C++, what is a virtual base class? I want to know what a "virtual base class" is and what it means.  Let me show an example:  class Foo { public:     void DoSomething() { /* ... */ } };  class Bar : public virtual Foo { public:     void DoSpecific() { /* ... */ } }; How do you easily horizontally center a  using CSS? I'm trying to horizontally center a &lt;div&gt; block element on a page and have it set to a minimum width. What is the simplest way to do this? I want the &lt;div&gt; element to be inline with rest of my page. I'll try to draw an example:  page text page text page text page text page text page text page text page text                -------                | div |                ------- page text page text page text page text page text page text page text page text I'm trying to find out what modules  in cpan. So I've used  to mirror it. My problem is that I need to iterate through the archives that are downloaded, and grep the files that are in the archives. Can anyone tell me how I might do this? preferably in a way that tells me which file in the archive and what line it's on.  (note: they aren't all tarballs some are zip files) How to automount a partition on login? I have my musics in another partition of the HD, and I would like that, on login, the partition to be auto-mounted, so I can just open the media player and listen to my music. Is there a way? Why bosons have integer spin and fermions have half-integer ones? Due the fact that the fermions are the "block particles" and the bosons are the "carriers" I just came out with the question that, why the "block particle" have half-integer spin and the "carriers" have an integer spin? Some improvements to blockquotes Update  Sorry for the delay! I’ve been thinking about this feedback in between my other projects, and I’ve landed where I’ve started 😕  I’ve made sure to continue highlighting spoilers in gray. The differentiation from normal blockquotes is super important since their behavior is so different. I explored keeping spoilers yellow, but that still has the same theming issues throughout the network. Red seemed too powerful, with its error connotations.  I understand completely that folks are using blockquotes to highlight images. However, I don’t think that’s a  we want to formally pave. I’m ok with being opinionated here—blockquotes should be used for quoting, not as a way to highlight images. I understand that this will be frustrating to Machavity who made excellent points about differentiation in his answer, but I don’t think image highlighting ought to dictate how blockquotes are styled.  I’m also cautious of adding borders to images as explored by user1306322 for the same reasons and for the additional fear of being too prescriptive in how we display images there.  It’s a tough one! I went back and forth with the design team and I still think this is the best path forward.  Original post  We’re making a few changes to blockquotes soon. Historically, we had a bit of feedback that the yellow backgrounds were overpowering, reducing the contrast of the quote itself. The yellow border also lacks contrast with the background. Others have indicated that there should be  and between .  These yellows also compete with theming in our communities, especially those with backgrounds that aren’t perfectly white like English Language &amp; Usage and Role-Playing Games.   We’re proposing we switch to a single gray bar in our blockquotes. This should fix those theming issues and make it easier to distinguish between quotes, spoilers and code.  This will also improve blockquote nesting, since our current nesting is a mess because the darker yellow bar is barely noticeable on the paler yellow background.  Spoilers should pretty much behave exactly the same way. More room for later improvements there.  Here’s how our current blockquotes look. You can click to expand:    Here’s what we propose:    There is a lot of prior art out there for this approach. GitHub has styled theirs this way for a long time. So has Slack.     Let me know what y’all think. I think these changes will be an improvement, and I hope you do too.  Huge thanks to Catija for gathering some meta posts on blockquotes and creating an awesome blockquote playground post for testing. How to *disable* automatic reboots in Windows 10? I have this MySQL query:  SELECT DAYOFYEAR(`date`)  AS d, COUNT(*)  FROM  `orders`  WHERE  `hasPaid` &gt; 0 GROUP  BY d ORDER  BY d   Which returns something like this:  d  | COUNT(*) | 20 |  5       | 21 |  7       | 22 | 12       | 23 |  4       |   What I'd really like is another column on the end to show the running total:  d  | COUNT(*) | ??? | 20 |  5       |   5 | 21 |  7       |  12 | 22 | 12       |  24 | 23 |  4       |  28 |   Is this possible? Good tools for drawing schematics I was going to add a bit of information to my post on a previous day using schematics and some instructions. What programs are being employed for this purpose?  I mostly want to see what others are using and that I can easily use to give descriptive schematics.  In a perfect world, and I know this is a case of me wishing, it would be:   Free. Extremely easy to draw schematics in. Allows simple production of waveforms for the inputs/outputs. What is the size of an enum in C? Prove that if $P$ is a $p$-Sylow subgroup of $G$ and $N \triangleleft\&gt; G$ then:    $ PN/N $ is a $p$-Sylow subgroup of $G/N$ $P \cap N $ is a $p$-Sylow subgroup of $N$ Event button as a module or as user program? Why is $ \overline{e^z} = e^\overline{z} $? How can you conjugate an entire function? $ \overline{exp(z)} $ I need an equivalent.  I thought this is only possible with complex numbers.   What is the proof for $ \overline{e^z} = e^\overline{z} $ ? (Please don't involve a power series here.) Why do some bad traits evolve, and good ones don't? Was there any reason why Dr Soong chose for Data's eyes to be yellow?  I can understand that he wasn't going for a completely human-looking android based on his skin color, but why yellow eyes? Is it possible to save a Diablo 3 chat session or save some in game notes How do I calculate standard errors for sums of OLS coefficients? how to prove that $\ln(1+x)< x$ I'm an Indian National. I have a Type C Schengen Business Visa which is valid from 26-11-2015 to 26-11-2020. I received it when I intended to travel to Netherlands, although I have not used it.   When I applied for a spouse endorsement, the passport on which the visa is stamped was cancelled and a new passport was issued.  Now, I plan to travel to Italy on business from July 8th to 16th.    Can travel with the same visa in old passport, or should I cancel the existing visa and apply for a new one?  I contacted the Netherlands Embassy call center (not VFS Netherlands) which responded that I can use it without any issues. However, they have not confirmed it by email.   I asked about any immigration issues in Italy and was told me that, if I have a valid itinerary and invitation letter from the office, there should be no problem. I was also told that Italian immigration authorities are able to contact the Dutch, if necessary.   I emailed the Italian Embassy in Mumbai (visa.mumbai@esteri.it) and await its response.