LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 10-13-2004, 10:44 PM   #1
goudi
LQ Newbie
 
Registered: Nov 2003
Location: Sarreguemines (France), Boston (USA)
Distribution: Redhat, Debian, Mandrake
Posts: 5

Rep: Reputation: 0
10.1 and external Storage device


Hi,

I've just upgraded to 10.1 CE and my external hard drive does not work anymore. It works neither on firewire nor on usb (both interfaces are available on this hard drive).
On 10.0 I just had to plug it in and it would be automaticly mounted.

Any suggestions?

Thank you

Pierre
 
Old 10-14-2004, 06:00 AM   #2
perikles
LQ Newbie
 
Registered: Oct 2004
Location: /history
Distribution: Fedora Core 4
Posts: 12

Rep: Reputation: 0
what does your /etc/fstab file say?

also: read this from mandrakes site:

Quote:
Some motherboards based on VIA chipsets have USB-related problems with 2.6.x kernels.
Why: This problem is due to USB support with these motherboards, although the number of problematic motherboards is decreasing with each new kernel revision. You can see evidence of the problem with boot-time syslog messages such as:

usb 1-1: control timeout on ep0in

and

usbfs: USBDEVFS_CONTROL failed (...) ret -110

Solution: Add any or all of the following boot kernel parameters to your /etc/lilo.conf file: "acpi=off", "noapic", or "nolapic". Execute "lilo -v" to update the LILO configuration. After boot, execute the following commands:

# modprobe -r uhci-hcd
# modprobe uhci-hcd

You may also elect to use the 2.4.x kernel.

Last edited by perikles; 10-14-2004 at 06:03 AM.
 
Old 10-16-2004, 03:29 AM   #3
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Kubuntu 10.04, Mint 8 and Puppy 4.3.1
Posts: 355
Blog Entries: 1

Rep: Reputation: 31
Arrow External drive guide for mandrake 10.1

External hard drive setup in Linux


Let's start with a few pre-statements:

1) I am using Mandrake 10.1 Community, this guide is based on that but should work on any distro.

2) I am using an external drive enclosure that is pretty generic and uses both a Firewire and a USB 2.0 interface. The choice is left to the user. I tried both and they work the same. In this enclosure I installed a 80GB Maxtor IDE 7200rpm IDE drive.

3) The guide is based both on my personnal ''hair ripping' acquired experience and also from me reading extensively on the subject around the Web.

Now here we go:

Fact: Linux partitionning tools, Command line or graphical, like DiskDrake are wonderful but THEY DO NOT LIKE EXTERNAL DRIVES OF ANY KIND when it comes to formating. Just remember that.

So... that means do not try to partition your external drive with them. It most probably won't work and you'll get errors.

First thing first...we need to get around that problem and partition our drive from somewhere else. I personnaly keep a Windows XP on dual boot to play games and give support to my Microshaft user friends and family members, so I booted into XP, my disk was connected with its Firewire cable and was detected on boot. I then used Partition Magic 8.0 to format my external drive in 2 separate partitions, one primary and one logical. I formated both in fat32 and chose not to assign any drive letters. (any good partioning software will do, you can even use the partitonning tool of Windows XP/2K located in admistrative tools)

Fact: Fat32 filesystem instead of ext3 or ReiserFs or any other makes your drive portable and compatible with any operating system because both Linux and Windows read and write fat32. (Linux only reads NTFS reliably and the writing is shaky at best. As for Windows, it doesn't read or write any unix filesystems)

If you don't dual boot Windows, the only alternative I see if you have an enclosure like me with an IDE drive is to take out the drive, plug it in one of your internal IDE ports, boot Linux, mount it and format it with DiskDrake or the command line. After , put it back in it's enclosure and go on with this guide.

Next step...

If all is well and it should, when you boot Linux , you should see with the disk utility of your distro, in my case DiskDrake, that your external drive as been detected. It will most likely show up with your other harddisks as SDA. In my case on SDA I found 2 partitions named SDA1 and SDA5.

We want to mount these partitions so before we do, we create directories for each partitons. I created /bak1 and /bak2 in my /home directory, but anywhere will do. I used my /home directory because everything in it can be modified by me,the user. Use simple and short names without spaces.

Now the next step is the one that many user miss or don't do properly that makes all the difference between your external drive working or mot.

Log in as root and open the file 'fstab' that is located in /ETC with an editor like Kwrite.
Here we are going to setup the mounting properties of our external drive and fstab is the confifg file that does that. (a great simple guide to learn about fstab here: http://www.tuxfiles.org/linuxhelp/fstab.html#what )

Fstab is a simple text file.

Her is a copy of my fstab and the lines that have to be added:

/dev/hda5 / ext3 defaults 1 1

Here are the 2 lines in my case: (the spaces are just to outline them)
/dev/sda1 /bak1 vfat noauto,user,rw,exec,sync 0 0
/dev/sda5 /bak2 vfat noauto,user,rw,exec,sync 0 0

none /dev/pts devpts mode=0620 0 0
/dev/hdc3 /home ext3 defaults 1 2
/dev/hdb /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
/dev/hde /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hdc5 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hdc6 /mnt/win_d ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hdd1 /shared ext3 defaults 1 2
none /tmp tmpfs defaults 0 0
/dev/hda6 /video_1 ext3 defaults 1 2
/dev/hdc4 /video_2 ext3 defaults 1 2
/dev/hdc2 swap swap defaults 0 0


If we take apart one of those lines (they are both almost identical) :

/dev/sda1 /bak1 vfat noauto,user,rw,exec,sync 0 0

It means mount /dev/sda1 to directory /bak1 witch is formated as fat32 (vfat), do not automount it on boot (noauto), allow users to mount it (user), allow read and write (rw), allow programs to be executed on it (exec), alllow operations on the media to be without delay (sync) . the 2 numbers at the end I won't get into, leave them like they are. They are related to filesystem check and integrity. (I suggest you read the guide I suggested above, it will make you understand a lot, trust me!)

After this, save the file and reboot. One or more icons should then be on your desk after reboot, links to your external drive. Right click on the icon(s) and choose' mount' . After that you will be able to read and write to them.

Notes : I dont't suggest that you automount your external drive, because automounting USB2.0 and Firewire, in my opinion is not stable enough. I could then keep your system from booting. If that ever happens you will have to boot in failsafe mode to console and edit the fstab file with an console editor like VI or VIM or the like and remove the line related to your ext. drive before you reboot. Another reason for not automounting is that ususaly an external drive, as in my case, is used for backup purposes and you want to keep your backups away from snoops, viruses , trojans or malicious users, even if those are pretty rare in Linux, ;-). It should be noted that I have never experienced a boot problem related to this myself.

Also I have read that some external drives (not enclosures) may not be compatible with Linux, but I don't see this as being true because USB and Firewire are both standard protocols supported by the newer Linux kernels.


Recap of all this:

1) Use Windows to partition your drive as you see fit in fat32.

2) Boot Linux and go check if your external drive as been detected, it will moslty be called SDA.

3) Create directories for each partitions you want to mount. Create them in /MNT or in /HOME. Use simple and short names without spaces.

4)Add the proper lines in your fstab config files

5) Reboot the system, (not just the session)

6) One or many icons of your external drive corresponding to each partition described in the fstab file should be on your desktop. Right click them and choose 'mount'. You will then be able to read and write to them.

Good luck to all of you open source maniacs out there!!!

Steel_J
 
Old 10-16-2004, 05:57 AM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Wow, long exposition there...

Goudi; before you try any of these fixes, do this.

1) Power down your computer complete.

2) Hook up your external drive and make sure it has spun up. Put your ear on it to make sure if needed.

3) Boot your Linux box and enable Legacy USB support in the bios. Don't let it boot up though.

4) Turn it off yet again and them perform a COLD boot.

Sometimes Linux needs to let the BIOS initialize the USB or firewire bus AFTER the drive has spun up before it gets recognized properly.

The end result is that your drive will be mysteriously re-detected correctly via Kudzu...

5) Start Linux in non-fb mode and see if your drive is redetected.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
cluster and common external storage device- bottleneck? kpachopoulos General 0 06-26-2005 07:35 AM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 03:52 AM
External Storage problem pacevedo Mandriva 0 05-14-2004 07:10 PM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM


All times are GMT -5. The time now is 11:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration