General :: Safely Set Reserved Blocks Percentage For A Partition Without OS?
Nov 30, 2010Is it true that I can safely set reserved blocks percentage to 0% on some ext4 partition which contains only my personal data but no OS files?
View 1 RepliesIs it true that I can safely set reserved blocks percentage to 0% on some ext4 partition which contains only my personal data but no OS files?
View 1 RepliesI'm running this command to increase the available storage area of my ext3 drive but It has no effect.
Code:
I would like to get more storage space out of this drive since it's only use is a backup mirror of the ntfs drive.
I think that drive size might be related to something else.
When formatting an ext3 partition, the default -m option is 5 (5%). Two things I always wanted to know but were afraid to ask:
1) Isn't 5% way too much for the size of most hard disks nowadays?
2) Is that number or anything greater than 0 really necessary in ALL file systems? For example, is it necessary in a /home partition or any partition that contains no OS, just storage data?
I am in need to create a script that queries how large a partition is and when it hits a certain percentage (say 90%) it will execute another script that tars up certain files (or they could just be part of the same script). I would create a cronjob that runs this script once a day.
I have the script that tars up the files I need, sets permissions, etc. (btw, the files in question are audit logs). I just need the part that runs something like a df -h and takes the use percentage of the /var partition in that query and if that percentage is greater than/ equal to 90%, it kicks off the tar script.
Here is a sniplet of the df -h with just the /var partition shown:
Quote:
So, when the cronjob sees that the Use% is >= 90%, it would kick off the tar script...if not above 90%, it closes.
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 have a 700GB ext4 partition for storage purposes. By default it has 5% of the space (35GB!) reserved for root, which does not make sense for this partition. how can i reduce this percentage? there is already a lot of data on the partition and i'm afraid that mke2fs would erase all the data. is there a way to change the percentage without touching the data?
View 1 Replies View Relatedi'm running out of partitions, i was thinking if i could get rid of the windows system reserved partition without messing any of my windows 7 OS & the recovering partition. I'm currently using grub2 to boot ubuntu & win 7.
View 6 Replies View RelatedMy 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.
View 2 Replies View RelatedI have a 32-bit laptop running a dual boot with Windows 7 and Ubuntu 10.09 LTS.I've decided that Ubuntu just isn't for me, and I want to remove the partition and restore the extra hard drive space back to Windows 7.
Now, a few months ago, I accidentally deleted my Ubuntu partition through Windows Disk Management, and I ended up not being able to boot up my computer. I can't remember what the exact cause was, but I think it was a problem with the GRUB, and I think I fixed it by reinstalling Ubuntu. Does anyone know how I can safely remove the Ubuntu partition without having to go through all this again?
Does anyone know how to delete the "System Reserved" partition ??
View 9 Replies View RelatedI need to resize an ext4 filesystem partition, How can I do it being sure it wont get f#@ked up?
Is it safe to do it using a gparted live cd?
RAM of the machine is 4M. I never see the swap partition has been used via system monitor. So can I safely delete the swap partition?
View 7 Replies View RelatedWhich software can remove bad blocks from the swap partition?
Bad clusters is a problem, but hdd can still live very well n happy.
Currently I have ubuntu 10.04 LTS as the only OS.I have two partitions one for ubuntu and it is ext by default for ubuntu's files.The other is empty NTFS. (yes, it is formatted in NTFS but I haven't saved anything yet on it).The problem is: I want to install win xp sp3 on this empty ntfs partition safely (without losing ubuntu).My friend told me ubuntu will be lost even if I didn't touch its own partition.
View 5 Replies View RelatedI have a BIG extended partition. It's at about 750Gb. Aside from that, I have 2 unallocated spaces, one at 240Gb and one at 5Gb. I want to make one of my storage drives bigger, and so that I can take advantage of all the space I have. (Those 250Gb have been unused for ages. I want to use them for my growing libraries.) So I wonder: would it be safe to put these smaller "chunks" into the extended partition, and still have a working systen? I don't want to mess it all up.
Also, can I safely resize a partition, like adding the extra space, without touching the existing data? I'm not exactly sure how the resize/move function in GParted works. Will it wipe and extend or only extend it by adding it? It would be nice to have these questions answered. Also, if it's to any help, this is my partition table as of now:
[Code]....
As for the first entries, they're unallocated. They're the primary drives, but they don't exist. I'm actually considering to move my partitions out of the extended one, because I only have 3 partitions that I use and will ever use. But if the extended partition is not a problem, I will just keep it this way.
I'd imagine that I first extend the extended partition to consume the unallocated space, and then I move it all to the end of the partition, and then resize sda7 to consume it, and get a 750Gb partition. Can this be done without loss of data?
Do you know some source that has statistics/estimations about this?
Any sound guesses?
In my sudoers file, there are lines that begin with #, lines that begin with % and lines that begin with neither. The # is definitely being used to comment out lines, but what does the % do? Is it a comment marker too?
View 2 Replies View RelatedPlease does anyone know or have a link to an article that suggest that most of the worlds servers run on Linux instead of Windows?
View 11 Replies View RelatedI have a problem after newly installation of rhel5. Actually i am not facing any problem by this but getting this message at system startup PCI: Bios Bug: MCFG area at e0000000 in not E820-Reserved.
View 1 Replies View RelatedHow to safely expand swap?
View 1 Replies View RelatedAfter installing numerous stuff on my Slackware system, I notice I am running out of hard-drive space. I see that /tmp/SBo has about 1G of staff that I recently installed --- may I safely delete this staff?
View 14 Replies View RelatedLet's assume I have a volume group (VG) with six physical volumens (PV) - sdb1, sdb2, sdb3, sdc1, sdc2, sdc3..I want to remove one of the PVs from the group in order to use its space elsewhere - how can I know if it's safe? How can I do that without losing data and without first "pvmove"ing it elsewhere?Reading a bit more, my guess is using the result of pvscan, but I thought I'd ask before removing keeping it safe as I'm not an LVM expert.
View 4 Replies View RelatedI've got a new hard drive, formatted it to ext3, and made a check for bad blocks using e2fsck.
It gave me this:
Quote:
I just would like to know where i can find how many bad blocks were found (perhaps one if it is using singular in sentence "Updating bad block inode."?), and what is/are the number(s) of located bad block(s).
I had read that the shred doesn't safely work for compressed filesystems when shredding a file, how this can be accomplished in a compressed fs ?
View 1 Replies View RelatedI know what are hard and soft limits, but what means "blocks" column in edquota utility?
View 1 Replies View RelatedI'm working on a ~1 TB disk that was loaded with all kinds of images and documents that lost it's HFS+ partition table. The person for which I'm doing the favor of running scalpel says it's likely there's 90GB of stuff. Somehow, the disk got relabeled/MBR changed to some FAT variant that works on the whole Terrabyte.
Attempts to recover the partition info failed.My first try with scalpel finds more than 90GB of image file headers alone and that blows through all of my storage. Of the headers found and recovered as images, a simple test shows most of the image files are broken. The cluster size option does not work if I use it by itself. It errors out before it gets going.I want to speed things up and skip the countless broken image files.
When i boot my PC, i get this in my Fedora 16 distro. I have tried as following but none allowing me to boot anymore.
Grub loading.Welcome to GRUB!
error: file not found. Entering rescue mode...
grub rescue>
grub rescue> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
grub rescue> ls (hd0,gpt2)/
./ ../ lost+found/ memtest86+-4.20 grub2/ System.map-3.1.0-0.rc3.git0.0.fc16.i686 config 3.1.0.0.rc3.git0.0.fc16.i686 grub/ vmlinuz-3.1.0.0.rc3.git0.0.fc16.i686 elf-memtest86+-4.20 initramfs-3.1.0.0.rc3.git0.0.fc16.i686.img initramfs-3.1.0.0.rc4.git0.0.fc16.i686.img System.mpa-3.1.0.0.rc3.git0.0.fc16.i686 config-3.1.0.0.rc3.git0.0.fc16.i686 vmlinuz-3.1.0.0.rc3.git0.0.fc16.i686
I've ran fsck -c on the (unmounted) partition in question a while ago. The process was unattended and results were not stored anywhere (except badblock inode). Now I'd like to get badblock information to know if there are any problems with the harddrive. Unfortunately, partition is used in the production system and can't be unmounted.
I see two ways to get what I want: Run badblocks in read-only mode. This will probably take a lot of time and cause unnecessary bruden on the system. Somehow extract information about badblocks from the filesystem iteself. How can I view known badblocks registered in mounted filesystem?
I'm trying to RMA a month old SSD, and they're giving me a hassle about it. The drive currently seems to work just fine, but I'm 95% sure that a few blocks went bad and corrupted some data about a week ago. I was able to mostly recover the data and correct for the bad blocks, but I don't really trust the drive anymore.
I'm running an up to date Debian Squeeze install with ext4 on this drive. My system started doing some bizarre things, to the point that it was unusable, so I rebooted it. As it was booting up, it complained about needing an fsck, which found dozens of non-trivial errors that it was mostly able to fix. It then proceeded to boot normally, except the drive mounted itself as read only (due to errors). Another fsck turned up a similar number of problems. This happened a couple of times before I ran fsck with '-c', which is supposed to scan for and work around bad blocks. That seemed to fix the problem, it hasn't given any more problems since then.
The manufacturer is refusing to RMA the drive unless it's completely unmountable right now this minute, saying that it was a one time problem that could have been caused by anything. Am I right in thinking that the problem has to have been with the drive if 'fsck -c' fixed it, or could something else be going on? If it was the drive, am I somehow being unreasonable in asking for a new one while the current one is "working"?
Let's say I'm using one of those PCs that uses a SSD flash drive in place of a more regular HDD.
Say I burn my favorite .iso distro and install it on this PC. I install my favorite applications and seek out and install any missing drivers and generally tweak the system like you do. When I am finally happy with it, I make an image of this installation to an external USB drive.
Now, say 9 months later some of those SSD blocks have gone bad because they were erased too often. They're no longer usable. Also, because I'm a sloppy person who can't be bothered to delete redundant stuff and run make-cleans and so forth, the disk is getting pretty cluttered and takes longer and longer to do stuff.
I decide the obvious solution is to remove and save any data I need to keep, then just over-write the disk with the image I made 9 months earlier.
The question is: will the firmware be smart enough to re-map my incoming image to avoid these bad blocks on the SSD? Or am I going to wind up with some parts of the image being located on bad areas of the SSD?