External USB Drives

I have a strange problem with a Maxtor USB 500GB drive. I connected the new drive to the pc running Suse 10.3. It was detected OK and formatted with ext3. I then copied several GB of data from a networked NTFS drive (also a Maxtor USB 500GB drive). The copying seemed to go well and data was transferred.

After rebooting the computer (with the new drive that had data copied to it from NTFS drive), the new data was missing and the drive now registered as a 2TB drive. I was able to resolve this issue by disconnecting the drive, rebooting, shutting down, connecting the drive and booting again. Magically, all data was restored and the drivewas correcty identified.

Some days later KDE desktop froze leaving no option but to hold the power button in until the pc switched off. A file on the external drive was open at the time.

On booting the pc, the external drive was screwed up again and this time I had to reformat the drive.

Apologies for the long story but my questions are: are external drives inherently unreliable under linux? is the ext3 filesystem the right one to use? is there a specific way of mounting the drive?

I am not qualified to answer your questions, but I have 4xmaxtors (external usb) and one seagate (with well over 2 terabytes of storage) , so I have some experience with external drives.

My wife almost exclusively uses MS-Windows. I also have too many friends drop by with Windows only laptops, … and we exchange custom dvd’s of home made movies and stuff, using the external drives as a fast transfer mechanism. Hence reformatting to ext3 was not an option for me. I needed windows and Linux compatibility with my external drives. My first couple of maxtor’s, I partitioned in two and reformatted to vfat (from ntfs) because the ntfs-3g driver was not out.

As soon as I discovered the ntfs-3g driver, I kept any new external USB drives that I purchased formatted as ntfs. The external USB drives are always hotplug automated (by openSUSE) with the ntfs driver, and to get read access I need to umount, and then via konsole manually mount with the ntfs-3g driver. That is true even with 11.0 RC1.

I had a problem once where I backed up 700GBytes of data onto an a USB external ntfs formatted maxtor, with the ntfs-3g driver, and then when I went to restore the contents with the ntfs driver, it could only see about 100MBytes of the data! :eek: My wife (I think) plugged the external USB drive into her Windows PC, and could see all 700GByte of data. We then moved the external USB drive to my Linux PC, and I mounted it with the ntfs-3g driver, and I could read all the 700GBytes of data. So clearly there can be serious read problems with the ntfs driver, and one needs to be cautious.

I’m not a believer in ext3 for external drives (unless one is looking for added security (in which case more software is also needed)) as one loses compatibility with 90% of the computer users in the world.

I have had (some, but very few) PC crashes with external drives attached (my cpu fan was clogged with dust) and even with files open, I did not have the problem you experienced. But again I was using vfat and ntfs formats.

I like stability in my PC, so I stick with stable desktops, applications, … etc … hence no KDE-4.x.x for me for now. …

Apologies I can’t answer your question, but you may find my experiences of interest.

can’t explain your questions/problems but i have a few external usb hard drives, only one of which is formatted to ext3 but i have had no such issues like you. the drive has been faultless, ever time i plug it in, it just works. hmmm. i would suggest showing us your fstab but i don’t think this will help us understand why it is showing different volume sizes etc. im clueless. but just saying my ext3 volume is fine :confused:

thanks for the response oldcpu and thestig. The ntfs drive has behaved well and has been in use since 10.2. Immediately after upgrading to 10.3 I discovered that the drive was not writeable and then discovered that ntfs-3g was required. Since then, the drive has worked very well.

The other ext3 drive is a different issue. Two serious issues and I have only had it one week!!

oldcpu, if you don’t recommend ext3, what would you suggest and what other software is needed to make it reliable?

I use ntfs format, because:
a. it will accept large files > 2GBytes (vfat has problems with that), and
b. it is the most common USB external hard drive format, and practically every OS has drivers that can read it.

Once an external USB drive is mounted under Linux (independent of the file system format) it is pretty much transparent. This does mean for an ntfs drive, that the ntfs-3g driver is best used if one wishes reliable read/write permissions as a regular user.

Hotplug auto mounting of ntfs external drives (with read/write) is still not smooth on openSUSE Linux. As noted I like stable software, but a mild annoyance with this (having to manually mount all the time to get rw on an NTFS external USB/firewire drive), and also empathy with many user complaints) eventually lead me to start of a policy of installing alpha, beta and RC1 versions of openSUSE, just so that I could ensure that an appropriate bug report was raised during the openSUSE development cycle (and if not, raise one myself). As it turned out, others felt the same, and various bug reports have been raised and consolidated (on the unsatisfactory ntfs read/write hotplug auto mounting of external drives).

I am happy that Novell/SuSE-GmbH are actively trying to address this hotplug auto mounting of NTFS with rw. Thus far they have not been successful in smoothly implementing this. Maybe they will succeed in openSUSE-11.1 or 11.2. …

I don’t feel qualified to recommend one format over another format, but rather I can only recommend you pick a format that works well for you. Ext3 should work ok for your external USB drives. I chose NTFS for large file size and compatibility reasons.

On 2008-06-12, oldcpu <oldcpu@no-mx.forums.opensuse.org> wrote:

> As soon as I discovered the ntfs-3g driver, I kept any new external USB
> drivers that I purchased reformatted as ntfs. The external USB drives
> are always hotplug automated (by openSUSE) with the ntfs driver, and to
> get read access I need to umount, and then via konsole manually mount
> with the ntfs-3g driver. That is true even with 11.0 RC1.

That’s because the drive is usally mounted with the old driver (ntfs).
If you want to have them mounted r/w by default, just add the following
link:

cd /sbin
sudo ln -s mount.ntfs-3g mount.ntfs

Works for me in 10.3. Can’t help you on 11.x yet.


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6

On 2008-06-12, jbaratta <jbaratta@no-mx.forums.opensuse.org> wrote:

> thanks for the response oldcpu and thestig. The ntfs drive has behaved
> well and has been in use since 10.2. Immediately after upgrading to
> 10.3 I discovered that the drive was not writeable and then discovered
> that ntfs-3g was required. Since then, the drive has worked very well.
>
> The other ext3 drive is a different issue. Two serious issues and I
> have only had it one week!!

Maybe you’re having a hardware problem?
I’ve had one USB HD formatted in ext2, so I could use it for Linux backups
(and preserve the rights).

There’s not much point in using ext3 over ext2. But that doesn’t imply it a
bad choice.

For any other use of USB drive, I’d use FAT. Works in allmost any situation.


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6

On 2008-06-12, oldcpu <oldcpu@no-mx.forums.opensuse.org> wrote:
>
> jbaratta;1816769 Wrote:
>> oldcpu, if you don’t recommend ext3, what would you suggest and what
>> other software is needed to make it reliable?
> I use ntfs format, because:
> a. it will accept large files > 2GBytes (vfat has problems with that),
> and
> b. it is the most common USB external hard drive format, and
> practically every OS has drivers that can read it.

My choice, unless you also have to connect it to older Linux versions, or to
a Win98 machine. In thoses cases, FAT32 is OK.

BTW, it not > 2GB, but > 4GB -1 byte.
And in those cases, I use RAR to split up the files in chunks of 1-2 GB,
without compression.

> I am happy that Novell/SuSE-GmbH are actively trying to address this
> hotplug auto mounting of NTFS with rw. Thus far they have not been
> successful in smoothly implementing this. Maybe they will succeed in
> openSUSE-11.1 or 11.2. …

As posted in another thread, try this:

cd /sbin
sudo ln -s mount.ntfs-3g mount.ntfs

It’s been very stable way of getting nfts-3g, rather than ntfs, as default
FS with hotplugged USb ntfs drives.


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6

formatted to ext3 already so presumably only being connected to linux box. i have one of my drives formatted to xfs format. very good with dealing with large files.

on first plug i had to manually mount it, but now on hot plug i have correct permissions. you could try formatting to this format, should definately work. i have it working fine on suse 10.3 and 11.0 rc1

thestig wrote:
> formatted to ext3 already so presumably only being connected to linux
> box. i have one of my drives formatted to xfs format. very good with
> dealing with large files.
http://www.fs-driver.org/


Clive

i did say presumably. can’t see someone formatting to linux filesystem if needed for windows at some point, since if needed on another windows box then this needs to be installed. if it needs to be used on windows as well then i’d go for ntfs, wouldn’t format to ext2/3 then install this. but that’s me, maybe this user is different than me.

post above sounds rude i know, but it isn’t meant to i promise :slight_smile:

i know there are drivers for windows to allow read/write access to linux FS drives, which i can understand need for for internal drives, but external… well a little less perhaps.

by the way:
the ntfs-3g driver is used by 11.0 rc1 for hotplug.
however, only with gnome, but not with kde 3.5 or 4.0. :frowning:

see https://bugzilla.novell.com/show_bug.cgi?id=385585

On 2008-06-12, psikodad <psikodad@no-mx.forums.opensuse.org> wrote:
>
> by the way:
> the ntfs-3g driver is used by 11.0 rc1 for hotplug.
> however, only with gnome, but not with kde 3.5 or 4.0. :frowning:
>
> see https://bugzilla.novell.com/show_bug.cgi?id=385585

Have you tried this?

cd /sbin
sudo ln -s mount.ntfs-3g mount.ntfs

Works for me, with 10.3 (KDE).


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6

Thanks for the suggetion. A few minutes ago I tried that on 10.3 with my Seagate external USB. With that symbolic link hotplug mounting with rw works. Pretty neat !

Its a very nice and functional work around, although I still see it as a work around, as it has some limitations. The “sysinfo:/” mis-identifes the driver as ntfs (because its a symbolic link that “tricks” it) and I don’t think its possible, without removing the symbolic link, to mount under the older ntfs driver.

Not mounting under ntfs driver? Not a great loss. Nor indeed is it a small loss (for me).

So IMHO “tricking” the system that way is very good for an interim measure, but I still think it should be fixed sometime in the future.

Thanks for that trick!

On 2008-06-12, oldcpu <oldcpu@no-mx.forums.opensuse.org> wrote:

>> That’s because the drive is usally mounted with the old driver (ntfs).
>> If you want to have them mounted r/w by default, just add the
>> following
>> link:
>>
>> cd /sbin
>> sudo ln -s mount.ntfs-3g mount.ntfs

> Thanks for the suggetion. A few minutes ago I tried that on 10.3 with
> my Seagate external USB. With that symbolic link hotplug mounting with
> rw works. Pretty neat !
>
> Its a very nice and functional work around, although I still see it as
> a work around, as it has some limitations. The “sysinfo:/”
> mis-identifes the driver as ntfs (because its a symbolic link that
> “tricks” it) and I don’t think its possible, without removing the
> symbolic link, to mount under the older ntfs driver.

Think of it as displaying the FS of the drive instead of the driver.
That way the information is correct. :slight_smile:
Besides, who care about the driver? It’s the FS that counts, right ?

> So IMHO “tricking” the system that way is very good for an interim
> measure, but I still think it should be fixed sometime in the future.

Well, they should associate the new driver with the FS. But that’s all the
workaround does: correct the association.


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6

it looks like the overwhelming consensus is to format with ntfs so I’ll do that tonight. One (more) thing I don’t understand is why you say there is an issue with automounting of ntfs with rw permissions. When I installed ntfs-3g, I also installed the config program and used it to set permissions for the drive. The drive always mounts rw automatically when the pc boots. Am I missing something?

If you are referring to ntfs-config, I found issues with that application when I tried using it last (either with openSUSE 10.1 or 10.2) … I have not tried it again since.

ntfs-config worked fine for me with ntfs drives on suse 10.3 sho you shouldn’t have any problems with it. if you do, just put in the work around posted above.

I have an external 500gb USB drive configured with a small NTFS partition and the rest a single ext3 partition. The only problem I had was reading
(not writing) large files on my desktop m/c (no problems on either of my
laptops). I found the reason to be that I was using the motherboard USB
ports and these were only USB 1.0. When I tried the expansion card USB 2.0
ports I had no further problems. So I concluded that there appears be be a
problem with large files on USB 1.0. Hope this may be of some help to others have similar problems.

It appears to still have issues meaning that under suse 10.3 I’ve had to run it 2-3 times to get settings to stick.

BTW, I reformatted the drive to ntfs over the weekend then ran ntfs-config to make the drive writeable (it worked first time) then copied all data over to the drive. Everything fine so far.

I then copied a vmware virtual machine to the drive. When I ran vmware and loaded the drive, I got an unrecoverable error from vmware saying that memory could not be allocated.

I am guessing this is a permission problem as the ntfs drive is owned by root and all files on it are owned by root. Have I done something wrong?