1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My Ubuntu Linux can't mount eSATA Drive

Discussion in 'DIRECTV HD DVR/Receiver Discussion' started by oldbamaguy, Jun 22, 2010.

  1. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    Well, I must admit that you sure sound like you know what is what!!

    "It's normal Linux EXT3+XFS partitions with Real-Time extension.
    If you want to know, I will answer to your questions ... if you don't - no need to spread WAG.
    BTW, only recordings are encrypted."

    That is good information!! I kinda figured the directory would be readable and the data in the files would be encrypted.

    "Use mount command from that Copy... thread."

    I looked at that copy thread and I was confused by the mkdir commands.
    I don't want to make any directories, I just want to do a ls -lat of the eSATA.
    Here was my plan:

    mount .......
    ls -lat (on the dev)
    (save the information)
    umount .....
    logout


    Could you (pretty please) look at my dmesg above to get the device name and show me exactly what the mount command would look like.
    I would be eternally grateful!!
     
  2. harsh

    harsh Beware the Attack Basset

    21,192
    183
    Jun 14, 2003
    Salem, OR
    You can do this when you figure out how to mount the drive. The reason I asked is because knowing this doesn't change anything. Adding a question about moving programs from drive to drive certainly confused the issue if all you're really interested in is understanding what you lost.

    When you plug the drive into a new HD DVR, the drive will be formatted leaving you with an essentially empty drive (save some housekeeping files).
     
  3. RobertE

    RobertE New Member

    8,024
    0
    Jun 9, 2006
    As usual, your talking out your backside concerning DirecTv items.

    When you move an eSATA from one HD DVR to another, it does not reformat the drive. You can see the programs, but since they are tied to the RID of the recording DVR, you wouldn't be able to watch them.

    So, yet again, you poke your nose into the DirecTv forums and give out WRONG information.
     
  4. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    This is what DogLover said above.
    He seems to think that the new HD-DVR may NOT reformat.

    Last time I transfered an eSATA, the new machine could see everything - it did not reformat. The series links were intact and usable. The recordings were listed, but would not play (obviously). I do not remember seeing if other information was available.

    I assume that if there is anything about the drive that the DVR does not recognize as a valid eSATA, it will reformat.
    __________________
    DogLover

    ===========================

    This is contrary to what you said.

    When you plug the drive into a new HD DVR, the drive will be formatted leaving you with an essentially empty drive (save some housekeeping files).

    __________________
    Harsh


    I was just wondering what will be the case.

    I just don't want it to not reformat and the files to be "invisible" taking up file space.
    I really think a "before" and an "after" look at the directory would be nice.
    Thank you very much for your information!!
    ed
     
  5. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    Thanks for your input!

    We now have one vote for NOT Reformatting,
    one vote for MAY Reformat and
    one vote for Reformating.

    I just don't want it to NOT reformat, and the Previous data to be "invisible" to the new HD-DVR, but taking up Disk space.

    I really really appreciate all the various inputs!!
    TYVM!!
     
  6. harsh

    harsh Beware the Attack Basset

    21,192
    183
    Jun 14, 2003
    Salem, OR
    I had a drive reformat when I moved it from an HR21 to an HR22.
     
  7. RobertE

    RobertE New Member

    8,024
    0
    Jun 9, 2006
    Then something went wrong. It's not normal for them to reformat a drive.
     
  8. P Smith

    P Smith Mr. FixAnything

    21,981
    177
    Jul 25, 2002
    W.Mdtrn Sea
    Please, don't be easily confused from that thread - concentrate on YOUR goal: pick just one - MOUNT - command. Your drive had SDB name.
     
  9. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    Somebody said that Linux X Windows "Places" would show the file device properly mounted or not. "Places" shows a 16 Gb Filesystem (???) (also called unknown device) but the device name also shows as /dev/sdb2 (another piece to the puzzle). I saw references to sdb2 in the dmesg so I sorta suspected sdb2 had something to do with the device name.
    My latest thoughts on the subject are that the "copy of data" shown in threads here was actually a not a copy of the data, but (what I will call) a dump and restore of a blob of memory. This may bypass the more technical mounting of a EXT3+XFS Partition.
    I'm going to try a few "flavors" of mount command as see if anything works.
    Many thanks for your assistance!!
     
  10. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    From the copy string-
    Get a linux command line prompt and enter the following commands:

    mkdir /mnt/fap
    mkdir /mnt/hr20
    mount -t xfs -o rtdev=/dev/sda3 /dev/sda2 /mnt/fap
    mount -t xfs -o rtdev=/dev/sdb3 /dev/sdb2 /mnt/hr20

    (The next line will start the copying process and on my system took about 70 minutes to complete.)

    xfsdump -J - /mnt/hr20 | xfsrestore -J - /mnt/fap

    (After the dump/restore has finished enter

    umount /mnt/hr20
    umount /mnt/fap

    I tried something like:
    sudo mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/hr20 <--
    And I got "Mount point does not exist"

    I thought the mkdir commands were creating directories, not mount points
    I also thought /mnt/hr20 was a "nickname" for the device.
    I am also wondering if I can do a ls -lat instead of the xfsdump.
    Xfsdump seems to me that it is dealing with "a lump of memory" and not a file system.

    So I guess my questions is what does the mkdir command do?
    I would have bet that it made a directory.

    I just noted that in the command -
    mount -t xfs -o rtdev=/dev/sda3 /dev/sda2 /mnt/fap
    I just noticed that /dev/sda3 is mentioned first then /dev/sda2
    They are not the same. What is going on here??

    Your thoughts??
    TYVM!!
     
  11. P Smith

    P Smith Mr. FixAnything

    21,981
    177
    Jul 25, 2002
    W.Mdtrn Sea
    You are like a kid in redlight store. :)

    forget the mkdir, use:
    mount -t xfs -o rtdev=/dev/sdb3 /dev/sdb2 /mnt

    sdb1 is SWAP (nothing interesting for you)
    sdb2 is a partition with logs, passes, etc
    sdb3 is real-time extension of sdb2 with encrypted recordings.

    [I did post full list of folders/files under 'DTV DVR GNU blah blah' thread a couple years ago - perhaps you could read it and it will satisfy your curiosity ? ;)]
     
  12. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    More like an old man with no (wife, kids, boss, job, debts, problems) and lots and lots of free time.
    Like earlier when I tried "my version" of a mount command -
    sudo mount -t xfs -o rtdev=/dev/sdb2 /dev sdb2 /dev/hr20
    I got -> mount point does not exist
    and when i tried "your version" -
    sudo mount -t xfs -o rtdev=/dev/sdb3 /dev/sdb2 / mnt
    I got the same -> mount point does not exist.

    Is it possible that the mkdir is somehow creating a mount point??

    Many thanks for your suggestions!!

    I'm going to look for that "DTV DVR GNU" stuff.
    Best Wishes Always!!
    ed
     
  13. P Smith

    P Smith Mr. FixAnything

    21,981
    177
    Jul 25, 2002
    W.Mdtrn Sea
    OK.
    1st - PLEASE, pay attention to syntax !
    sudo mount -t xfs -o rtdev=/dev/sdb3 /dev/sdb2 / mnt
    See the space between / and mnt ? No space should be there.

    [For your convenience you can create new sub-folder under /mnt - use any name what you wish ( say "hr24") and mount your EHD to there .../mnt/hr24. Other consideration - take your time to be familiar with syntax of commands from command prompt, use help, like "mount -h" and thoroughly read it].
     
  14. bobnielsen

    bobnielsen Éminence grise

    8,473
    92
    Jun 29, 2006
    Bainbridge...
    Or, for even more information, "man mount".
     
  15. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    Sorry about the syntax messup!!
    I tried the corrected version and I got -
    special device /dev/sdb2 does not exist

    I also tried sdb1, sdb3 and sdba in that position and got the same
    special device /dev/sdbx does not exist.

    I had a brainstorm at about 3am.
    I thought that maybe the mkdir was creating a spot in memory that we could address directly. Hence when we did a mount we were connecting to a point to send data through that had a name.

    I did a sudo mkdir /mnt/pnta
    sudo mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/pnta
    I got something like /dev/sdb2 in mounted or /mnt/pnta is busy
    I did a sudo umount /dev/sdb2 and got /dev/sdb2 is not mounted.

    I tried again
    sudo mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/pnta
    I got something like /dev/sdb2 in mounted or /mnt/pnta is busy

    Gee I hate to admit failure, but most of the fun of this project is gone.
    Many many thanks for the assistance.
     
  16. P Smith

    P Smith Mr. FixAnything

    21,981
    177
    Jul 25, 2002
    W.Mdtrn Sea
    OK, don't post 'something' - do cut&paste all messages here. Use FireFox on the Linux PC while you play with the drive.

    Run 'fdisk -l' and find what sdb or sdc or sda assigned to the disk and use it.

    Syntax alert again !

    mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/pnta

    Now tell me where is the error ? ;)

    [Perhaps you found already my post with full content of HR20 drive ?]
     
  17. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    Again sorry about the syntax error.
    I suspect that I am way over my quota.
    Don't I get some sort of first week using Linux for users over 70 years old extra chances?

    Quite frankly I don't know what any of those parameters mean so I don't know what they should be.
    It sure would have been "nice" if after hassling me about the syntax error, you could have said something like "use /dev/sda3" as the second parameter.

    Since I syntaxed sdb2 twice in the mount,
    i'm now thinking that is why I got:
    mount: /dev/sdb2 already mounted or /mnt/pta busy

    ed@ubuntu:~$ sudo fdisk -l
    [sudo] password for ed:

    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x30000000

    Device Boot Start End Blocks Id System
    /dev/sda1 1 7 56196 de Dell Utility
    /dev/sda2 8 1966 15728640 7 HPFS/NTFS
    /dev/sda3 * 1966 60802 472600576 7 HPFS/NTFS

    Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x63e7af20

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 66 530113+ 82 Linux swap / Solaris
    /dev/sdb2 67 2025 15735667+ 83 Linux
    /dev/sdb3 2026 243201 1937246220 83 Linux
    ed@ubuntu:~$

    ======================================================


    Well I thought I had "broken the code" ---- WRONG AGAIN

    I tried:

    ed@ubuntu:~$ sudo mkdir /mnt/pta
    ed@ubuntu:~$ sudo mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/pta
    mount: /dev/sdb2 already mounted or /mnt/pta busy
    (I see that I committed the same syntax or more correctly "idiot error".)

    "places" does show a 16bg file system - unknown device
    /dev/sdb2

    ed@ubuntu:~$ umount /dev/sdb2
    umount: /dev/sdb2 is not mounted (according to mtab)

    ed@ubuntu:~$ sudo mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/pta
    mount: /dev/sdb2 already mounted or /mnt/pta busy

    I was getting "Mount point does not exist" until I did the:
    mkdir /mnt/pta

    I couldn't find your referenced GNU, perhaps you could supply another clue.
    Think I try some more "flavors" of the mount.

    Many Thanks for all the help!!
     
  18. P Smith

    P Smith Mr. FixAnything

    21,981
    177
    Jul 25, 2002
    W.Mdtrn Sea
    Sorry, it wasn't my intention to hassling you, but attempt to get you focused.
    Check this:
    - wrong cmd:
    sudo mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/pta
    - correct cmd:
    sudo mount -t xfs -o rtdev=/dev/sdb3 /dev/sdb2 /mnt/pta

    Checking mounted storage you could by cmd:
    df



    [List of folders/files [sdb2] posted in first original "Copy ..." thread - post#48; some GPL info is here].
     
  19. oldbamaguy

    oldbamaguy Legend

    203
    0
    Jun 1, 2009
    ed@ubuntu:~$ sudo mount -t xfs -o rtdev=/dev/sdb3 /dev/sdb2 /mnt/pta
    mount: /dev/sdb2: can't read superblock

    I understand what you last said.
    If I knew what I was doing, I could focus.
    Some of my errors are made due to "lack of knowledge", not lack of focus.
    On a scale of knowledge of the subject, I put you at maybe 4,500 and me at a 2.
    My many years in computer user services taught me that many times the solution to a user problem is that you have to go to "where he or she is" to communicate.
    Most of my dealings with the "Unix Gurus" was that they were extremely tough to communicate with. They had no trouble communicating with other "Unix Gurus". They just sometimes needed a "translator" to talk to "ordinary mortals".
    I can't seem to get back to the terminal window to copy another bit of its response.
     
  20. P Smith

    P Smith Mr. FixAnything

    21,981
    177
    Jul 25, 2002
    W.Mdtrn Sea
    OK. That means you did shutdown of your DVR incorrectly. That "Copy ..." thread addressed the issue with super-block, dirty shutdown and how to recover the drive.
    Easiest way - install it back, let the DVR to recover the issue, then PROPERLY shutdown and return to your challenge.
    Check those folder and file's list while you'll read that thread.
     

Share This Page