Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-03-2005, 07:07 PM
|
#1
|
Member
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194
Rep:
|
how to umount /
i accidently mount a remote drive onto / which is mount by dev/sda locally as well. I try to umount the remote drive but then got 3 lines of device busy.
Is there anyway to umount WITHOUT restart linux server?
ps: the remote drive is in NT machine
thanks in advance.
|
|
|
08-03-2005, 07:22 PM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
You have a few options for umount. Try the -l ( Thats a lower case L ) for lazy umount and -f for force. See what happens
Brian1
|
|
|
08-03-2005, 07:34 PM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
umount the actual share name, not where you mounted it to..
If you try to run 'umount /' it's going to give you the resource busy each and every time.
|
|
|
08-04-2005, 12:38 AM
|
#4
|
Member
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194
Original Poster
Rep:
|
the NT drive mounted onto / is backups. I try to umount //file-share/backups and it said
umount: //file-share/backups: not found
umount: /: not mounted
umount: /dev/sda1: not mounted
umount: //file-share/backups: not found
umount: /: not mounted
|
|
|
08-04-2005, 10:07 AM
|
#5
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by taiwf
the NT drive mounted onto / is backups. I try to umount //file-share/backups and it said
umount: //file-share/backups: not found
umount: /: not mounted
umount: /dev/sda1: not mounted
umount: //file-share/backups: not found
umount: /: not mounted
|
What is the output of mount?
|
|
|
08-04-2005, 12:18 PM
|
#6
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
I think you should print the output of
|
|
|
08-04-2005, 12:24 PM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by eantoranz
I think you should print the output of
|
I asked the same thing about two hours prior, didn't you read my last post?
|
|
|
08-04-2005, 12:29 PM
|
#8
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
You're righ. Let's wait for the little grass-hopper to wake up! ;-)
|
|
|
08-04-2005, 09:32 PM
|
#9
|
Member
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194
Original Poster
Rep:
|
the output of mount is
/dev/sda1 81G 71G 5.9G 93% /
tmpfs 441M 0 441M 0% /dev/shm
/dev/sdb1 xxxxx xxxxx
//file-share/backups xxx xxxx xxx /
the tmpfs drive not so sure .. coz i just reboot today coz sth bad happen... But i still like to know the proper umount way...
Last edited by taiwf; 08-04-2005 at 09:37 PM.
|
|
|
08-04-2005, 10:36 PM
|
#10
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
I don't find any sense in that mount output. I'm gonna use mine as an example:
Code:
/dev/ide/host0/bus0/target0/lun0/part1 on / type ext3 (rw,noatime)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/ide/host0/bus0/target0/lun0/part8 on /home type ext3 (rw,noatime)
/dev/ide/host0/bus0/target0/lun0/part9 on /mnt/datos type vfat (rw,uid=501,umask=0022,iocharset=iso8859-1,codepage=850)
/dev/ide/host0/bus0/target0/lun0/part3 on /mnt/xp type vfat (rw,umask=0)
none on /tmp type tmpfs (rw)
/dev/ide/host0/bus0/target0/lun0/part6 on /usr type ext3 (rw,noatime)
/dev/ide/host0/bus0/target0/lun0/part7 on /var type ext3 (rw,noatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
You see? it tells you the device and the mount point.
If you wan't to unmount /var, then:
umount /var
|
|
|
08-04-2005, 10:40 PM
|
#11
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
But there's a problem. How are you gonna unmount the ROOT directory? I don't think that's possible, man.
|
|
|
08-04-2005, 11:16 PM
|
#12
|
Member
Registered: Jul 2005
Location: Texas
Distribution: RHEL4 - ES
Posts: 178
Rep:
|
Quote:
Originally posted by eantoranz
But there's a problem. How are you gonna unmount the ROOT directory? I don't think that's possible, man.
|
can you chroot to your new / directory, then unmount the device?
|
|
|
08-05-2005, 12:51 AM
|
#13
|
Member
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194
Original Poster
Rep:
|
sorry i misunderstand... the lines about mount above was actually ones after i type df -h
the actual on look something similiar to this..
/dev/hda1 on / type ext2 (rw,errors=remount-ro)
proc on /proc type proc (rw)
//file-share/backups on / type smbfs (rw)
|
|
|
08-05-2005, 01:40 AM
|
#14
|
Member
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194
Original Poster
Rep:
|
ok chroot really doesn't help...
mkdir -p /candy
cp -av /bin /dev /etc /home /lib /root /sbin /tmp /usr /var
chroot /candy su -
---------------------------------------
debian-dav://# umount /
umount: //file-share/backups: not found
umount: /: not mounted
umount: /dev/hda1: not mounted
debian-dav://# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.3G 1.3G 1.9G 41% /
df: `/proc': No such file or directory
//file-share/backups 3.3G 1.3G 1.9G 41% /
----------------------------------------
the disk still mounted on / . And the problem back to the origial point
And new issue, how the hell do i get back to the original root? (without reboot, or does reboot even help??)
|
|
|
All times are GMT -5. The time now is 01:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|