LinuxQuestions.org
Help answer threads with 0 replies.
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 08-30-2007, 02:45 AM   #1
Thoddy
Member
 
Registered: Jul 2003
Location: Bremen, Germany
Distribution: Ubuntu 9.10
Posts: 106

Rep: Reputation: 15
Question cloning partition (using dd) also clones file system errors?


Hi, I have a strange problem:

I cloned my root partition to a new hard drive because the old one made problems (see thread http://www.linuxquestions.org/questi...d.php?t=580649 in case you are interested). The new system works fine and boots without problems.

Besides one thing: after working for an hour, or so, it sets the root partition to read-only mode because it has error! After checking (fsck /dev/hda) there are no errors but system won't boot again telling me the superblock has write time in the future and weird stuff...

When I start the ubuntu Live-CD I can mount and use the partition without problems - and I can check it - there are no errors!
(1) first checking fsck tells me "/dev/hda2 contains file system with errors, check forced", but it does not find any. Checking inodes, directories, etc. - everything's fine!
(2) checking again tells me "/dev/hda2:clean" - only now I can re-boot

I changed the hard disk, I changed the IDE cable and I even tried the other IDE port on the main board... nothing!?

So, my question: when cloning a partition - do I clone file system errors as well?

Last edited by Thoddy; 08-30-2007 at 03:16 AM.
 
Old 08-30-2007, 04:22 AM   #2
Thoddy
Member
 
Registered: Jul 2003
Location: Bremen, Germany
Distribution: Ubuntu 9.10
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Thoddy View Post
So, my question: when cloning a partition - do I clone file system errors as well?
Seems so - the answer is yes, dd makes a 100% identical copy...

But I seem to have two problems here:
(1) the strange error that happens to set my root partition to read-only
(2) the boot time in the future bug - that seems to be well-known in ubuntu forums (e.g. here: https://bugs.launchpad.net/ubuntu/+s...ogs/+bug/63175)
 
Old 08-30-2007, 05:23 AM   #3
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
I only know from personal experience that if I would set my system date in the past and leave the filesystem as it is now, during the next reboot the system would start showing up a lot of errors and weird stuff would happen. Therefore fix first your problem with the system date and check afterwards if anything else is still wrong.
 
Old 08-30-2007, 05:42 AM   #4
Thoddy
Member
 
Registered: Jul 2003
Location: Bremen, Germany
Distribution: Ubuntu 9.10
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Pearlseattle View Post
I only know from personal experience that if I would set my system date in the past and leave the filesystem as it is now, during the next reboot the system would start showing up a lot of errors and weird stuff would happen. Therefore fix first your problem with the system date and check afterwards if anything else is still wrong.
The problem is that the last mount / write time is set again and again 2 hours wrong (due to timezone difference)... so the deal is not starting the system for 2 hours and it will start... :-/

This has to be possible to turn off!!
 
Old 08-31-2007, 02:37 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
That's what you get for using Ubuntu. Look!...it's in my profile. Not impressed, not impressed at all. I just downloaded the 32bit version (to many holes in my head), because I can't execute martian_modem the user space driver for my modem in the 64bit. And it wiped out all my other 6 operating systems when I installed it because it wiped out my boot manager, no boot manager...no nothing. I'll install the 32bit version in Vmware inside of Windows 32bit, I'm pretty sure Windows can control this prick, because I can't.
Oh! sorry, the question was "when cloning a partition - do I clone file system errors as well?".
Yes, dd does a bit for bit image, every 1 and every 0 in the exact same spot in the partition.

Last edited by Junior Hacker; 08-31-2007 at 02:40 AM.
 
  


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
File recovery after partition table damage - XFS file system gracecourt Linux - General 4 09-28-2017 05:29 PM
file system errors mandrake 10.1 tewaru Mandriva 7 07-22-2005 05:22 PM
How to check file system for errors? subzero0 Mandriva 19 09-02-2003 07:52 PM
File system with errors naski666 Linux - Newbie 18 06-25-2003 06:30 AM
file system errors in RH7.0 Nellie Linux - Newbie 1 08-12-2001 12:47 PM

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

All times are GMT -5. The time now is 08:18 AM.

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