Re: sda2 is corrupted
On 07/05/2012 01:30 PM, Reindl Harald wrote: Am 05.07.2012 19:15, schrieb Jim: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home what does mount /dev/sda /home say in dmesg` I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/06/2012 03:11 PM, Jim wrote: I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? That writes a block-for-block image of the content of sda2 to the device sdb1. It will overwrite any file system, LVM label, swap label etc. on the device as well as the contents. If you want to create an image of a device in a file system you need something like: dd if=/dev/sda2 of=/tmp/sda2.img Where /tmp is any path to a mounted file system that you can write to and that has enough free space for the entire device image. You can compress these inline if you wish to save space. Regards, Bryn. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/289cACgkQ6YSQoMYUY94oDACfbdOh1MnFXt5/dnUbbrfJ0fW8 U5sAoNnz0hnAHcsWE5E0x5bJ1azNZAc+ =SE7B -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
Am 06.07.2012 16:11, schrieb Jim: On 07/05/2012 01:30 PM, Reindl Harald wrote: I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition /dev/sdb1 is now a blockwise copy of /dev/sd1 if you want a image you have to use dd if=/deV7sda1 of=/path/filename.image signature.asc Description: OpenPGP digital signature -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
Am 06.07.2012 17:01, schrieb Reindl Harald: Am 06.07.2012 16:11, schrieb Jim: On 07/05/2012 01:30 PM, Reindl Harald wrote: I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition /dev/sdb1 is now a blockwise copy of /dev/sd1 if you want a image you have to use dd if=/deV7sda1 of=/path/filename.image well, i guess the reason why this happened was a combination of plain stupid advise below without explain what it does in a real dangerous way and blindly following any advise without trying to understand what are you doing hopefully lesson learned - BOTH of you! this is why i said google for ddrescue and NOT provide any HIGH DANGEROUS command line Original-Nachricht Betreff: Re: sda2 is corrupted Datum: Thu, 5 Jul 2012 20:15:14 +0200 Von: Heinz Diehl h...@fritha.org Antwort an: Community support for Fedora users users@lists.fedoraproject.org Organisation: private site An: users@lists.fedoraproject.org On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk signature.asc Description: OpenPGP digital signature -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
On 07/06/2012 11:09 AM, Reindl Harald wrote: Am 06.07.2012 17:01, schrieb Reindl Harald: Am 06.07.2012 16:11, schrieb Jim: On 07/05/2012 01:30 PM, Reindl Harald wrote: I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition /dev/sdb1 is now a blockwise copy of /dev/sd1 if you want a image you have to use dd if=/deV7sda1 of=/path/filename.image well, i guess the reason why this happened was a combination of plain stupid advise below without explain what it does in a real dangerous way and blindly following any advise without trying to understand what are you doing hopefully lesson learned - BOTH of you! this is why i said google for ddrescue and NOT provide any HIGH DANGEROUS command line Original-Nachricht Betreff: Re: sda2 is corrupted Datum: Thu, 5 Jul 2012 20:15:14 +0200 Von: Heinz Diehl h...@fritha.org Antwort an: Community support for Fedora users users@lists.fedoraproject.org Organisation: private site An: users@lists.fedoraproject.org On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
Am 06.07.2012 17:22, schrieb Jim: On 07/06/2012 11:09 AM, Reindl Harald wrote: Am 06.07.2012 17:01, schrieb Reindl Harald: Am 06.07.2012 16:11, schrieb Jim: On 07/05/2012 01:30 PM, Reindl Harald wrote: I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition /dev/sdb1 is now a blockwise copy of /dev/sd1 if you want a image you have to use dd if=/deV7sda1 of=/path/filename.image well, i guess the reason why this happened was a combination of plain stupid advise below without explain what it does in a real dangerous way and blindly following any advise without trying to understand what are you doing hopefully lesson learned - BOTH of you! this is why i said google for ddrescue and NOT provide any HIGH DANGEROUS command line Original-Nachricht Betreff: Re: sda2 is corrupted Datum: Thu, 5 Jul 2012 20:15:14 +0200 Von: Heinz Diehl h...@fritha.org Antwort an: Community support for Fedora users users@lists.fedoraproject.org Organisation: private site An: users@lists.fedoraproject.org On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed let me guess: /dev/sdb1 was mounted while you used dd this does not work becasue you overwrite the whole FS and MBR the OS does not rescan the drives after dd'ing normally nobody would to this for a backup ALWAYS of=/path/to(directory/filename.img look here, this is the way to go for backups/mounting them http://wiki.edseek.com/guide:mount_loopback signature.asc Description: OpenPGP digital signature -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On Fri, 06 Jul 2012 11:22:55 -0400, Jim wrote: /dev/sdb1 is now a blockwise copy of /dev/sda2 On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . That makes no sense. If /dev/sdb1 points at a corrupted filesystem, above dd command will copy the same corrupted filesystem to /dev/sda2. That's expected and okay, if you only want to keep that one read-only as a backup of the originally corrupted filesystem. Then you can play with rescueing sdb1 - but be careful and remember that sda2 is supposed to be your backup of a corrupted filesystem. Don't mess with that one. Better would have been to copy sdb1 to an image file instead of another partition device. -- Fedora release 17 (Beefy Miracle) - Linux 3.4.4-3.fc17.x86_64 loadavg: 0.24 0.55 0.70 -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On 07/06/2012 12:02 PM, Michael Schwendt wrote: On Fri, 06 Jul 2012 11:22:55 -0400, Jim wrote: /dev/sdb1 is now a blockwise copy of /dev/sda2 On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . That makes no sense. If /dev/sdb1 points at a corrupted filesystem, above dd command will copy the same corrupted filesystem to /dev/sda2. That's expected and okay, if you only want to keep that one read-only as a backup of the originally corrupted filesystem. Then you can play with rescueing sdb1 - but be careful and remember that sda2 is supposed to be your backup of a corrupted filesystem. Don't mess with that one. Better would have been to copy sdb1 to an image file instead of another partition device. sda2 is the corrupted file system. I'm trying to send a img of the sda2 to backup hard drive sdb1 . I' running into a read-only filisystem on sda3 , but : # mount | grep sda3 /dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered) it say it is rw but when i run the dd command i get a read-only filesystem. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
Am 06.07.2012 18:11, schrieb Jim: On 07/06/2012 12:02 PM, Michael Schwendt wrote: On Fri, 06 Jul 2012 11:22:55 -0400, Jim wrote: /dev/sdb1 is now a blockwise copy of /dev/sda2 On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . That makes no sense. If /dev/sdb1 points at a corrupted filesystem, above dd command will copy the same corrupted filesystem to /dev/sda2. That's expected and okay, if you only want to keep that one read-only as a backup of the originally corrupted filesystem. Then you can play with rescueing sdb1 - but be careful and remember that sda2 is supposed to be your backup of a corrupted filesystem. Don't mess with that one. Better would have been to copy sdb1 to an image file instead of another partition device. sda2 is the corrupted file system. I'm trying to send a img of the sda2 to backup hard drive sdb1 but you did sent the command to overwrite the whole partition AND NOT a image some posts before! I' running into a read-only filisystem on sda3 , but : # mount | grep sda3 /dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered) what role does play sda3 in this game now? it say it is rw but when i run the dd command i get a read-only filesystem what role does play sda3 mounted as rootfs for the dd-command and why should dd write to this drive? A LAST TIME: provide UNCUTTED inputs and outputs if you need help as also FULL information what are you trying to do and not only what you think is the solution signature.asc Description: OpenPGP digital signature -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
On 07/06/2012 08:22 AM, Jim issued this missive:: On 07/06/2012 11:09 AM, Reindl Harald wrote: Am 06.07.2012 17:01, schrieb Reindl Harald: Am 06.07.2012 16:11, schrieb Jim: On 07/05/2012 01:30 PM, Reindl Harald wrote: I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition /dev/sdb1 is now a blockwise copy of /dev/sd1 if you want a image you have to use dd if=/deV7sda1 of=/path/filename.image well, i guess the reason why this happened was a combination of plain stupid advise below without explain what it does in a real dangerous way and blindly following any advise without trying to understand what are you doing hopefully lesson learned - BOTH of you! this is why i said google for ddrescue and NOT provide any HIGH DANGEROUS command line Original-Nachricht Betreff: Re: sda2 is corrupted Datum: Thu, 5 Jul 2012 20:15:14 +0200 Von: Heinz Diehlh...@fritha.org Antwort an: Community support for Fedora usersusers@lists.fedoraproject.org Organisation: private site An:users@lists.fedoraproject.org On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . Jim, what the others are trying to say (and several of them not too gracefully) is that the command you ran simply did a block-for-block copy of /dev/sda2 over the top of /dev/sdb1. /dev/sdb1 is now an exact copy of /dev/sda2 and whatever was on /dev/sdb1 has now been destroyed. You need to re-create a filesystem on that /dev/sdb1 partition. Plug the drive in and (as root) recreate the filesystem: mke2fs -t ext4 /dev/sdb1 When that's done, mount /dev/sdb1 somewhere (usually there's a /mnt directory you can use). Example: mount /dev/sdb1 /mnt Finally, you can do the copy by entering this command: dd if=/dev/sda2 of=/mnt/driveimage.img This would create a file, driveimage.img in the /mnt directory (and thus on /dev/sdb1). Once that's complete, you can unmount /dev/sdb1: umount /mnt and unplug the drive to keep it safe. When that's all done, you can attempt to run the fsck on /dev/sda2. -- - Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com - - AIM/Skype: therps2ICQ: 22643734Yahoo: origrps2 - -- - Consciousness: that annoying time between naps. - -- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On 07/06/2012 12:11 PM, Jim wrote: On 07/06/2012 12:02 PM, Michael Schwendt wrote: On Fri, 06 Jul 2012 11:22:55 -0400, Jim wrote: /dev/sdb1 is now a blockwise copy of /dev/sda2 On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . That makes no sense. If /dev/sdb1 points at a corrupted filesystem, above dd command will copy the same corrupted filesystem to /dev/sda2. That's expected and okay, if you only want to keep that one read-only as a backup of the originally corrupted filesystem. Then you can play with rescueing sdb1 - but be careful and remember that sda2 is supposed to be your backup of a corrupted filesystem. Don't mess with that one. Better would have been to copy sdb1 to an image file instead of another partition device. sda2 is the corrupted file system. I'm trying to send a img of the sda2 to backup hard drive sdb1 . I' running into a read-only filisystem on sda3 , but : # mount | grep sda3 /dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered) it say it is rw but when i run the dd command i get a read-only filesystem. mount | grep sdb1 /dev/sdb1 on /media/backup type ext4 (ro,relatime,seclabel,errors=continue,data=ordered) now I find out that sdb1 ,external/USB hard drive is read-only, what command would I use to make it a read-write partition. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
On 07/06/2012 12:20 PM, Rick Stevens wrote: On 07/06/2012 08:22 AM, Jim issued this missive:: On 07/06/2012 11:09 AM, Reindl Harald wrote: Am 06.07.2012 17:01, schrieb Reindl Harald: Am 06.07.2012 16:11, schrieb Jim: On 07/05/2012 01:30 PM, Reindl Harald wrote: I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 . Confused ??? no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition /dev/sdb1 is now a blockwise copy of /dev/sd1 if you want a image you have to use dd if=/deV7sda1 of=/path/filename.image well, i guess the reason why this happened was a combination of plain stupid advise below without explain what it does in a real dangerous way and blindly following any advise without trying to understand what are you doing hopefully lesson learned - BOTH of you! this is why i said google for ddrescue and NOT provide any HIGH DANGEROUS command line Original-Nachricht Betreff: Re: sda2 is corrupted Datum: Thu, 5 Jul 2012 20:15:14 +0200 Von: Heinz Diehlh...@fritha.org Antwort an: Community support for Fedora usersusers@lists.fedoraproject.org Organisation: private site An:users@lists.fedoraproject.org On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . Jim, what the others are trying to say (and several of them not too gracefully) is that the command you ran simply did a block-for-block copy of /dev/sda2 over the top of /dev/sdb1. /dev/sdb1 is now an exact copy of /dev/sda2 and whatever was on /dev/sdb1 has now been destroyed. You need to re-create a filesystem on that /dev/sdb1 partition. Plug the drive in and (as root) recreate the filesystem: mke2fs -t ext4 /dev/sdb1 When that's done, mount /dev/sdb1 somewhere (usually there's a /mnt directory you can use). Example: mount /dev/sdb1 /mnt Finally, you can do the copy by entering this command: dd if=/dev/sda2 of=/mnt/driveimage.img This would create a file, driveimage.img in the /mnt directory (and thus on /dev/sdb1). Once that's complete, you can unmount /dev/sdb1: umount /mnt and unplug the drive to keep it safe. When that's all done, you can attempt to run the fsck on /dev/sda2. -- - Rick Stevens, Systems Engineer, AllDigital ri...@alldigital.com - - AIM/Skype: therps2ICQ: 22643734Yahoo: origrps2 - - - - Consciousness: that annoying time between naps. - -- Thanks Rick I have done all that you have said but now I'm running into read-only file systems, what command would I use to change the ro to rw on external hard drive sdb1 ? -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
Am 06.07.2012 18:28, schrieb Jim: On 07/06/2012 12:11 PM, Jim wrote: On 07/06/2012 12:02 PM, Michael Schwendt wrote: On Fri, 06 Jul 2012 11:22:55 -0400, Jim wrote: /dev/sdb1 is now a blockwise copy of /dev/sda2 On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . That makes no sense. If /dev/sdb1 points at a corrupted filesystem, above dd command will copy the same corrupted filesystem to /dev/sda2. That's expected and okay, if you only want to keep that one read-only as a backup of the originally corrupted filesystem. Then you can play with rescueing sdb1 - but be careful and remember that sda2 is supposed to be your backup of a corrupted filesystem. Don't mess with that one. Better would have been to copy sdb1 to an image file instead of another partition device. sda2 is the corrupted file system. I'm trying to send a img of the sda2 to backup hard drive sdb1 . I' running into a read-only filisystem on sda3 , but : # mount | grep sda3 /dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered) it say it is rw but when i run the dd command i get a read-only filesystem. mount | grep sdb1 /dev/sdb1 on /media/backup type ext4 (ro,relatime,seclabel,errors=continue,data=ordered) now I find out that sdb1 ,external/USB hard drive is read-only, what command would I use to make it a read-write partition. boag this is the result of I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 as i said in my first reply today no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition so you have to create a NEW fileystem on /dev/sdb1 you have overwritten it with the source-partition of you dd-command also you did not realize why we are suggested to use dd or ddrescue before any other attempt - because you get a BLOCKWISE image of the whole partitionor even disk which can be backuped mutilple times to test restore strategies but if you are start using dd the wrong way you are pretty soon at the end try to undersatnd what commands are supposed to do and read their manpages CAREFULLY before use them, use google to learn about them and AFTER that think if you are really sure to be the right person for data-restore on a damaged disk BUT even if you are coming to the conslusion you are the wrong one the FIRST step to make CAREFUL a dd-image of a appearently dying FS/disk is the right way becasue if the disk is dead whoever can continue try to restore data from this image signature.asc Description: OpenPGP digital signature -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
Am 06.07.2012 18:35, schrieb Jim: On 07/06/2012 12:20 PM, Rick Stevens wrote: that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . Jim, what the others are trying to say (and several of them not too gracefully) is that the command you ran simply did a block-for-block copy of /dev/sda2 over the top of /dev/sdb1. /dev/sdb1 is now an exact copy of /dev/sda2 and whatever was on /dev/sdb1 has now been destroyed. You need to re-create a filesystem on that /dev/sdb1 partition. Plug the drive in and (as root) recreate the filesystem: mke2fs -t ext4 /dev/sdb1 When that's done, mount /dev/sdb1 somewhere (usually there's a /mnt directory you can use). Example: mount /dev/sdb1 /mnt Finally, you can do the copy by entering this command: dd if=/dev/sda2 of=/mnt/driveimage.img This would create a file, driveimage.img in the /mnt directory (and thus on /dev/sdb1). Once that's complete, you can unmount /dev/sdb1: umount /mnt and unplug the drive to keep it safe. When that's all done, you can attempt to run the fsck on /dev/sda2. -- - Rick Stevens, Systems Engineer, AllDigital ri...@alldigital.com - - AIM/Skype: therps2ICQ: 22643734Yahoo: origrps2 - - - - Consciousness: that annoying time between naps. - -- Thanks Rick I have done all that you have said but now I'm running into read-only file systems, what command would I use to change the ro to rw on external hard drive sdb1 ? YOU ARE STLL CONTINUE TO IGNORE WHAT PEOPLE ARE TELLING YOU what exactly did you not understand in the reply which you are quoting now? Jim, what the others are trying to say (and several of them not too gracefully) is that the command you ran simply did a block-for-block copy of /dev/sda2 over the top of /dev/sdb1. /dev/sdb1 is now an exact copy of /dev/sda2 and whatever was on /dev/sdb1 has now been destroyed You need to re-create a filesystem on that /dev/sdb1 partition. Plug the drive in and (as root) recreate the filesystem: mke2fs -t ext4 /dev/sdb1 you have KILLED the FS of /dev/sdb1 with your first dd-command there is NOTHING to restore, it is OVERWRITTEN COMPLETLY signature.asc Description: OpenPGP digital signature -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On 07/06/2012 12:35 PM, Reindl Harald wrote: Am 06.07.2012 18:28, schrieb Jim: On 07/06/2012 12:11 PM, Jim wrote: On 07/06/2012 12:02 PM, Michael Schwendt wrote: On Fri, 06 Jul 2012 11:22:55 -0400, Jim wrote: /dev/sdb1 is now a blockwise copy of /dev/sda2 On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk that is exactly what I did but nothing shows up on /dev/sdb1 external drive after dd has completed . That makes no sense. If /dev/sdb1 points at a corrupted filesystem, above dd command will copy the same corrupted filesystem to /dev/sda2. That's expected and okay, if you only want to keep that one read-only as a backup of the originally corrupted filesystem. Then you can play with rescueing sdb1 - but be careful and remember that sda2 is supposed to be your backup of a corrupted filesystem. Don't mess with that one. Better would have been to copy sdb1 to an image file instead of another partition device. sda2 is the corrupted file system. I'm trying to send a img of the sda2 to backup hard drive sdb1 . I' running into a read-only filisystem on sda3 , but : # mount | grep sda3 /dev/sda3 on / type ext4 (rw,relatime,seclabel,data=ordered) it say it is rw but when i run the dd command i get a read-only filesystem. mount | grep sdb1 /dev/sdb1 on /media/backup type ext4 (ro,relatime,seclabel,errors=continue,data=ordered) now I find out that sdb1 ,external/USB hard drive is read-only, what command would I use to make it a read-write partition. boag this is the result of I run dd if=/dev/sda2 of=/dev/sdb1 to copy, supposely a 26gb image to sdb1 but i do not see a image on sdb1 as i said in my first reply today no, just stupid because you do not read manuals nor know anything about basic-commands and that is why you destroyed /dev/sdb1 if there were data by overwrite the whole partition so you have to create a NEW fileystem on /dev/sdb1 you have overwritten it with the source-partition of you dd-command also you did not realize why we are suggested to use dd or ddrescue before any other attempt - because you get a BLOCKWISE image of the whole partitionor even disk which can be backuped mutilple times to test restore strategies but if you are start using dd the wrong way you are pretty soon at the end try to undersatnd what commands are supposed to do and read their manpages CAREFULLY before use them, use google to learn about them and AFTER that think if you are really sure to be the right person for data-restore on a damaged disk BUT even if you are coming to the conslusion you are the wrong one the FIRST step to make CAREFUL a dd-image of a appearently dying FS/disk is the right way becasue if the disk is dead whoever can continue try to restore data from this image Believe me Reindl I been very much aware about writing on sda2 . And thank you for your help -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/06/2012 05:35 PM, Jim wrote: Thanks Rick I have done all that you have said but now I'm running into read-only file systems, what command would I use to change the ro to rw on external hard drive sdb1 ? It was probably still mounted from your first attempt - when a file system is placed in read-only mode it remains mounted until an administrator either unmounts it manually to clean up, or the system is rebooted. Regards, Bryn. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/3It4ACgkQ6YSQoMYUY96i+gCgjN/OMTAnz/P9/T1XeIpkFxrI xiEAn3+hwQDTwe0Doq12zzRU1yZUqXnq =SKXw -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted (HOWTO NOT HELP)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/06/2012 05:35 PM, Jim wrote: Thanks Rick I have done all that you have said but now I'm running into read-only file systems, what command would I use to change the ro to rw on external hard drive sdb1 ? Since the original dd command: dd if=/dev/sda2 of=/dev/sdb1 Probably overwrote the file system that was on sdb1 (even though it was mounted - Linux/UNIX will not stop you from doing that) this is the most likely cause of the file system now being read only. If you give dd the path of a block device (for e.g. /dev/sda2 or /dev/sdb1) then it will write or read directly to or from the device. This is useful for copying file system images between devices but is probably not what you wanted here. The if= argument to dd is the input file - where to read from - and the of= argument is the output - where to write to. If this command ran for any length of time it will have overwritten the file system on sdb1. When creating an image in another file system the if= argument must be a device and the of= argument needs to be a path that refers to a location on the target file system. For instance, if I have /dev/sdc5 mounted on /home: # mount | grep home /dev/sdc5 on /home type ext3 (rw) And if I want to take an image of /dev/sda2 and store it in a file named sda2.img in my home directory I would run: # dd if=/dev/sda2 of=/home/bmr/sda2.img You need to do something similar but specifying a path that corresponds to the correct mount path for your sdb1 file system. When taking an image like this if is a device node in /dev and of is a path in the mounted file system. The reason your file system is now read-only is that when ext2/3/4 (or other file systems) detect an inconsistency with what's expected to be on the disk they will place the fs in read-only mode to prevent further damage. When the kernel started reading unexpected data from sdb1 it triggered this mechanism and aborted the file system. The file system on sdb1 is possible damaged beyond repair at this point so if there was nothing valuable on it already you are probably best off unmounting it and creating a new file system on the device. You should take some time to make sure you have everything correct this time and ask questions if you're unsure about the right commands to use but assuming sdb1 did not contain anything you want to recover you could create a new file system on it, mount it, and create the image with steps like the following: # umount /dev/sdb1[ ensure that the device is not mounted before proceeding ] This umount is probably the step you missed if you're still seeing read-only messages. # mkfs.ext4 /dev/sdb1 [ or mke2fs -t ext3 as Rick suggested - they will both give you the same result ] # mount /dev/sdb1 /mnt # dd if=/dev/sda2 of=/mnt/sda2.img This will create a new file named sda2.img in the top-level directory of the new file system on sdb1 that is mounted at /mnt. You can check that the mount command worked by running: # dmesg | tail EXT4-fs (loop7): mounted filesystem with ordered data mode SELinux: initialized (dev loop7, type ext4), uses xattr The device name will be different but you should see the mount message. If you try this and get any errors it's probably a good idea to check them out before carrying on. You can find an example of all these commands and their output in fpaste here: http://fpaste.org/XYNU/ Don't expect the output to be identical on your system but it should provide a guide (I've tried to highlight where you should see something different). Regards, Bryn. ` -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/3I2cACgkQ6YSQoMYUY977BgCgmgUjvNItw7ZQnyOA2QWeVmhW XkwAoJ35Dy24Wc7VoEBz5OkkVg0orJoH =PUag -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
SOLVED: sda2 is corrupted
Will guys I want to thank all of you that help me on this project. This computer crashed four days after I gave it to my friend ,he said he just exited from playing his Games to logging onto the internet with Firefox. and something popped up about robo.. and he could not restart computer. It would come up to rescue grub at bootup, I checked the partitions with gparted it changed the / an /home partitions to UNKNOWN. It crashed two partitions I finally got the img of sda2 on to external hard drive 26gb. Then I did a e2fsck /dev/sda2 it took e2fsck about 45 mins to fix the sda2 partition , One of Two users /home directories was totally gone , the one tjhat was being used at CRASH time. But the one that was not being used and had the important data to be saved was still intact. I have never seen a Linux computer crashed this bad. THANK GOD FOR THE GUYS THAT DEVELOPE E2FSCK. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On Fri, Jul 6, 2012 at 11:55 AM, Jim binary...@comcast.net wrote: Will guys I want to thank all of you that help me on this project. This computer crashed four days after I gave it to my friend ,he said he just exited from playing his Games to logging onto the internet with Firefox. and something popped up about robo.. and he could not restart computer. It would come up to rescue grub at bootup, I checked the partitions with gparted it changed the / an /home partitions to UNKNOWN. It crashed two partitions I finally got the img of sda2 on to external hard drive 26gb. Then I did a e2fsck /dev/sda2 it took e2fsck about 45 mins to fix the sda2 partition , One of Two users /home directories was totally gone , the one tjhat was being used at CRASH time. But the one that was not being used and had the important data to be saved was still intact. I have never seen a Linux computer crashed this bad. THANK GOD FOR THE GUYS THAT DEVELOPE E2FSCK. You ought to back everything up on an external drive for this person. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On 07/06/2012 03:01 PM, Richard Vickery wrote: On Fri, Jul 6, 2012 at 11:55 AM, Jim binary...@comcast.net mailto:binary...@comcast.net wrote: Will guys I want to thank all of you that help me on this project. This computer crashed four days after I gave it to my friend ,he said he just exited from playing his Games to logging onto the internet with Firefox. and something popped up about robo.. and he could not restart computer. It would come up to rescue grub at bootup, I checked the partitions with gparted it changed the / an /home partitions to UNKNOWN. It crashed two partitions I finally got the img of sda2 on to external hard drive 26gb. Then I did a e2fsck /dev/sda2 it took e2fsck about 45 mins to fix the sda2 partition , One of Two users /home directories was totally gone , the one tjhat was being used at CRASH time. But the one that was not being used and had the important data to be saved was still intact. I have never seen a Linux computer crashed this bad. THANK GOD FOR THE GUYS THAT DEVELOPE E2FSCK. You ought to back everything up on an external drive for this person. I'am going to put it on my backup hard drive and take it over to my friends house and put it onto his brand new 500gb backup hard drive and let him pull off the files he needs. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
Good for you. Glad you achieved some lessons learned and success in getting some data back! Now you can have a great weekend! From: Jim binary...@comcast.net To: Community support for Fedora users users@lists.fedoraproject.org Sent: Friday, July 6, 2012 3:13 PM Subject: Re: SOLVED: sda2 is corrupted On 07/06/2012 03:01 PM, Richard Vickery wrote: On Fri, Jul 6, 2012 at 11:55 AM, Jim binary...@comcast.net wrote: Will guys I want to thank all of you that help me on this project. This computer crashed four days after I gave it to my friend ,he said he just exited from playing his Games to logging onto the internet with Firefox. and something popped up about robo.. and he could not restart computer. It would come up to rescue grub at bootup, I checked the partitions with gparted it changed the / an /home partitions to UNKNOWN. It crashed two partitions I finally got the img of sda2 on to external hard drive 26gb. Then I did a e2fsck /dev/sda2 it took e2fsck about 45 mins to fix the sda2 partition , One of Two users /home directories was totally gone , the one tjhat was being used at CRASH time. But the one that was not being used and had the important data to be saved was still intact. I have never seen a Linux computer crashed this bad. THANK GOD FOR THE GUYS THAT DEVELOPE E2FSCK. You ought to back everything up on an external drive for this person. I'am going to put it on my backup hard drive and take it over to my friends house and put it onto his brand new 500gb backup hard drive and let him pull off the files he needs. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On 07/06/2012 02:13 PM, Jim wrote: THANK GOD FOR THE GUYS THAT DEVELOPEÂ E2FSCK. Â You ought to back everything up on an external drive for this person. I'am going to put it on my backup hard drive and take it over to my friends house and put it onto his brand new 500gb backup hard drive and let him pull off the files he needs. Did anything show up in the /lost+found directory? -- -- Steve -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On 07/06/2012 01:41 PM, Steven Stern wrote: Did anything show up in the /lost+found directory? Good advice. I had a box boot for the specified number of times to require an fsck. I ended up with a box that wouldn't boot. After moving the drive to another machine I tried a little forensics: the entire contents of the /boot partition had disappeared. On a hunch I treeed lost+found and found many leafless branches but one that had the entire contents of /boot. Copied everything back to /boot and did another fsck. Clean! Returned the drive to its original box and booted. Came up without a hitch. To this day I haven't the slightest idea what happened to corrupt the drive and can say that its the first time I've ever found anything in a lost+found directory. Very glad it was there. First time in 15 years I've seen anything like that. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On 07/06/2012 04:41 PM, Steven Stern wrote: On 07/06/2012 02:13 PM, Jim wrote: THANK GOD FOR THE GUYS THAT DEVELOPEÂ E2FSCK. Â You ought to back everything up on an external drive for this person. I'am going to put it on my backup hard drive and take it over to my friends house and put it onto his brand new 500gb backup hard drive and let him pull off the files he needs. Did anything show up in the /lost+found directory? 1,100 folders 5,938 files 410.2mib That is probly the lost User that lost his home directory -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On Fri, 6 Jul 2012, Mike Wright wrote: After moving the drive to another machine I tried a little forensics: the entire contents of the /boot partition had disappeared. On a hunch I treeed lost+found and found many leafless branches but one that had the entire contents of /boot. Copied everything back to /boot and did another fsck. Clean! What does it mean to tree lost+found? -- Michael henne...@web.cs.ndsu.nodak.edu On Monday, I'm gonna have to tell my kindergarten class, whom I teach not to run with scissors, that my fiance ran me through with a broadsword. -- Lily -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On 07/06/2012 03:40 PM, Michael Hennebry wrote: On Fri, 6 Jul 2012, Mike Wright wrote: After moving the drive to another machine I tried a little forensics: the entire contents of the /boot partition had disappeared. On a hunch I treeed lost+found and found many leafless branches but one that had the entire contents of /boot. Copied everything back to /boot and did another fsck. Clean! What does it mean to tree lost+found? tree is a command that shows the contents of any directory, its subdirectories, and any files they contain. Very useful. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: SOLVED: sda2 is corrupted
On Fri, 2012-07-06 at 14:55 -0400, Jim wrote: Then I did a e2fsck /dev/sda2 it took e2fsck about 45 mins to fix the sda2 partition , One of Two users /home directories was totally gone , the one tjhat was being used at CRASH time. But the one that was not being used and had the important data to be saved was still intact. I have never seen a Linux computer crashed this bad. You'd want to test the drive for errors, now, in case it was the cause of the crash. There's no point continuing to use a faulty drive, even if it appears to work at the time. There are tools that can be downloaded from the hard drive manufacturer's websites to test their own drives (either windows tools, or they make a bootable CD that bypasses any OS on your computer). And there are SMART tools that can be used in Linux. Unexpected severe crashes and drive corruptions can just be a random glitch (such as a momentary power fail), or indicative of some hardware fault in the computer (the power supply, the drive itself, RAM, motherboard, et cetera). Or, simply, that the cards plugged into the motherboard are walking loose of their sockets, and pulling them out then re-inserting them is required. And the old favourite, of the CPU cooler being gunked up with fluff so the CPU overheats. I'd try to do some investigation into *why* it failed, if I were you. -- [tim@localhost ~]$ uname -r 2.6.27.25-78.2.56.fc9.i686 Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
sda2 is corrupted
Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On 05.07.2012 19:15, Jim wrote: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 1. What is the type of that file system? 2. Can you paste error messages related to this partition? 3. What happens after system reboot? Does it mount or not? Mateusz Marzantowicz -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
Am 05.07.2012 19:15, schrieb Jim: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home what does mount /dev/sda /home say in dmesg` I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? signature.asc Description: OpenPGP digital signature -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
One tool that I find helpful is 'cfg2html', which documents a whole bunch of stuff, including partition configuration and a few details that contribute to partition recovery. Doesn't help after the fact, but take it as food for thought to assist with future problems. From: Jim binary...@comcast.net To: Community support for Fedora users users@lists.fedoraproject.org Sent: Thursday, July 5, 2012 1:47 PM Subject: Re: sda2 is corrupted On 07/05/2012 01:23 PM, Mateusz Marzantowicz wrote: On 05.07.2012 19:15, Jim wrote: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 1. What is the type of that file system? ext4 2. Can you paste error messages related to this partition? No , Gparted can not mount it either 3. What happens after system reboot? Does it mount or not? No , only / is mounted Mateusz Marzantowicz -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On 05.07.2012, Jim wrote: There are some important data files I must save off of sda2 Before you start any rescueing, take a full snapshot of the partition, e.g. dd if=/dev/sda2 of=/dev/on_an_external_disk or something like that. Otherwise, your efforts to rescue the data can actually ruin it, and without a backup, your data is irrecoverably lost. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On Thu, 2012-07-05 at 13:47 -0400, Jim wrote: On 07/05/2012 01:23 PM, Mateusz Marzantowicz wrote: On 05.07.2012 19:15, Jim wrote: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 1. What is the type of that file system? ext4 2. Can you paste error messages related to this partition? No , Gparted can not mount it either 3. What happens after system reboot? Does it mount or not? No , only / is mounted Mateusz Marzantowicz So when the system reboots you see a /dev/sda2 device, correct? When you type mount /dev/sda2 /somewhere (where somewhere is some existing, handy mount point) you get an error message saying that the file system isn't recognized or can't be determined? If you type mount -t ext4 /dev/sda2 /somewhere you get an error message, e.g., not an ext4 filesystem? What I would try next is running e2fsck -n /dev/sda2 and see what that says. The -n to insure nothing is written to the disk (just in case). Try it and post the results to the list here. The partition superblock may be corrupted and I have no idea what e2fsck will try to do if that's the case. It may just give up without looking at the backup superblock. -- Mark C. Allman, PMP, CSM Founder, See How You Ski Allman Professional Consulting, Inc., www.allmanpc.com 617-947-4263, Twitter: @allmanpc -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On 07/05/2012 01:30 PM, Reindl Harald wrote: Am 05.07.2012 19:15, schrieb Jim: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home what does mount /dev/sda /home say in dmesg` I have tried to use fedora and Gparted with no luck you should not play around before knowing what problem the drive has if it is a physical problem google for ddrescue There are some important data files I must save off of sda2 what about BACKUPS? ff your data is important backups exists if your data is not important it does not matter why do people still need to learn it the hard way? The home partition is on sda2 # mount -t ext4 /dev/sda2 /home mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so dmesg: 927.983169] EXT4-fs (sda2): VFS: Can't find ext4 filesystem This computer is a friend of mine and after this I did convince him about a backup external drive. why do people still need to learn it the hard way? Because they know better than you until they have a crash,then they listen and Blame the problem on you. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On 07/05/2012 02:13 PM, Mark C. Allman wrote: On Thu, 2012-07-05 at 13:47 -0400, Jim wrote: On 07/05/2012 01:23 PM, Mateusz Marzantowicz wrote: On 05.07.2012 19:15, Jim wrote: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 1. What is the type of that file system? ext4 2. Can you paste error messages related to this partition? No , Gparted can not mount it either 3. What happens after system reboot? Does it mount or not? No , only / is mounted Mateusz Marzantowicz So when the system reboots you see a /dev/sda2 device, correct? When you type mount /dev/sda2 /somewhere (where somewhere is some existing, handy mount point) you get an error message saying that the file system isn't recognized or can't be determined? If you type mount -t ext4 /dev/sda2 /somewhere you get an error message, e.g., not an ext4 filesystem? What I would try next is running e2fsck -n /dev/sda2 and see what that says. The -n to insure nothing is written to the disk (just in case). Try it and post the results to the list here. The partition superblock may be corrupted and I have no idea what e2fsck will try to do if that's the case. It may just give up without looking at the backup superblock. # e2fsck -n /dev/sda2 e2fsck 1.42 (29-Nov-2011) e2fsck: Superblock invalid, trying backup blocks... Superblock has an invalid journal (inode 8). Clear? no e2fsck: Illegal inode number while checking ext3 journal for /home /home: ** WARNING: Filesystem still has errors ** -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
Another option for you, is to check out 'runtime.org'. Disclaimer... I do own some of their products and have had great success with them. They have a Disk Explorer for Linux v4.26.. don't know for certain if it will examine the drive you are having problems with, but it is worth a shot. They have a free download and it is $69.00 to purchase it. They also have a free Live CD that is bootable and has their products embeded for use. From: Jim binary...@comcast.net To: mcall...@allmanpc.com; Community support for Fedora users users@lists.fedoraproject.org Sent: Thursday, July 5, 2012 2:30 PM Subject: Re: sda2 is corrupted On 07/05/2012 02:13 PM, Mark C. Allman wrote: On Thu, 2012-07-05 at 13:47 -0400, Jim wrote: On 07/05/2012 01:23 PM, Mateusz Marzantowicz wrote: On 05.07.2012 19:15, Jim wrote: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 1. What is the type of that file system? ext4 2. Can you paste error messages related to this partition? No , Gparted can not mount it either 3. What happens after system reboot? Does it mount or not? No , only / is mounted Mateusz Marzantowicz So when the system reboots you see a /dev/sda2 device, correct? When you type mount /dev/sda2 /somewhere (where somewhere is some existing, handy mount point) you get an error message saying that the file system isn't recognized or can't be determined? If you type mount -t ext4 /dev/sda2 /somewhere you get an error message, e.g., not an ext4 filesystem? What I would try next is running e2fsck -n /dev/sda2 and see what that says. The -n to insure nothing is written to the disk (just in case). Try it and post the results to the list here. The partition superblock may be corrupted and I have no idea what e2fsck will try to do if that's the case. It may just give up without looking at the backup superblock. # e2fsck -n /dev/sda2 e2fsck 1.42 (29-Nov-2011) e2fsck: Superblock invalid, trying backup blocks... Superblock has an invalid journal (inode 8). Clear? no e2fsck: Illegal inode number while checking ext3 journal for /home /home: ** WARNING: Filesystem still has errors ** -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
Follow allmanpc on Twitter View Mark Allman, PMP, CSM's profile on LinkedIn On Thu, 2012-07-05 at 14:30 -0400, Jim wrote: On 07/05/2012 02:13 PM, Mark C. Allman wrote: On Thu, 2012-07-05 at 13:47 -0400, Jim wrote: On 07/05/2012 01:23 PM, Mateusz Marzantowicz wrote: On 05.07.2012 19:15, Jim wrote: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 1. What is the type of that file system? ext4 2. Can you paste error messages related to this partition? No , Gparted can not mount it either 3. What happens after system reboot? Does it mount or not? No , only / is mounted Mateusz Marzantowicz So when the system reboots you see a /dev/sda2 device, correct? When you type mount /dev/sda2 /somewhere (where somewhere is some existing, handy mount point) you get an error message saying that the file system isn't recognized or can't be determined? If you type mount -t ext4 /dev/sda2 /somewhere you get an error message, e.g., not an ext4 filesystem? What I would try next is running e2fsck -n /dev/sda2 and see what that says. The -n to insure nothing is written to the disk (just in case). Try it and post the results to the list here. The partition superblock may be corrupted and I have no idea what e2fsck will try to do if that's the case. It may just give up without looking at the backup superblock. # e2fsck -n /dev/sda2 e2fsck 1.42 (29-Nov-2011) e2fsck: Superblock invalid, trying backup blocks... Superblock has an invalid journal (inode 8). Clear? no e2fsck: Illegal inode number while checking ext3 journal for /home /home: ** WARNING: Filesystem still has errors ** Before you do anything else I would definitely make the backup copy of the partition as suggested earlier in another post using dd. At this point I defer to the disk partition wizards on the list. I have no idea what would happen if you were to remove the -n switch and tell e2fsck to clear the journal. If I read the output from e2fsck right it looks like a backup superblock was found (which is good, I'd think). -- Mark C. Allman, PMP, CSM Founder, See How You Ski Allman Professional Consulting, Inc., www.allmanpc.com 617-947-4263, Twitter: @allmanpc -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: sda2 is corrupted
On Thu, 2012-07-05 at 14:43 -0400, Mark C. Allman wrote: Follow allmanpc on Twitter View Mark Allman, PMP, CSM's profile on LinkedIn On Thu, 2012-07-05 at 14:30 -0400, Jim wrote: On 07/05/2012 02:13 PM, Mark C. Allman wrote: On Thu, 2012-07-05 at 13:47 -0400, Jim wrote: On 07/05/2012 01:23 PM, Mateusz Marzantowicz wrote: On 05.07.2012 19:15, Jim wrote: Fedora 17 the sda2 /home is corruoted and it changed /home partitiion to UNKNOWN and it won't let me change the label back to /home I have tried to use fedora and Gparted with no luck. There are some important data files I must save off of sda2 1. What is the type of that file system? ext4 2. Can you paste error messages related to this partition? No , Gparted can not mount it either 3. What happens after system reboot? Does it mount or not? No , only / is mounted Mateusz Marzantowicz So when the system reboots you see a /dev/sda2 device, correct? When you type mount /dev/sda2 /somewhere (where somewhere is some existing, handy mount point) you get an error message saying that the file system isn't recognized or can't be determined? If you type mount -t ext4 /dev/sda2 /somewhere you get an error message, e.g., not an ext4 filesystem? What I would try next is running e2fsck -n /dev/sda2 and see what that says. The -n to insure nothing is written to the disk (just in case). Try it and post the results to the list here. The partition superblock may be corrupted and I have no idea what e2fsck will try to do if that's the case. It may just give up without looking at the backup superblock. # e2fsck -n /dev/sda2 e2fsck 1.42 (29-Nov-2011) e2fsck: Superblock invalid, trying backup blocks... Superblock has an invalid journal (inode 8). Clear? no e2fsck: Illegal inode number while checking ext3 journal for /home /home: ** WARNING: Filesystem still has errors ** Before you do anything else I would definitely make the backup copy of the partition as suggested earlier in another post using dd. At this point I defer to the disk partition wizards on the list. I have no idea what would happen if you were to remove the -n switch and tell e2fsck to clear the journal. If I read the output from e2fsck right it looks like a backup superblock was found (which is good, I'd think). -- Mark C. Allman, PMP, CSM Founder, See How You Ski Allman Professional Consulting, Inc., www.allmanpc.com 617-947-4263, Twitter: @allmanpc Whoops! Sorry about not snipping off all of the header at the top of my last post. -- Mark -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org