Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ubuntu Linux can't mount a 2tb eSATA 3

Status
Not open for further replies.

oldbamaguy

Technical User
Mar 8, 2010
27
US
Well I finally got Ubuntu Linux up and running in a dual boot setup on my PC.
I had to use a USB keyboard.
Anyhow I didn't seem to be able to shut down Ubuntu.
I tried the help but never saw the shutdown command.
Anyhow why I was trying Ubuntu was to "see" the data on my DirecTV eSATA. It's a WD20EADS in a Antec MX-1 and I was connected using the USB cable. Ubuntu said it could not mount a 16 gb filesystem. Unknown device it said. The WD20EADS is a 2 tb storage unit.
Your suggestions, please.
TYVM!!
 
To shutdown (as root): shutdown -h now

To reboot (as root): shutdown -r now

For the USB drive, check the output of dmesg to see what it thinks the drive is.

How is the drive formatted?
 
Well if the Ubuntu was running in what I'll call command mode where you type in commands, I could do that. Actually I was expecting that kind of setup since that was the way things worked twenty years ago which was my last use of a 'nix. This is a Windows mode and I am stumped to shutdown. I tried to follow the help and was it system (??) no shutdown command showed.
It said something about a 16 gb file system and unknown device. The Esata is a 2 tb WD20EADS in an Antec MX-1.
The drive is formatted, I guess, by DirecTV, althought it seemed to be just a plug and play situation.
The folks at DirecTV talk about copying files between drives which led me to believe it was possible.
At that time I didn't even know it was in Linux.
TYVM!!
 
I don't use Ubuntu much, but I just had a look at a mate's Ubuntu 10.4 machine, and the shutdown via the GUI is a power O/I type icon in the top-right corner of the screen.

You can open a terminal to run in "command mode", i.e. a shell prompt. You may need to su to root before running shutdown, using the root/administrator password that you would have specified during the installation.

In the same terminal you should be able to run the dmesg command to display the most recent console messages; if you can copy and paste the ones that come up when you plug in the drive into this thread it would be helpful. It should hopefully tell you the device name that has been allocated. Let's presume it's /dev/yourdisk. You can try this to identify the type of filesystem on it:

Code:
dd if=/dev/yourdisk count=10 of=/tmp/tempfile
file /tmp/tempfile

Annihilannic.
 
Many many thanks for the information!!
Well I need to "digest" things a bit.
The only book I could find was "Linux Complete".
I guess I'll have to read up on Linux a lot.
Or at least spend some time in Ubuntu X Windows help.
I have spent most of about a week reading forums.
Where I am right now is with Ubuntu running in X Windows.
I see a lot of "stuff" on the Directv side doing Linux things using Gparted live which is I suspect running at the Command prompt level. I couldn't find out how to get the the command prompt in Ubuntu, I know there is a way.
My Unix experience was 5 years about 20 years ago, so if I can get to the command prompt, I will feel "comfortable".
I still think it is strange that Ubuntu X Windows can identify a USB memory stick and see the data created by Microsoft Windows 7, ie "plug and play" and not see the Linux stuff on an eSATA drive connected to the same USB connection.
Again thanks for the help!!
I'm going to "study up" on what I have.
Best wishes Always!!
ed
 
Ubuntu - usually has menu options - including "Applications Places System " at the top left. (Google "ubuntu desktop", and check out the images)

Under Applications - Accessories - Terminal you will find a command-line console.

Under Places, you may be able to find your unmounted drive, but you may need to boot up with the drive connected for it to be recognised.

Fortunately, unlike Windows, Linux systems recover from sudden shutdowns due to powering off without problems usually. So I would just hold the PCs power button until the machine shuts off then power on and reboot it again.

In the Terminal console, type dmesg at the $ prompt, and any messages regarding hard disks found will show in lines like the following:

Code:
[    2.022333] scsi3 : ahci
[    2.022422] scsi4 : ahci
[    2.022503] scsi5 : ahci
[    2.022638] ata3: SATA max UDMA/133 abar m8192@0xd0884000 port 0xd0884100 irq 26
[    2.022643] ata4: SATA max UDMA/133 abar m8192@0xd0884000 port 0xd0884180 irq 26
[    2.022647] ata5: SATA max UDMA/133 abar m8192@0xd0884000 port 0xd0884200 irq 26
[    2.022651] ata6: SATA max UDMA/133 abar m8192@0xd0884000 port 0xd0884280 irq 26
[    2.340057] ata4: SATA link down (SStatus 0 SControl 300)
[    2.340087] ata6: SATA link down (SStatus 0 SControl 300)
[    2.504039] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.504048] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.543169] ata5.00: ATA-8: WDC WD3200BEVT-22ZCT0, 11.01A11, max UDMA/133
[    2.543172] ata5.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    2.545688] ata5.00: configured for UDMA/133
[    2.557309] ata3.00: ATA-7: WDC WD800BEVS-22RST0, 04.01G04, max UDMA/133
[    2.557312] ata3.00: 156301488 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    2.558167] ata3.00: configured for UDMA/133
[    2.558290] scsi 2:0:0:0: Direct-Access     ATA      WDC WD800BEVS-22 04.0 PQ: 0 ANSI: 5
[    2.558501] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    2.558679] scsi 4:0:0:0: Direct-Access     ATA      WDC WD3200BEVT-2 11.0 PQ: 0 ANSI: 5
[    2.558841] sd 4:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[    2.558877] sd 4:0:0:0: Attached scsi generic sg2 type 0
[    2.558896] sd 4:0:0:0: [sdb] Write Protect is off
[    2.558899] sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    2.558932] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.559096]  sdb:
[    2.559107] sd 2:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    2.559156] sd 2:0:0:0: [sda] Write Protect is off
[    2.559159] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.559184] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.559333]  sda: sda1
[    2.562978] sd 2:0:0:0: [sda] Attached SCSI disk
[    2.568104]  sdb1 sdb2 sdb3 < sdb5 sdb6 >
[    2.608082] sd 4:0:0:0: [sdb] Attached SCSI disk

These lines identify my ATA Western Digital Hard disks.

Enough for the moment, see how you get on :)
 
Well, I made "great progress" (for me anyway).
I got to the command line, Applications - Accessories - Terminal.
I even remembered that you could recall a previous command using the arrow keys (now that's a 20 year memory stretch).
The eSATA Mount looked like it was "going well", Linux understood that it was a WD20EADS anyway, which I thought was good, but then "the RT Mount" failed, hmmmm.

dmesg output

26.588013] eth0: no IPv6 routers present
[ 30.518037] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[ 30.519554] SGI XFS Quota Management subsystem
[ 30.904363] XFS: This filesystem has a realtime volume, use rtdev=device option
[ 30.904367] XFS: RT mount failed
[ 121.614458] usb 1-4: USB disconnect, address 4
[ 129.044015] usb 1-4: new high speed USB device using ehci_hcd and address 7
[ 129.179558] usb 1-4: configuration #1 chosen from 1 choice
[ 129.182313] scsi9 : SCSI emulation for USB Mass Storage devices
[ 129.182595] usb-storage: device found at 7
[ 129.182597] usb-storage: waiting for device to settle before scanning
[ 134.180303] usb-storage: device scan complete

[ 134.188509] scsi 9:0:0:0: Direct-Access
WDC WD20 EADS-00R6B0
PQ: 0 ANSI: 2 <<<<< looking good

[ 134.189113] sd 9:0:0:0: Attached scsi generic sg2 type 0
[ 134.190355] sd 9:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 134.192627] sd 9:0:0:0: [sdb] Write Protect is off
[ 134.192630] sd 9:0:0:0: [sdb] Mode Sense: 38 00 00 00
[ 134.192633] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[ 134.195852] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[ 134.195855] sdb: sdb1 sdb2 sdb3
[ 134.213097] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[ 134.213103] sd 9:0:0:0: [sdb] Attached SCSI disk
[ 134.581680] XFS: This filesystem has a realtime volume, use rtdev=device option
[ 134.581684] XFS: RT mount failed

I'm even doing this message from the Linux side.
I am going to DBSTALK where they talk about mounting and copying from one disk to another and get some of the syntax.
Many Many Thanks for your Assistance!!
ed
 
If you can find the ubuntu forums, register with them, you will get first hand support on the "XFS: RT mount failed" problem. Googling on the above phrase reveals that it has happened before to others! Good luck! Glad that you are making your own way, oldbamaguy.
 
If you want to get to Gparted in Ubuntu, it's directly under one of the menus... I'm trying to remember..

I think it's under the "start menu" doohickey - just used it maybe 2 weeks ago. Anyway, you go to that, then there's a tools/administrative settings menu or such... well, if you simply float your mouse around in that area, you'll eventually get a long list of applications/tools, gparted being one of them. And it works better now than it did a year or two ago. It's got a real purty interface, too, and we all know that's very important. [wink]

Or if you'd rather stick to using Konsole for shell access, you could look into the mnt commands. I just used one the other day to forcefully mount an errant Windows system partition, worked beautifully, so I could fix the Windows install..

Anyway, here's a link specifically for Ubuntu help on the matter... I know it's for mounting a Windows partition, but it may help with the Linux stuff as well:
 
kjv1611 - Gparted can be found under System - Administration - Gparted, although there seems to be no need to use it here. "(G)Parted can also detect and remove HFS (Mac OS), JFS, NTFS, UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, but cannot create, resize or check these filesystems yet."

I am not sure that mnt - the mount command - is really the problem or solution here - the dmesg entries identify the disk with the XFS partition as a USB mass storage device, and then the daemon attempts to mount the RealTime XFS filesystem volume and fails.

It may be a bug that needs a workaround, or maybe not everything that needs to be installed has been. I do not have access to a volume with XFS installed, so it is like the blind leading the blind here!

Under System - Administration - Synaptic Package Manager, Search - enter "xfs".

"xfs" stands for at least 2 different things -an X font server daemon, and the packages associated with the xfs file system. The latter include:

The xfsdump package contains xfsdump, xfsrestore and a number of other administrative utilities for managing XFS filesystems.

xfsprogs: A set of commands to use the XFS filesystem, including mkfs.xfs.

plus some libraries and other disk utilities, which may or may not be needed as dependencies, which may or may not be automatically included when a package is installed.
 
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

"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
How can a directory be busy??

I'm stumped again!
HELP HELP!!
TYVM!!
 
from your dmesg output:

[ 134.195855] sdb: sdb1 sdb2 sdb3
[ 134.213097] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[ 134.213103] sd 9:0:0:0: [sdb] Attached SCSI disk
[ 134.581680] XFS: This filesystem has a realtime volume, use rtdev=device option
[ 134.581684] XFS: RT mount failed

I assume from the first line above that there are 3 partitions on sdb: sdb1 sdb2 and sdb3

try sudo fdisk -l

and let us see the output!

 
As per your request -
((I see disk /dev/sdb at 2000.4 GB
that has got to be the eSATA, doesn't it??
2000.4 GB = 2.0004 TB right?))


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:~$

Many Many Thanks (gee I may have to make another donation)
Best Wishes Always!!
ed
 
So now you know what is where, but still no access.

The data partition - the big 1.9+ Tb one - is where the DirecTV is storing the movies, I guess.
The 16 Gb partition is system files, and the half Gb drive is the swap partition.

If you google mount point busy - I used no quote marks - other similar problems seem to point to EVMS

e.g.


You may be able to use the advice given there.

It seems that older versions of the kernel did not have this problem.
 
ed@ubuntu:~$
sudo mount -t xfs -o rtdev=/dev/sdb2 /dev/sdb2 /mnt/pta
mount: /dev/sdb2 already mounted or /mnt/pta busy

I have been told that the mount statement has a syntax error in it. Not really, it's more of a "dummy error" in that I used /dev/sdb2 twice which may be why it is busy.
Quite frankly I don't know what the parameter should be.
I did a man on mount but it was 1200 lines long.
Is there a AARP branch of this forum where "old folks" help "old folks". The folks at DBSTALK are a bit harsh or perhaps they think they are talking to a college student type.

I'm pretty discouraged at this point.
Quite frankly I think it is a great accomplishment for someone 71 years old who has picked up on Linux and can to things in X Windows and in the terminal mode in less than one week.
I really do appreciate all the help!!

PS I promised a $25 donation to Tek-Tips for the correct syntax for that mount command.
 
Hi Ed, I'm no spring chicken myself, but you have about 12 years on me! I am rather new to Ubuntu, having spent most of the last 23 years on Microsoft PC systems. Dabbling in Linux occasionally but never feeling really comfortable, until the last few months.

I also think you have accomplished a great deal, and I don't think I would have fared as well if I had had to go back to MSDOS 3 in order to sort out a system.

I have just looked in on the other thread at DBStalk, and they do seem a little short on patience. It may be that there is some encryption as someone mentioned there. Nevermind.

However I think that the problem may be with the Ubuntu Enterprise Volume Management System as mentioned in my last post above. The way I see it, the device-mapper may be isolating the filesystem on your external disk from the operational filesystem on your PC. The solution may be to turn it (EVMS) off before you attempt to plug in your usb external drive.

To remove EVMS, in terminal:

sudo apt-get remove evms

then try plugging in the USB drive, and check dmesg.

Maybe try a reboot if that fails, using either the shutdown command, or the on/off button in the top rhs of the desktop.

(to reinstall if it's no good: sudo apt-get install evms)

Then I hope the kernel will attempt to mount the volumes automatically.

I don't know what goes on in a DirecTV system box. Over here in the UK we have SKY TV supplying the satellite broadcasting. I don't know what goes on inside SKY boxes either, and SKY tries its hardest to prevent hacking for obvious reasons.

Still I will try and find out more.

Cheers, Chris




 
ed@ubuntu:~$ sudo apt-get remove evms
[sudo] password for ed:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package evms
ed@ubuntu:~$

Well it sounded promising anyway.
I did a man on mount - 1200 lines
There is some talk about only connecting to the "eSATA connection" not the USB. DIRECTV calls it HDMI. I thought it was just a faster connection there over USB.
The Antec MX-1 (disk enclosure) comes with one of those brackets that slide into the back of the pc. It has a strange looking connector.
The picture on installing is only about a inch square.
I'm wondering if my 3 year old PC would have the necessary connector on the motherboard.

What are the two parameters on the mount command anyway.
Sudo mount -t XFS -o rtdev=/dev/sdb2 /dev/sdb3 /mnt/pta
^^^^^^^^^
What should it be anyway???? /dev/sdb3 ??
based on this -
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:~$

And now a few words about linux -
I used UNIX (Cray flavor Linux) for about 5 years around 1990
I've a MS Windows person exclusively since then
But I must say that Ubuntu Linux sure is user friendly
that is I swap from X Windows to Terminal Mode to Firefox
just like I knew what I was doing.
It boots up in a short time and shuts down very quickly
while this is a much longer process in MS Windows.
If someone asked me today which way to go MS Windows or Ubuntu Linux, I think I would have to say Ubuntu Linux.

And my closing comment Tek-Tips always seems to have better answers. But on a "problem" like this I really don't know if I should be asking DBSTALK, Tek-Tips or Ubuntu (so I tried all of them).
Many Many Thanks for all the Assistance!!
Best Wishes Always!!
ed
 
Well the folks at DBSTALK finally gave me the correct syntax

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



[ 175.510180] XFS mounting filesystem sdb2[ 175.628493] Starting XFS recovery on filesystem: sdb2 (logdev: internal)
[ 175.629480] XFS: dirty log written in incompatible format - can't recover
[ 175.629485] XFS: log mount/recovery failed: error 5
[ 175.629532] XFS: log mount failed

I see that I have a "dirty log" whatever that means.

DBSTALK suggested reconnecting the device back into a to DirecTV HD-DVR.
So I guess I'm going to order that fourth HD-DVR that I was thinking about. And I intend to see if the motherboard in my PC has a place to accept the eSATA connection to a plug on the rear on the PC. Concerning those folks who successfully did a copy, is it possible that their PC had two eSATA connectors or two USB connectors which I see as more likely. I feel that my newer PC (Windows 7) has the motherboard connector. I guess I could put Linux on it.
Decisions decisions. I have a court case next week concerning a dog bite case (I was the bitee). So I guess I'm gonna chalk this one up to an experiment that failed.

Many Many THANKS for all the assistance!!
Best Wishes Always!!
ed

 
Hi Ed, I have enjoyed the past few days. It's a shame you have not achieved what you set out to do - don't give up, enlightenment often appears when you least expect it to!

One thing about Ubuntu - it is, as you say, friendly now, perhaps too much so. It is a Chimera - a mosaic of applications, graphical and command-line, running under a variety of names, many of which operate slightly differently. Not all mounted filesystems are readable by all applications, for instance.

I discovered that my USB external drive (sdc) which is mounted under /media/CLASSIC SL cannot be fully accessed by Gparted, and reports a warning, yet the file browser seems to be able to have full access to all files therein.

Try VMware Player on your Windows 7 PC (or Ubuntu for that matter) - you could load any variety of Linux as a virtual machine, and easily connect through to your USB mass storage device. You may find that a different Linux distribution may be less friendly, but more competent for your purpose.

Not even are all Ubuntus created equal! I favour SuperOS, others like Mint, and there are even distributions that try to behave and look like Windows XP!

I hope you have a successful time in court, and that you have fully recovered from your injury. I have two dogs that would have to be very badly treated indeed before they considered aggressive defence, let alone attack a person or other animal.

As a last word, Tek-Tips is a very friendly community, with some amazingly talented people willing to learn as much as they want to help people. No doubt you have much to share, Ed. Don't be a stranger!


regards

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top