LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-29-2007, 04:50 PM   #1
rmuniz9336
LQ Newbie
 
Registered: Apr 2007
Location: Greeley, Colorado
Distribution: Debian Linux 3.0 (sarge) and Centos 4.0
Posts: 10

Rep: Reputation: 0
Fun with a Seagate FreeAgent Pro


Hello everyone,

I've a Dell 6800 that we run ESX Server 3.0 on (OS is a stripped down version of Debian 3.0), and we use it as a virtual machine server. As part of that, I run bi-monthly backups of the VMs using the built in tools vmware comes equipped with, and the backups were going to a single 500 gb ATA Seagate hard disk in a Bytecc encloser which in turn plugged into the Dell through the USB ports. This worked fine until we exceeded 500 GBs in the backup. We then switched to a SeaGate FreeAgent Pro 750 Gb hard disk. This bad boy plugs in through the same USB port used by the previous hard disk.

I plugged it in, and ran fdisk -l and didn't see the drive. I then checked in /proc/bus/usb/devices, and could see it just fine there. I then rebooted the Dell, and when it came back up, I ran Fdisk -l, saw the disk fine. Since it was late in the day, I put off partiioning it until the following morning. Partiioning it was uneventful, and I just made one big partition filling the entire disk. I mounted it to the backup file, and began running some tests. I backed up a test machine to it, ran fine. Then I went to run a second test. At this point I began running into problems, and began receieving a series of access denied messages, that the file was set to read only. I checked the permissions for the directory, and they were set to 0755. I also checked the subdirectory, and they were set to 0755 as well. But any folder that went into that drive was set to 600. Any attempt at changing the permissions (and I'm doing this as root) failed. I plugged in the old drive, and everything works fine. Put the FreeAgent back in, and it gives me fits,

I check the umask for root, and it's set for 0022. The only thing I can think of is that this external drive is rather new and jsut doesn't like Linux yet.

Any ideas what I'm running into here?

Rich
 
Old 07-02-2007, 08:46 AM   #2
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Exclamation

This is a known problem with the Seagate FreeAgent drives and Linux in general. The FreeAgent drives are set to spin-down the drive after 15 minutes of inactivity. The problem is that the drive does not spin back up when you try to read/write from the drive; which is where the access denied/read-only error messages come from.

There's a fix available here, but I couldn't get it to work on my system (Mepis 6.5); though that is probably due to my own inexperience and not the system itself.

If you get the fix in the link above to work, please let me know! :-P


sleepy
 
Old 07-03-2007, 04:54 PM   #3
conqueror4774
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
Hi,

I want to buy one of these drives so I was looking for information to see if it works in Linux.

One of the solutions I found for your problem:
http://www.newegg.com/Product/Produc...size=10&Page=3

solution for linux spindown
Pros: n/a
Cons: n/a
Other Thoughts: for the user who is using the drive on linux who couldn't find a solution for the spindown problem, here is the solution: make sure you have the sdparm package installed. as root, do : # sdparm -al /dev/sdd /dev/sdd: Seagate FreeAgentDesktop 100D Direct access device specific parameters: WP=0 DPOFUA=0 Power condition [po] mode page: IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active STANDBY 1 [cha: y, def: 1, sav: 1] Standby timer active ICT 0 [cha: n, def: 0, sav: 0] Idle condition timer (100 ms) SCT 9000 [cha: y, def:9000, sav:9000] Standby condition timer (100 ms) # sdparm --clear STANDBY -6 /dev/sdd /dev/sdd: Seagate FreeAgentDesktop 100D # sdparm -al /dev/sdd /dev/sdd: Seagate FreeAgentDesktop 100D Direct access device specific parameters: WP=0 DPOFUA=0 Power condition [po] mode page: IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active STANDBY 0 [cha: n, def: 1, sav

Here you will find info about sdparm:
http://sg.torque.net/sg/sdparm.html

I haven't bought the disk yet, so I was unable to test anything, but if sdparm solves it (or if you find any other fix), can you let me know?
I'd love to buy that drive but only if it works in Linux.
 
Old 07-05-2007, 09:08 AM   #4
rmuniz9336
LQ Newbie
 
Registered: Apr 2007
Location: Greeley, Colorado
Distribution: Debian Linux 3.0 (sarge) and Centos 4.0
Posts: 10

Original Poster
Rep: Reputation: 0
Fun with Seagate FreeAgent Pro

Thanks for posting this info guys. let me beat on it, and see what happens.
 
Old 07-05-2007, 10:19 AM   #5
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by conqueror4774

make sure you have the sdparm package installed.
Code:
# sdparm -al /dev/sdd /dev/sdd: Seagate FreeAgentDesktop 100D Direct access device specific parameters: WP=0 DPOFUA=0 Power condition [po] mode page: IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active STANDBY 1 [cha: y, def: 1, sav: 1] Standby timer active ICT 0 [cha: n, def: 0, sav: 0] Idle condition timer (100 ms) SCT 9000 [cha: y, def:9000, sav:9000] Standby condition timer (100 ms)

# sdparm --clear STANDBY -6 /dev/sdd /dev/sdd: Seagate FreeAgentDesktop 100D

# sdparm -al /dev/sdd /dev/sdd: Seagate FreeAgentDesktop 100D Direct access device specific parameters: WP=0 DPOFUA=0 Power condition [po] mode page: IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active STANDBY 0 [cha: n, def: 1, sav
Here you will find info about sdparm:
http://sg.torque.net/sg/sdparm.html
Thanks for the info, conqueror! I put it in the code tags just to clean it up a bit. I too have a FreeAgent drive, and will give this fix a shot when I get a chance...probably this weekend.


sleepy
 
Old 07-05-2007, 11:02 PM   #6
conqueror4774
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
Hello again,

I am sorry but what I wrote was not too clear. I just copied and pasted what I read on another thread.
But looking at the sdparm command and how to use it, I think the following is the right thing to do:

Just run:
# sdparm -al /dev/sdd
# sdparm --clear STANDBY -6 /dev/sdd
# sdparm -al /dev/sdd

(The rest was just an example of the output that you will receive)

The first command lists the current (default) parameters for the device.
The second is the one that modifies the current parameters.
The third one shows the new values after the modification.

Notice the difference between the first command and the third one.
See below: I made the commands bold
Do you see STANDBY 1 before the change and then STANDBY 0 after it? I guess that's what you want to achieve.
I hope it works...


# sdparm -al /dev/sdd

/dev/sdd: Seagate FreeAgentDesktop 100D
Direct access device specific parameters: WP=0 DPOFUA=0
Power condition [po]
mode page: IDLE 0 [cha: n, def: 0, sav: 0]
Idle timer active STANDBY 1 [cha: y, def: 1, sav: 1]
Standby timer active ICT 0 [cha: n, def: 0, sav: 0]
Idle condition timer (100 ms) SCT 9000 [cha: y, def:9000, sav:9000]
Standby condition timer (100 ms)


# sdparm --clear STANDBY -6 /dev/sdd

/dev/sdd: Seagate FreeAgentDesktop 100D


# sdparm -al /dev/sdd

/dev/sdd: Seagate FreeAgentDesktop 100D
Direct access device specific parameters: WP=0 DPOFUA=0
Power condition [po]
mode page: IDLE 0 [cha: n, def: 0, sav: 0]
Idle timer active STANDBY 0 [cha: n, def: 1, sav
 
Old 07-06-2007, 08:20 AM   #7
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Thumbs up

Thanks for clarifying that even more conqueror...it's much clearer now. I'm anxious to try this on my FreeAgent at home...c'mon 5pm!


sleepy
 
Old 07-09-2007, 12:59 PM   #8
rmuniz9336
LQ Newbie
 
Registered: Apr 2007
Location: Greeley, Colorado
Distribution: Debian Linux 3.0 (sarge) and Centos 4.0
Posts: 10

Original Poster
Rep: Reputation: 0
Think that did it

Hi Guys,

Hey, that did it. I had to download and install SDPARM, but it's working as I want it to.

Thanks for the assist everyone.

Rich
 
Old 07-10-2007, 01:23 AM   #9
conqueror4774
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
That's good news.
SleepyEDB, please let us know if it worked for you too.
 
Old 07-11-2007, 02:14 PM   #10
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Red face

Quote:
Originally Posted by conqueror4774
That's good news.
SleepyEDB, please let us know if it worked for you too.
I will. The weekend got away from me (studying for these master's classes is teh suck! ) but I'll get it done as soon as I can.


sleepy
 
Old 11-10-2007, 04:12 PM   #11
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Rep: Reputation: 30
Wonderful jobs you guys. I installed ubuntu 7.10 and have a usb Freeagent 500Gb myself - had the same power down problem as you described. Mine was assigned as sdb1. Question, though why -6? Looking at the man manual - seems like clearing down byte 6 to 0.

Either way, that is fascinating! Hell, this is a problem in windows in that when it powers down it causes a lag when access other drives by insisting on waking up even when accessing other drives.

STANDBY 0 [cha: n, def: 1, sav: 0] Standby timer active

I assume you'd have to put this in your startup script rather than do this after every reboot.

Until I saw this - I was thinking of using the cron to do an "ls" cmd to the drive every 12 minutes.
 
Old 11-11-2007, 10:48 PM   #12
conqueror4774
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
http://sg.torque.net/sg/sdparm.html
Says:

-6: use 6 byte cdbs for MODE SENSE and MODE SELECT commands for getting and setting mode pages. The default action is to use the 10 byte cdb variants.

(Maybe someone here can explain it in plain English).
 
Old 02-24-2008, 02:10 PM   #13
kellepaca
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Ubuntu cannot create partition on FreeAgent 500GB

Hi All,

I am pretty new to Linux Desktop. I just downloaded Ubuntu 7.10 and was very excited to see the desktop demonstration from the CD. But, then I noticed that it was not that easy to simply install it on my 500GB FreeAgent. Since I already have some files on this drive, I cannot format it, so I need to create a partition on it (maybe 10-20GB) and install Ubuntu there. I have no space left on my laptop's hard drive.

I ran the install on Ubuntu's desktop after I booted my laptop from the CD . I noticed that the Ubuntu setup shows something like "?k?" in front of the drive letter designated for the FreeAgent and when I want to create partition on it it says it cannot do so.

Any help would be much appreciated. I would really like to install this version of Linux.

Thanks in advance.
 
  


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
Seagate Information and a question DIGITAL39 Linux - Hardware 1 12-06-2006 03:41 PM
seagate external HDD r00tNinj4 Linux - Hardware 1 03-19-2006 07:02 AM
samsung vs seagate?? kb_ganesh General 11 08-19-2005 02:07 PM
Seagate tape drive sbalasuriya Linux - Hardware 2 08-10-2004 08:26 PM
seagate 200GB TordYvel Linux - Hardware 3 06-27-2004 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration