LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2009, 05:24 PM   #1
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
Writing to USB disk fills up root partition


Hi..
writing to mounted USB disk fills up the root partition instead of the USB disk. Please help!!

Red Hat Enterprise Linux AS release 4 (Nahant Update 6)

On plugging in USB external drive, it get mounted automatically at /media/USB_BKUP_001:
Code:
May 29 17:51:24 hn kernel: usb 6-7: new high speed USB device using address 2
May 29 17:51:24 hn kernel: Initializing USB Mass Storage driver...
May 29 17:51:24 hn kernel: scsi2 : SCSI emulation for USB Mass Storage devices
May 29 17:51:24 hn kernel:   Vendor: Seagate   Model: FreeAgent XTreme  Rev: 4115
May 29 17:51:24 hn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
May 29 17:51:24 hn kernel: SCSI device sdy: 2930277168 512-byte hdwr sectors (1500302 MB)
May 29 17:51:24 hn kernel: sdy: assuming drive cache: write through
May 29 17:51:24 hn kernel: SCSI device sdy: 2930277168 512-byte hdwr sectors (1500302 MB)
May 29 17:51:24 hn kernel: sdy: assuming drive cache: write through
May 29 17:51:24 hn kernel:  sdy: sdy1
May 29 17:51:24 hn kernel: Attached scsi disk sdy at scsi2, channel 0, id 0, lun 0
May 29 17:51:24 hn kernel: Attached scsi generic sg24 at scsi2, channel 0, id 0, lun 0,  type 0
May 29 17:51:24 hn kernel: usbcore: registered new driver usb-storage
May 29 17:51:24 hn kernel: USB Mass Storage support registered.
May 29 17:51:24 hn scsi.agent[6984]: disk at /devices/pci0000:00/0000:00:1d.7/usb6/6-7/6-7:1.0/host2/target2:0:0/2:0:0:0
May 29 17:51:24 hn multipathd: sdy: path checker registered
May 29 17:51:24 tor01cs1 multipathd: 1ST31500341AS____________________________2GER6M8Y: event checker started
May 29 17:51:24 tor01cs1 fstab-sync[7130]: added mount point /media/USB_BKUP_001 for /dev/sdy1
May 29 17:51:25 hn multipathd: 65:128: readsector0 checker reports path is up
May 29 17:51:25 hn multipathd: 65:128: reinstated
May 29 17:51:25 hn multipathd: 1ST31500341AS____________________________2GER6M8Y: remaining active paths: 1
/etc/fstab:
Code:
/dev/sdy1               /media/USB_BKUP_001     ext3    pamconsole,exec,noauto,managed 0 0
more details:
Code:
[root@hn log]# umount /media/USB_BKUP_001                        
umount: /media/USB_BKUP_001: not mounted
[root@hn log]# mount /dev/sdy1 /media/USB_BKUP_001/
mount: /dev/sdy1 already mounted or /media/USB_BKUP_001/ busy
[root@hn log]# umount /dev/sdy1                     
umount: /dev/sdy1: not mounted
[root@hn log]# mkdir /media/test
[root@hn log]# mount /dev/sdy1 /media/test/        
mount: /dev/sdy1 already mounted or /media/test/ busy
[root@hn log]#
Code:
[root@hn~]# [root@hnUSB_BKUP_001]# sdparm -a /dev/sdy
    /dev/sdy: Seagate   FreeAgent XTreme  4115Power condition mode page:
  IDLE        0  [cha: n, def:  0, sav:  0]
  STANDBY     0  [cha: n, def:  1, sav:  0]
  ICT         0  [cha: n, def:  0, sav:  0]
  SCT         0  [cha: n, def:9000, sav:  0]

Last edited by nilleso; 05-30-2009 at 08:35 AM.
 
Old 05-29-2009, 06:16 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You should do some research before posting a question. The Seagate FreeAgent external disk problem has been around and discussed since the drives were first sold. Try using the LQ search feature and look for freeagent. Here are some references. Some of these were found using Google, others were found using the LQ web site search.

http://www.linuxquestions.org/questi...5/#post3489551

http://alienghic.livejournal.com/382903.html

http://www.linuxquestions.org/questi...3/#post2812441

http://www.theinquirer.net/inquirer/...rkaround-linux

There are many more available.
 
Old 05-29-2009, 10:40 PM   #3
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Original Poster
Rep: Reputation: 31
Thanks for that but what makes you think I didn't do research?
In fact I'm completely familiar with the issue presented in the url's you've provided and they're entirely unrelated.

The disk is not not spinning down or going to sleep... but it isn't auto-mounting correctly.
cheers
 
Old 05-29-2009, 11:59 PM   #4
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Original Poster
Rep: Reputation: 31
figured out the problem. multipath daemon was growing the disk into the / filesystem. To correct I needed to add the following line to /etc/multipath.conf

Code:
devnode_blacklist {
      wwid 1ST31500341AS____________________________2GER6M8Y
}
then `multipath -F` to flush all multipath device maps.

now this one disk is behaving well and working independently from the all the others.

Hope this solution helps someone.
cheers
 
  


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
expand root partition to occupy whole disk JohnGalt007 Linux - Software 4 01-09-2007 06:03 PM
Bandwidth logging hogs 50% CPU and fills root fs PsychosisNode Linux - Software 1 12-16-2005 08:47 AM
What happens when root dir fills up? leiavoia Debian 5 11-14-2004 07:14 PM
Mandrake 9.2 logout fills disk with crash files greatphotos Mandriva 3 01-20-2004 01:09 PM
disk quota root partition fosky Linux - Newbie 0 06-23-2002 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 AM.

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