LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2007, 11:12 PM   #1
blancs
Member
 
Registered: Mar 2005
Posts: 49

Rep: Reputation: 15
weird mount and harddrive issues


I have hdb set to mount at /mnt/hdb. everything works great but I am trying to transfer alot of data from my laptop to backup on hdb on the server. When transfering I leave it going at night and I wake up with seeing io errors and it looks like the drive crashes. when i cd to the drive nothing is present. However when I reboot the machine everything is back to normal. I can't just umount the drive either.


iason@claud:~$ cd /mnt/
iason@claud:/mnt$ ls
hdb
iason@claud:/mnt$ cd hdb
iason@claud:/mnt/hdb$ ls
ls: reading directory .: Input/output error
iason@claud:/mnt/hdb$ mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdb1 on /mnt/hdb type ext2 (rw)


when I try to umount i get

iason@claud:/mnt/hdb$ sudo umount /dev/hdb1
umount: /mnt/hdb: device is busy
umount: /mnt/hdb: device is busy
iason@claud:/mnt/hdb$

iason@claud:/mnt/hdb$ sudo umount -f /dev/hdb1
umount2: Device or resource busy
umount: /mnt/hdb: device is busy
umount2: Device or resource busy
umount: /mnt/hdb: device is busy
iason@claud:/mnt/hdb$
 
Old 09-06-2007, 11:28 PM   #2
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
you mentioned the word server... is that another computer or external drive?

im assuming computer like the set up im making (but my servers gonna have 3 hard drives)

can you see any of the files you transfered on the server itself?
 
Old 09-06-2007, 11:58 PM   #3
blancs
Member
 
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
Im on a laptop transfering to another computer on the network, I'll just call it server. I havn't rebooted the server to see if those files are there or not, but i suspect a majority are; however didn't finish do to whatever it is that is happening.
 
Old 09-07-2007, 12:17 AM   #4
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
well figure out what did not transfer and resend them.....
 
Old 09-07-2007, 01:02 AM   #5
blancs
Member
 
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
yea that's the easy part. id like to know why my harddrive is crashing and how to umount and remount without having to reboot the whole computer, allowing access to that harddrive. Id like to prevent this from happening again if possible. I dont really understand why this is happening in the first place, and it happens repeatedly.
 
Old 09-07-2007, 01:35 AM   #6
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,276

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
The mount command sometimes does this. You cannot umount if the mount point is the working directory. You need to get out of hdb with cd .. . I suspect power management spinning down the drive, or doing something to disrupt the transfer. Usually a notebook will not stay on all night. It will go to sleep, unless you set it to stay awake for a long time, usually expressed in minutes. I just had this same problem doing a backup, and I can't remember how I fixed it, except that I configured klaptop to prevent hibernation on the laptop for three hours. I was using dd like this:

on the server: >netcat -l -p 1234 | bzip2 > /mnt/sdb/hda_lappy.img

1. >enter

on the lappy: >dd if=/dev/hda bs=16065b conv=notruc,noerror | netcat 192.168.0.5 1234

2. >enter

This is a bitstream method of backup using compression on a mostly empty 100 GB drive, and yields a 6 GB image file, but I don't think you could mount this image, so it needs to be restored in its entirety, or not at all.

To restore, on laptop: >netcat -l -p 1234 | dd of=/dev/hda bs=4k conv=notrunc,noerror

>enter

on server: >bunzip2 /mnt/sdb/hda_lappy.img | netcat 192.168.0.6 1234

>enter

where 192.168.0.5 = server, 192.168.0.5 = lappy, 1234 = tcp port to use.

bzip2 uses an error checking algorithm that is machine, and especially memory intensive. If it bugs out, try turning the AC to a lower temp. in the room where the server is, or get some powerful chassis fans.
 
  


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
mount another harddrive Longinus Linux - Newbie 3 05-23-2004 02:36 AM
External Harddrive Issues RCullan Linux - Hardware 3 03-25-2004 08:06 PM
how to mount a second Harddrive Mikecore Linux - Hardware 5 12-29-2003 02:17 PM
How to mount my other harddrive ? Mikecore Linux - Hardware 4 12-17-2003 01:28 PM
IDE Harddrive issues SLaCk_KiD Linux - Hardware 4 09-23-2003 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration