Ubuntu :: De-fragmentation Of The Hard Disk?
Jan 30, 2010How i can de-fragmentation of my hard disk in ubuntu. and what is the command for scan disk in ubuntu.
View 3 RepliesHow i can de-fragmentation of my hard disk in ubuntu. and what is the command for scan disk in ubuntu.
View 3 Repliesafter installing Ubuntu on one WD 500 GB hard disk and after making mistake and pasting wrong code into Terminal:my OTHER WD 500 GB hard disk that was also in the system (I guess it was "hd1") - died.The problem must be, I guess, I typed wrong code: "hd1,1" instead of "hd0,0".)500 GB (NTFS) of data was on that other (non-Ubuntu) hard disk, and now I can not access it anymore. While booting, system gives "Hard Disk Error" warning and stops.One again: I installed Ubuntu od one hard disk and at the end of instalation I pasted wrong code for GRUB, giving address of another hard disk. Now that other hard disk has error and will not work
View 3 Replies View RelatedI want to copy hard disk have ubuntu 10.04 and ext4 to 1000 hard disk for new 1000
View 2 Replies View RelatedI have a sata 320 gb with mandriva linux 2009.1 on it.And it is what curently atached to my cpu. It is shown as 'sda' in the partition table.I also have another 40gb hard disk with windows xp installed on it.It is shown as 'hda' in the partition table . Now what i want to do is attach this 40gb hard disk to my pc and configure grub on my 320gb hard disk('sda') so as to boot windows xp(which is residing on the second hard disk,'hda')Can anyone tell me if what im doing is feasible or not? If it is feasible,can anyone suggest me how to get it working. I know i just need to add 2-3 lines to my grub.conf, but dont know what exactly i need to write.
View 3 Replies View RelatedI had a dual boot (windows 7 + debian), both of them installed in my internal hard disk, with the GRUB in it. I have recently installed a second linux distro (mint), but I put it in an external hard disk. Now the GRUB allows me to boot any of the three operating systems, but I need the external disk to do it. It seems that after the mint installation the GRUB is now working from the external disk (if the external disk is not connected, the machine does not boot.) �Is there a way to change the location of the GRUB, to the internal hard disk of my laptop?
View 2 Replies View RelatedI was using Terminal and browsing a directory in my home folder. My "home" directory is located on "/dev/sdb1". When in Terminal I typed "ls" in one of my directories and the output was garbage. The output didn't show the files in the directory. I think it said something like, "input/output error". Unfortunately, I didn't write the exact error down. Instead I rebooted.The hard disk with the problem is:
Code:
$ sudo hdparm -I /dev/sdb
[sudo] password for brian:
[code]...
If you have a hard disk image (including partition table, multiple partitions,...), is it possible to let Linux treat it as a regular hard disk?
By "regular hard disk" I mean I would like to have the image show up as, for instance, /dev/hdx and its partitions as /dev/hdx1,...
(I know I can mount one of the partitions in the image using "mount -o loop,offset=x ..." but I don't really like this option.)
mount from the old hdd to the new hdd i mean (Hard disk)
View 2 Replies View RelatedCopy of IBM Server hard disk data to Another USB External Hard disk?
View 2 Replies View RelatedI recently bought 320 GB Trancend external hard disk and working fine days back.Earlier i could copy from and to the hard disk with out any issue. I dont know what happened after that now i am not able to write any files in to the external hard disk. This is not NTFS formatted device. here is some of the out put from terminal.
Code:
sundar@sundar-sundar:~$ fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
[code]...
I have two internal harddisk. Harddisk 1 has ubuntu, fedora installed and harddisk 2 has ubuntu installed. I normally connect either one, and use it. How can i always keep connect both harddisks, and at the start, select from which harddisk to boot? Or it's not possible?
View 7 Replies View Relatedran out of space in my /home dir. Have a second hard drive to install and would like to designate it as additional space for /home. I do not want to mount it as a dir inside my home I would like it to simply work as though my /home simply has more space available to it.
View 1 Replies View Relatedis there a way to write/unpack .qcow2 hard disk image directly to real hard drive in Linux?(I know it's possible to unpack .qcow2 to .raw and then dd to drive, but I'd like to skip .raw since its large)
View 2 Replies View RelatedI created a thread about a problem a I had with my hard disk clicking whilst idle little while ago and I may now have stumbled upon a possible solution. The strange thing with the problem is that Ubuntu/Kubuntu didn't cause this problem but Opensuse 11.2 does.
I installed Fedora 13 to have a glimpse of what all the fuss was about and noticed that I had the same problem (hard disk clicking whilst idle ~ every 20 secs or so). Now there's a wiki on this subject and a few bug reports: [url]
Problem Description
Some ATA harddrives perform very frequent head unloads under Linux significantly shortening their lifespans. Root cause
The inactivity timer for head unload is configured too aggressively either via ATA APM (Advanced Power Management) feature or other non-standard means. Such aggressive settings are very fragile to changes in IO pattern and under Linux many such drives unload their heads only to re-load them shortly. Note that this relentless unloading/reloading cycle can also be triggered under Windows by installing programs which can alter the IO pattern (e.g. certain vaccine programs which runs in background).
Now two of the listed models with this problem are basically identical to my model (Dell Inspiron 1520) and basically share the same hardware: Dell Vostro 1500 and XPS 1520.
The workaround listed is to:
set APM to 254
Furthermore, there is a script: Storage-Fixup which can also be downloaded from opensuse software search. Indeed there is a report of this for a Vostro 1500: Gmane Loom
The report suggests looking at: Disk Power Management - openSUSE which lists a method to create a configuration file to management disk power management:
My question is whether I could download the storage-fixup rpm [url] has a description of it and it can be found: Software.openSUSE.org) and install it to (hopefully) solve the issue or should I follow the method given in: Disk Power Management - openSUSE
to set APM to 254:
Code:
Can this be done and to restore the disk with a similar cat command.
View 3 Replies View RelatedI'm trying to resize a partition on an IDE hard disk to use the entire disk but can not get more than a 309GB partition. I can get 295, 300, 301, 302GB, etc... fine but start getting problems with anything over 309GB. I get the following error with 310GB or more:
error: block relocator should have relocated 533 Warning: You should reinstall your boot loader before rebooting. Read section 4 of the Parted User documentation for more information. I am using Slackware 12.1, GNU parted 1.8.8, ext2 filesystem.
Some output that may be of use:
root@asus:~# parted /dev/hdb print
Model: ST3500630A (ide)
Disk /dev/hdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
[code].....
I told my friend ext3 and ext4 are very fragmentation resistant compared to ntfs and he questioned me as to what happens if a small file was removed from in between other file chunks and then another (larger) file was to be written and it wouldn't fit there; where would it go? His argument was that the ext filesystem does need to defragment in order to get past that and his argument seems logical. Does anyone know the answer to this? (because it actually captured my curiosity)
View 6 Replies View RelatedI heard that the ext file system does not causes file fragmentation. Could some one explain how this is achieved. And how come a file does not divides in to fragments as compared to Windows based Filesystems.
View 1 Replies View RelatedFor some reason when i write a file to my NTFS-partitioned external HDD the files seem to get severely partitioned. This only happens when writing to it from within Fedora.
Windows Vista doesn't seem to do this.
This image is a screenshot from MyDefrag.
On my other hard drive i have a 7GB file consisting of 1400 fragments.
i'm guessing this is too much fragmented, because it was a completely empty hard drive before it wrote the file.
What could have caused this please? and how can i solve this?
Is there any way to avoid internal and data fragmentation?
View 5 Replies View RelatedI work with lots of big files >500MB. As ext3 does not provide the extents feature of ext4, I am concerned that some fragmentation may periodically affect disk performance. Noted I understand that using ext4 under these circumstances would be pointless, because the extents feature would be required to be disabled to allow compatibility using ext2fsd at this time, thereby removing any tangible ext4 benefit for my purposes.
Question Would an effective method of disk optimisation and anti-fragmentation be to simply copy all files from the ext3 media partition across to another entirely separate empty backup ext3 drive, before copying them all back over to the ext3 media partition again? Would this mean that when all the files are copied back again, they would be placed back in the 'correct and optimum order', so to speak? PS: I cringe in advance at the n00bs who are likely to reply to this thread with 'ext3 cannot become fragmented'!
I have millions of small chunks of new's and delete's in my program. Even though no memory leak is detected through valgrind or purify, memory grows. But the growth is degrading over the number of times of the execution of the tasks. Can i think that fragmentation plays a role in this?
View 6 Replies View RelatedI am on F15 32-bit with GNOME 3. I keep getting "A Hard Disk Is Failing" warnings from the Disk Utility, very frequently. Is this a serious issue? Because I knew this to be a bug in Palimpsest DU back in F13/14. Also how can I disable any notifications from this application?
View 4 Replies View RelatedI have just freshly installed Karmic on hardware that was previously running Intrepid without any problems. I have not installed anything beyond a few bog-standard applications. I am now running into regular system lock-ups because the / partition is becoming read-only. Once this happens I am unable to start any application or to shut down, because there is no write access. If I happen to have a terminal open, then it is apparent that the disk has become read-only because I can not remove, create or modify any file. If I do not have a terminal open, then I can not open one. Obviously there is nothing written to any log.
View 2 Replies View RelatedI search for a Gui program that running and check of the hard disk and monsters in graphical mode bad
sectors.
I'm trying to install Ubuntu 10.04 amd64 on a system I recently built that currently has Windows 7 installed.
Strangely, when I booted from the install disk, I got an unrecoverable error. [URL] said in that case, try to install from a live session, so I did that.
Live session install worked fine until I got to the partitioning section of the setup. Nothing displayed in the partition space and all my partition options were greyed out!
I have tried several things. I tried booting from my Lubuntu 32 bit that I know works (running on my laptop), it could not detect the hard disk either.
I tried booting into Windows 7 and shrinking the partition in the Windows partition manager and seeing if Ubuntu's installer would detect the space that way...no such luck.
cfdisk would not work either. Gave a big fat cannot access the disk error.
fdisk -l displays nothing. Gparted from the live session is a no-go as well.
BTW, relevant hardware:
GIGABYTE GA-770TA-UD3 AM3 AMD 770 SATA 6Gb/s USB
Western Digital Caviar Blue WD5000AAKS 500GB 7200 RPM SATA 3.0Gb/s 3.5" Internal Hard Drive -Bare Drive
I wouldn't think that Ubuntu should have a problem detecting this...
Is there a decent hard disk management apt . you see when i started using ubuntu i specified 2 gigs for ext filesystem drive because at that time windows was my basic OS . but now ubuntu became almost my only OS , so i wanna cut out like 20 gigs of the ntfs windows drive and add them to ubuntu's filesystem without removing or formating neither OS's or drives is there a software that can do that ?
View 3 Replies View RelatedI can't seem to fin the command that tells how much space is used/free.
View 5 Replies View RelatedI have a problem with seeing the partitions from a hard disk in ubuntu after installing updates. I installed the fresh 10.10 x64 desktop edition yesterday and I could've seen everything from the live CD. I think that it started to be missing after installing about 65 updates (those were the recommended updates).
In windows 7 everything is fine. I can see every partition like this:
Disk 0 and Disk 2 are basically the same (SATA) and Disk 1 is a rather old ATA drive, but in Ubuntu I can only see the partitions from the Disk 1 and 2. Ubuntu is installed to the 93.13 GB partition on Disk 2. Grub is installed to Disk 1 and it is the first boot device (not sure if this matters). The partitions from Disk 0 are not displayed on the Places menu bar.
After typing:
Code:
sudo fdisk -l
It only displays some info about Disk 1 and partition Storage and then hangs. The hdd led is lit constantly. It doesn't even display the info about the partitions on Disk 2, even though if I can browse those two partitions. And when I want to reboot, the ubuntu logo displays but it hangs there and I think that this is due to this problem with the hdd recognition.
i have an old copy machine (canon gp225). the hard disk makes a whistling noise and i suppose it is just a question of time when it will bust.i do have some stone-aged computers here and i think i could use one of this hard disks as a replacement.how do i get the operating system (probably unix/linux or similar) plus the content of the boot sector plus the software on this new hard disk? i think if i could do a one-to-one copy i might have a chance that i could replace the old hard disk and it will work.
View 2 Replies View Related