LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-31-2010, 08:57 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 568

Rep: Reputation: 38
trouble umounting with LABEL=label in fstab


I'm having trouble umounting partitions. This is
the entry I have in /etc/fstab for backup:
LABEL=backup /mnt/backup ext3 noauto 0 0

I can mount it ok:
Debian:~# mount LABEL=backup

but can't umount it:
Debian:~# umount LABEL=backup
umount: LABEL=backup: not found

Thanks
 
Old 01-31-2010, 09:14 PM   #2
binary_pearl
Member
 
Registered: Jul 2007
Location: Chicago Illinois
Distribution: SLES 10 SP2/SP3, SLES 11 SP1, OpenSUSE, Sabayon, Gentoo, Fedora 14, RHEL 3/4/5/6
Posts: 98
Blog Entries: 3

Rep: Reputation: 23
You should be able to umount using either the filesystem name or the mount point. So try this:

umount /mnt/backup

--Shaun
 
Old 02-01-2010, 06:39 AM   #3
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 568

Original Poster
Rep: Reputation: 38
That works, but why will Label=backup work with mounting, but
not with umounting; this doesn't make sense to me?

Thanks
 
Old 02-01-2010, 07:25 AM   #4
binary_pearl
Member
 
Registered: Jul 2007
Location: Chicago Illinois
Distribution: SLES 10 SP2/SP3, SLES 11 SP1, OpenSUSE, Sabayon, Gentoo, Fedora 14, RHEL 3/4/5/6
Posts: 98
Blog Entries: 3

Rep: Reputation: 23
Do a `df -h`, and look at the entry. Take the entire first column and try to umount that. You might have to enclose it in quotes or double quotes, so something like:

umount "LABEL=backup"

I also use the `umount mount_point` technique with nfs mounts. It's easier than trying something like `umount 192.168.1.2:/some Weird Share with $p3c1@l characters and spaces!!!`

--Shaun
 
  


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
[SOLVED] LABEL versus UUID in fstab and menu.lst eldiener Linux - General 7 01-04-2010 12:38 AM
* KipBond "rescue" mode can't mount filesystem w/ LABEL=/ in fstab KipBond Red Hat 0 02-06-2008 08:09 PM
etc/fstab Device label changed cant restore the default device name shady_Dev Linux - Software 4 11-11-2007 12:00 PM
/etc/fstab LABEL ziox Linux - Software 3 12-24-2004 07:14 PM
meaning of LABEL="/" in fstab isaac_linux Linux - General 3 04-04-2004 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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