LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-30-2011, 11:25 PM   #1
1991sudarshan
Member
 
Registered: Apr 2011
Location: Chennai,India
Distribution: Kubuntu
Posts: 49

Rep: Reputation: 0
Backuping The Data in the Hard disk


Hello,


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


Thank you
 
Old 05-01-2011, 12:05 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

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
 
Old 05-01-2011, 12:08 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
1 members found this post helpful.
Old 05-01-2011, 01:03 AM   #4
1991sudarshan
Member
 
Registered: Apr 2011
Location: Chennai,India
Distribution: Kubuntu
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by corp769 View Post
Hello,

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!
Attached Files
File Type: txt log_messages.txt (51.4 KB, 6 views)
 
Old 05-01-2011, 01:05 AM   #5
1991sudarshan
Member
 
Registered: Apr 2011
Location: Chennai,India
Distribution: Kubuntu
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by catkin View Post
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?
 
Old 05-01-2011, 01:16 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by 1991sudarshan View Post
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.
 
Old 05-01-2011, 07:21 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by 1991sudarshan View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy of IBM Server hard disk data to Another USB External Hard disk mazharcdn Linux - Server 2 09-02-2009 12:41 AM
Copy data from one hard disk to another hard disk vino87 Linux - Desktop 4 08-06-2009 11:37 PM
Hard Disk Failure: How do I move data to a new hard disk drive? spyros Linux - Software 2 10-31-2008 03:01 PM
How to recover data from hard disk dongyan_liu Linux - Newbie 1 12-01-2005 05:56 PM
Moving data to another hard disk. wenberg Slackware 10 06-20-2004 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration