Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My hard isk is failing and I amnot able to boot into the system! Currently I have logged into the system uing Live CD! Can anyone pls tell me the way to compress and back up the data in my hard disk in an efficient way! Help needed Urgently
First and foremost, saying "urgently" is considered rude on these forums. Also, please spell check your words, and spell them out too (abbreviations like pls).
Aside from that though, I would look at your dmesg and/or /var/log/messages to see if your hard drive is being detected at all. If it is, use the mount command to mount the device to whatever folder you decide (ie. /media/hd1). You will need to mkdir a directory so you can mount it. From there, you can access your drive. Hope that helps.
Ideally you would first image the HDD to another, to preserve as much as possible. For this you need an HDD at least the same size as the failing one. Use dd to copy from the whole HDD device file (for example /dev/sda) to the new whole HDD device file (for example /dev/sdb). Be very sure the target is the new disk! Errors are likely when copying from a failing disk so it is essential to use dd's conv=sync,noerror parameters. Then you can try a file-level copy (and compress -- but why make life complicated?) on the new HDD, confident that your actions are not further degrading the failing disk.
First and foremost, saying "urgently" is considered rude on these forums. Also, please spell check your words, and spell them out too (abbreviations like pls).
Aside from that though, I would look at your dmesg and/or /var/log/messages to see if your hard drive is being detected at all. If it is, use the mount command to mount the device to whatever folder you decide (ie. /media/hd1). You will need to mkdir a directory so you can mount it. From there, you can access your drive. Hope that helps.
Cheers,
Josj
I am sorry about spelling mistake, I was in such a hurry that I did not notice them and also sorry about the rude word "Urgently". My hard disk partitions are being detected and I am able to mount and make changes to the data! My question is, how can i compress the huge amount of data efficiently? And I have also included the output of /var/log/mesages in a text file!
Ideally you would first image the HDD to another, to preserve as much as possible. For this you need an HDD at least the same size as the failing one. Use dd to copy from the whole HDD device file (for example /dev/sda) to the new whole HDD device file (for example /dev/sdb). Be very sure the target is the new disk! Errors are likely when copying from a failing disk so it is essential to use dd's conv=sync,noerror parameters. Then you can try a file-level copy (and compress -- but why make life complicated?) on the new HDD, confident that your actions are not further degrading the failing disk.
Is there any way to install the present Kubuntu with other installed softwares in the new HDD? What does HDD cloning mean?
I am sorry about spelling mistake, I was in such a hurry that I did not notice them and also sorry about the rude word "Urgently". My hard disk partitions are being detected and I am able to mount and make changes to the data! My question is, how can i compress the huge amount of data efficiently? And I have also included the output of /var/log/mesages in a text file!
You can use the tar command, along with bunzip, then copy your compressed file to another storage medium.
Is there any way to install the present Kubuntu with other installed softwares in the new HDD? What does HDD cloning mean?
Cloning is making an identical copy. The dd command on the whole HDD would clone everything -- Master Boot Record, Partition Table, anything above that on the first cylinder (such as GRUB stage 1.5) and the partitions. If the failing HDD is bootable then the clone should also be bootable; simply unplug the failing HDD and boot the computer after cloning with dd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.