General :: Partitioning / Perform Bad Blocks Scan On Root Partition
Nov 28, 2010
My root partition is formatted as ext3 and I would like to perform a bad blocks scan on it. Normally e2fsck -c -c does this, but you can not run it on a mounted partition. I know it is possible to force a fsck to run at boot by creating the file /forcefsck but is it possible to specify that it should also check for bad blocks? If not, what is the recommended way to check for bad blocks on the root partition? I would like to avoid having to create a rescue disk and boot off of it.
It's pretty much as simple as that. I am simply wondering if anyone knows of a tutorial of some kind or can explain how to partition around, in order to exclude bad data blocks on a busted hard drive. This is on a computer I just set up to run Karmic Koala. On another forum someone mentioned that there is a way to do this, and that is the only way, to my knowledge to "fix" said hard drive.On a complete side note, does anyone know if an Intel 965 is supposed to work with Karmic out of the box, if you will? I haven't gotten a chance to check it specifically for this, and there seems to be no mention of this chipset with Karmic on these forums.
I got a new hard disk for my laptop and I want to move my Gentoo installation from old HDD to new.
Most simple guides recommend use of dd to copy the whole partition byte by byte.
I'm moving to the new drive because I don't have enough space on the old drive, so I don't want to simply clone the partition. Instead I need the destination partition to be bigger. Would dd work well in that case?
Assuming that I use same partition types on the new drive, would I be able to use simple cp with appropriate settings?
I need to use Live Media to make changes to a hard disk drive. I tried to sudo to no effect.
Seems like it would be troublesome to authorize root access on Live Media or have sudo allow commands such as pvcreate,lvcreate,vgcreate, especially if the hard disk is not encrypted.
Can someone explain how to determine the number of blocks to determine the number of cylinders for a new partition on hard drive.
Why is block size divided by 1024?
I think I understand unit size is the total bytes per cylinder, I get that. I understand the anatomy of the hard drive (i.e. heads, sectors, cylinders.
My problem is, if I need to calculate the number of cylinders needed for let's say a 20G partition on a 120G drive.
I've been using *Unix systems for many years now, and I've always been led to believe that its best to partition certain dirs into separate FileSystems, off the main root FS.
For instance, /tmp /var /usr etc
Leaving as little as possible on the main / system.
Its so that you don't fill up the root system be accident, by some user putting in too bigger files in /tmp, for example.
I would presume that filling the / system would not be too good for Linux, as it would not be able to write logs and possibly other things that it needs to.
I believe that if root gets full, then there is something like a 5% amount saved for just 'root' to write to, so that it can do its stuff.
However, eventually, / will become full, and writes will fail.
On top of this, certain scripting tools, such as awk, use the /tmp/ system to store temp files in, and awk wont be able to write to /tmp/ as its full, so awk will fail.
However, I'm being advised that there is no need to put /tmp /var etc onto separate FSs, as there is no problem nowerdays with / filling up. So, /tmp /var /usr are all on the root FS.
I'm talking about large systems, with TBs of data (which is on a separate FS), and with a user populations of around 800-1000 users, and 24/7 system access.
In the ubuntu series I find my hard disk description as this: /dev/sda. As we know in slackware (10.1) for partitioning we either use 'fdisk' or 'cfdisk' when I use fdisk, like mentioned: fdisk /dev/sda. It says disk cannot be found.... or something like that. I think I know why?
You see my hard disk has the D: E: F: as extended partitions comprising logical drives and only my C: drive is pure primary. Does this have any connection with my problem? As from my explanation you can find that I'm a total wreck with computers.. but I'm very thrilled to learn linux. The reason why I need slax is that I require a traditional root account.
When I recently installed Redhat onto my system, I had 2 hard drives in it, and apparently the default usage for the two hard drive is to put them all into 1 volume, so now I have files scattered across both hard drives (with boot on /dev/sdb). LVM won't let me remove the /dev/sdb partition due to not enough room in volume or whatever. What is the easiest way to shift everything, including the boot partition, onto one hard drive so I can remove the other one without reinstalling everything?
My partition /dev/sda3 on an SSD drive doesn't contain any filesystem, but it contains garbage. How do I do a TRIM/DISCARD operation on the whole partition?
I want to install Linux Mint 11 (just came out) to a USB drive. My USB drive is 34 gb. So I want to put a 1-2 gb partition on it and install mint just to that. Is that possible? I am a noob so I want to use [URL] but the screenshots don't show an option for a partition or state any extra steps that might be involved in doing this (there's a tutorial for doing this for one of the Ubuntus using fdisk, but I don't have any linux installs right now).
when I tried to install Fedora on my pc, I got this error message " Defined Root partition not created a / boot/efi partition. I am trying to install it on a seperate hd. My main one has windows xp pro, but I do not want to interfer with that at all?.
/home is running out of space, the partition on my computer is LVM, any software like Partition Magic etc to handle it? If doing from command line, any know of any tutorial?
I am trying to install a box here where my /storage partition is about 2.5T.I had setup the partitioning with suse, while testing, and all worked well.Now when trying to install CentOs 5.5 it gives me an error, that my boot partition is on a gpt partition and this machine cannot boot that.Also I don't see the option to create XFS partitions from the installer.Can 5.5 support GPT @ install time?
I have duel boot ubuntu/xp but I cannot access the xp part and am worried some virus might have got in there. My question is can I scan my xp partition from my ubuntu desktop and if I can, which is the best program to use?
Do Ubuntu have a build in partitioning application. What is the name this application and where is it located?
Also is it possible to create or resize other (out-side) partitions from my Ubuntu partition? I have a 1000GB drive and Ubunta now has the first 100GB. I want to work with the other 900GB of disk space useing the partiton tool from WITH-IN Ubuntu while running, if possible.
What is the name of this tool and where is it. Are there more than one partitioning tools inside the latest version of Ubuntu?
Allow me to preface this post with fact I am 80 and the PC challenges seem to be greater and comprehension a major focus. I just finished a 12 hour recovery on due to this new Toshiba Satellite not recognizing the partition I created with gparted.
The out of the box configuration is unallocated 100 Mib, sda1 NTFS System Boot, sda 2 NTFS WOG with 286'59 GiB, sda3 NTFS Recovery. IIts scary for me to attempt it again but I will try given some clear directions. An option would be my 149 GB external formatted with EXT 3 file system
I'm dual booting 10.04 with windows 7 and it occurs to me that I could scan the windows partition for viruses FROM linux. Is anybody doing this sort of thing? Does that make any sense?
I have several partitions on my hard drive, and like to use the 'Create Custom Layout' option during the installation process, to make sure that I don't loose any of my existing partitions or the data on them.
I have attempted a minimal F12 installation from Fedora 12 DVD. But the 'Create Custom Layout' option is not an option in the menu.
How do I install F12 and tell anaconda exactly which partitions I want to use and format?
My current working partition layout is shown in the attached screenshot.
I want to use the following custom partition layout during the initial F12 installation:
This allows me to share existing partitions between my current working F10 root partition, and the newly-installed F12 root partition. So if there are problems with the new F12 installation, I still have a working F10 system to fall back on.
The other partitions with data on will be mounted when the intiall installation has been completed
I use Fedora 12 AMD64 and I partition my HDD with Default partitioning what happen when temp partition is full by files ?Can this happen ? for example my temp partition full by files and my system can not use temp partition .!can I say my Fedora clear temp after each reboot .?
I am a total noob for Linux / Ubuntu. I have been using windows all my life and I decided to get rid of Bill finally. I want to install Ubuntu by Manually partitioning my HD. I have a 500GB HDD. optimal partition scheme. I repeat i am a total Noob. please let me know details for each partition like
1. Primary or Logical 2. type 3. mount point 4. size
I am having no other OS in the pc. just planning to have ubuntu. no dual boot needed.
I've not jumped on the Alpha/Beta upgrade's this time round so have decided to upgrade by doing a fresh install. I'm using the normal desktop install cd via usb. On the drive setup I choose to manually setup the partitions. I deleted the partition which help Lucid. Created a new partition with the root path. All good so far. I selected my home partition and selected use as 'ext2', entered /home as the mount point. Clicking ok to return, showed the /home partition as marked to be formatted, I was unable to change this ... so I decided to quit the installer and reboot ...
1st problem ... the root partition for Lucid was deleted, and a new empty partition created, despite the fact I had not confirmed the actions.
2nd problem ... rebooting with the live cd (which I'm on now) and running the installer, it hangs when I select manual partitioning.
I successfully partitioned my desktop with Gparted and made it into an XP/Ubuntu dual boot.
Now i'm trying to do the same with my netbook (eee pc 1000he), and the existing partitions look funny:
How should I change this to prepare for installing Ubuntu? Can I just install to the unallocated space on the extended partition? I don't need optimal efficiency here, I just need to know where to install Ubuntu for a workable dual boot.
It's confusing to me that Windows is on an extended partition, and also that /dev/sda2 has the boot flag (this drive contains nothing but two undeletable folders titled "amd 64" and "i386"). This set-up is the result of a Windows re-install at a sketchy computer shop.
I am having trouble logging into my ubuntu 11.04 desktop. When I type my username and password to login my screen goes blue, as if it is going to next show my desktop wallpaper, but then it loops back to the login screen. I had no idea why and so I went to ALT-F1 and typed in "df" and it turns out that my root partition is full. This is strange since I set aside 40GB for it and I didn't install anything or that many programs that would fill it up. Anyhow, is this fixable by booting to a live cd and using gparted to make root bigger or is there a better way to fix this?
I am about to get a new laptop here soon and I was planning a dual boot like I have on my current laptop (Win7 and Ubuntu), but I have something special in mind. I looked around the forum to see if there was anything like what I had or if it was even possible but I didn't see anything quite like this.I was wondering if this was even possible, and if so, would anyone be able to tell me what filesystem I should use for my windows swap partition?