FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-06-2012, 03:09 PM
Reindl Harald
 
Default 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 <htd@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"

--
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
 
Old 07-06-2012, 03:22 PM
Jim
 
Default 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 <htd@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
 
Old 07-06-2012, 03:27 PM
Reindl Harald
 
Default 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 <htd@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



--
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
 
Old 07-06-2012, 04:20 PM
Rick Stevens
 
Default 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 Diehl<htd@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 .


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 ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: 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
 
Old 07-06-2012, 04:35 PM
Jim
 
Default 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 Diehl<htd@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 .


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 ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: 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
 
Old 07-06-2012, 04:39 PM
Reindl Harald
 
Default 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 ricks@alldigital.com -
>> - AIM/Skype: therps2 ICQ: 22643734 Yahoo: 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



--
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
 
Old 07-06-2012, 05:39 PM
"Bryn M. Reeves"
 
Default 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
 
Old 07-06-2012, 05:41 PM
"Bryn M. Reeves"
 
Default 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
 

Thread Tools




All times are GMT. The time now is 10:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org