Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 50

Thread: Persistence and Live Opensuse 12.3 USB

  1. #21
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    Default Re: Persistence and Live Opensuse 12.3 USB

    On Tue, 09 Apr 2013 11:06:05 +0000, pomchip wrote:

    > I ran the following shell command as root:
    >
    > dd if=/home/sebastien/Downloads/OpenSUSE_12.3__KDE4.i686-0.0.1.raw
    > of=/dev/sdc bs=4k
    >
    > Sebastien


    I'm a little puzzled, your of= parameter here is /dev/sdc, but the
    partition you checked was /dev/sde1. That should be /dev/sdc1 if I'm not
    mistaken.

    Can you confirm?

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  2. #22
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,776
    Blog Entries
    14

    Default Re: Persistence and Live Opensuse 12.3 USB

    Quote Originally Posted by hendersj View Post
    On Tue, 09 Apr 2013 11:06:05 +0000, pomchip wrote:

    > I ran the following shell command as root:
    >
    > dd if=/home/sebastien/Downloads/OpenSUSE_12.3__KDE4.i686-0.0.1.raw
    > of=/dev/sdc bs=4k
    >
    > Sebastien


    I'm a little puzzled, your of= parameter here is /dev/sdc, but the
    partition you checked was /dev/sde1. That should be /dev/sdc1 if I'm not
    mistaken.

    Can you confirm?

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at openSUSE Forums FAQ
    Hehe. I managed to create a nice 1.4 GB size file called sdb in /dev. Forgot I had removed an SD card (which was /dev/sdb) and assumed by USB stick was /dev/sdb.
    My advice to go with Jim's question: before any operation from the command line, definitely as when being root, verify you're "talking" to the right device. Plug the device, look at output of
    Code:
    ls -ltr /dev | tail
    dmesg | tail
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #23
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Persistence and Live Opensuse 12.3 USB

    On 2013-04-09 19:04, Jim Henderson wrote:
    > On Tue, 09 Apr 2013 13:38:15 +0000, Carlos E. R. wrote:
    >
    >> So you see, it does not match your .raw file value. I don't clearly know
    >> where you obtain that raw file from, though.

    >
    > I was asking the OP about the checksums for the custom image he was
    > using, generated from SUSE Studio.


    If "burnt" to USB stick, it will not match unless you follow my
    procedure. The on-disk images and the .raw/.iso files have different sizes.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  4. #24
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    Default Re: Persistence and Live Opensuse 12.3 USB

    On Tue, 09 Apr 2013 20:58:07 +0000, Carlos E. R. wrote:

    > On 2013-04-09 19:04, Jim Henderson wrote:
    >> On Tue, 09 Apr 2013 13:38:15 +0000, Carlos E. R. wrote:
    >>
    >>> So you see, it does not match your .raw file value. I don't clearly
    >>> know where you obtain that raw file from, though.

    >>
    >> I was asking the OP about the checksums for the custom image he was
    >> using, generated from SUSE Studio.

    >
    > If "burnt" to USB stick, it will not match unless you follow my
    > procedure. The on-disk images and the .raw/.iso files have different
    > sizes.


    Sure, but still comparing the stock ISO to a raw image from SUSE Studio
    (which is what OP is using) isn't going to yield a useful result -
    they're almost certainly guaranteed to be different.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  5. #25

    Default Re: Persistence and Live Opensuse 12.3 USB

    Quote Originally Posted by hendersj View Post
    On Tue, 09 Apr 2013 11:06:05 +0000, pomchip wrote:
    I'm a little puzzled, your of= parameter here is /dev/sdc, but the
    partition you checked was /dev/sde1. That should be /dev/sdc1 if I'm not
    mistaken.

    Can you confirm?

    Jim
    Hi,

    My USB stick sometimes shows up as sdc or sde, if I plugged it in before or after booting the machine I use to work on the USB stick image.

    I apologize for not editing the command. My brain does not always register the difference when I post, although I always make sure to identify the proper USB stick address when I execute dd.

    That being said, am I correct in my interpretation of the last series of posts: checking the md5sum of the USB stick after copying the image against the original md5sum as meaningless?

  6. #26
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Persistence and Live Opensuse 12.3 USB

    On 2013-04-10 01:00, Jim Henderson wrote:
    > On Tue, 09 Apr 2013 20:58:07 +0000, Carlos E. R. wrote:



    > Sure, but still comparing the stock ISO to a raw image from SUSE Studio
    > (which is what OP is using) isn't going to yield a useful result -
    > they're almost certainly guaranteed to be different.


    Yes, absolutely.


    But I'm also saying that you can not use plain md5sum to verify the USB
    stick, it doesn't work.

    I did the comparison against the official image because that's the only
    one I have, and worked out a non-optimal procedure for doing the
    checking on a stick. Others can take my findings and devise a faster method.

    For example, from an old script of mine to check DVDs:

    Code:
    cmp --bytes=$(wc -c <$1) /dev/dvd $1
    the parameter 1 is the image file. The above can be applied to sticks,
    too, but I have not tested it, as it takes time and that computer is
    busy right now.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  7. #27
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    Default Re: Persistence and Live Opensuse 12.3 USB

    On Tue, 09 Apr 2013 23:26:02 +0000, pomchip wrote:

    > My USB stick sometimes shows up as sdc or sde, if I plugged it in before
    > or after booting the machine I use to work on the USB stick image.
    >
    > I apologize for not editing the command. My brain does not always
    > register the difference when I post, although I always make sure to
    > identify the proper USB stick address when I execute dd.


    Not a problem, just wanted to be sure that the check was on the proper
    device more than anything.

    > That being said, am I correct in my interpretation of the last series of
    > posts: checking the md5sum of the USB stick after copying the image
    > against the original md5sum as meaningless?


    I'm verifying that myself right now. I'm not convinced that that's
    necessarily the case, though I know there have been instances where an
    MD5SUM of an ISO and the burned image don't match for the reasons Carlos
    explained - but it's not always consistent. I'm building a simple Studio
    appliance (12.3 + GNOME) to write to a flash drive here and will see if I
    see the same checksum or a different one.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  8. #28
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    Default Re: Persistence and Live Opensuse 12.3 USB

    On Tue, 09 Apr 2013 23:28:05 +0000, Carlos E. R. wrote:

    > But I'm also saying that you can not use plain md5sum to verify the USB
    > stick, it doesn't work.


    I remember seeing this on occasion with ISOs burned to DVD media -
    sometimes they would validate, sometimes not, depending on the burning
    options. But I would assume (and I'm going to validate through
    experience myself here in a minute) that a .raw image compared to the
    partition written would match.

    (Though thinking about it, the raw file would include the partition table
    - so my assumption would appear to be bad unless the partition table were
    included)

    So perhaps the approach to take would be to use dd if=/dev/sdc (no
    output) with bs and count parameters that added up to the size of the
    original image and pipe that through md5sum, then compare that to the
    original image's md5sum.

    That would probably work since the byte count would be the same.

    (Thanks for making me think about this a bit more)

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  9. #29
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Persistence and Live Opensuse 12.3 USB

    On 2013-04-10 01:26, pomchip wrote:
    > That being said, am I correct in my interpretation of the last series
    > of posts: checking the md5sum of the USB stick after copying the image
    > against the original md5sum as meaningless?


    Absolutely.

    Do it the way I did and you will see it matches.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  10. #30
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Persistence and Live Opensuse 12.3 USB

    On 2013-04-10 01:36, Jim Henderson wrote:
    > On Tue, 09 Apr 2013 23:28:05 +0000, Carlos E. R. wrote:
    >
    >> But I'm also saying that you can not use plain md5sum to verify the USB
    >> stick, it doesn't work.

    >
    > I remember seeing this on occasion with ISOs burned to DVD media -
    > sometimes they would validate, sometimes not, depending on the burning
    > options.


    Yep.

    > But I would assume (and I'm going to validate through
    > experience myself here in a minute) that a .raw image compared to the
    > partition written would match.
    >
    > (Though thinking about it, the raw file would include the partition table
    > - so my assumption would appear to be bad unless the partition table were
    > included)


    Yes, the partition table should be included in the image.


    > So perhaps the approach to take would be to use dd if=/dev/sdc (no
    > output) with bs and count parameters that added up to the size of the
    > original image and pipe that through md5sum, then compare that to the
    > original image's md5sum.


    Yes, that's my idea, but I don't know how to implement it.

    First, I'm not sure how to pipe from dd.

    Then for adjusting the size you can use "bs=1c count=whatever", but that
    would be terribly slow, because dd would read in chunks of 1 byte.


    > That would probably work since the byte count would be the same.
    >
    > (Thanks for making me think about this a bit more)


    Welcome :-)

    I thought that there would be a difference in size because of sector
    size. What I did not realize is that the size of the usb image is that
    of the entire device... till I extracted it. It is obvious once I think
    about it, but took me by surprise.


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

Page 3 of 5 FirstFirst 12345 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •