LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-01-2008, 12:46 AM   #1
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 16
Automount


Hi,

I use Fedora9 installed in sda6
I have several unused partitions before. (these are formatted in fat16, ext3).
Each time when I start my F9, it "automounts" these partitions to /media/disk /media/disk-1 /media/disk-2 etc.

(This happens even with my primary fat16 partition for my dos)

I DO NOT WANT THIS.

How can I get rid of this ?

I have looked in the automount setup, I do not find any entry that justifies this "automounting".
 
Old 12-01-2008, 01:34 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are they mounted (typing mount as root will tell you). If not, it's possible that autofs mounts them. Have a look at /etc/auto.misc for a start.

I'll try an boot F9 later and have a look.
 
Old 12-01-2008, 01:41 AM   #3
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by billymayday View Post
Are they mounted (typing mount as root will tell you). If not, it's possible that autofs mounts them. Have a look at /etc/auto.misc for a start.

I'll try an boot F9 later and have a look.
Hi Billymaday,

There is nothing in /etc/auto.misc that justify the mounting of partitions to /media/disk. . . .

When I type "cat /etc/mtab" I see they are mounted. When I fire up GParted, I also see they are mounted.

Regrads,
 
Old 12-01-2008, 02:16 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't get anything automounting ,so that doesn't help.

You don't have these entries in fstab?

Assuming not, why don't you follow the boot process closely (even run it interactively).

Edit -I actually should have referred you to auto.master, not auto.misc earlier.

Last edited by billymayday; 12-01-2008 at 02:18 AM.
 
Old 12-01-2008, 02:35 AM   #5
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Original Poster
Rep: Reputation: 16
These are my fstab and mtab

Quote:
$ cat /etc/fstab
# /dev/sda6
UUID=e73e09bb-d6f8-4124-b076-90f50dc5448c / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
# sda5
# UUID=c1b409be-5220-462a-a13a-7b2bf6f85ff6 swap swap defaults 0 0
# new swap /dev/sda8
UUID=2b1bd6f4-2d98-4b23-91fc-4915e883af94 swap swap defaults 0 0
/dev/sda7 /boot ext3 defaults 0 0


$ cat /etc/mtab
/dev/sda6 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda7 /boot ext3 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
gvfs-fuse-daemon /home/phe/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=phe 0 0
/dev/sda9 /media/disk ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sda1 /media/disk-1 vfat rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500 0 0
/dev/sda5 /media/disk-2 ext3 rw,nosuid,nodev,uhelper=hal 0 0
Quote:
(parted) print all
Model: ATA MAXTOR STM380211 (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
3 512B 32.3kB 31.7kB primary
1 32.3kB 107MB 107MB primary fat16
2 1645MB 8234MB 6588MB primary sun-ufs boot
4 8234MB 80.0GB 71.8GB extended
7 8234MB 8283MB 49.3MB logical ext3
8 8283MB 10.4GB 2147MB logical linux-swap
9 10.4GB 23.0GB 12.6GB logical ext3
5 26.1GB 27.6GB 1571MB logical ext3
6 28.8GB 39.3GB 10.5GB logical ext3

Are automounted and not wanted : sda1, sda5 and sda9

sda6 is my / Linux partition
sda7 is my /boot
 
Old 12-01-2008, 04:13 AM   #6
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Rep: Reputation: 45
Smile

I have this same issue of all formatted partitions mounted at boot up and show on the desktop too. I found out in a Linux book that to stop this auto mounting, just change the word;"defaults" to; "noauto" in /etc/fstab file as root user. So in a terminal do; "su -" for root, then to edit that file type; gedit /etc/fstab , which should open it to allow edit.
 
Old 12-01-2008, 05:24 AM   #7
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by james2b View Post
I have this same issue of all formatted partitions mounted at boot up and show on the desktop too. I found out in a Linux book that to stop this auto mounting, just change the word;"defaults" to; "noauto" in /etc/fstab file as root user. So in a terminal do; "su -" for root, then to edit that file type; gedit /etc/fstab , which should open it to allow edit.

Have a look in my fstab !
You will notice that there are NO entries for these NOT wanted partitions !
So it will be difficult to change "default" to "noauto" for these lines.

I want that /dev/sda7 (/boot) and /dev/sda6 (/) and /dev/sd8 (swap) and all others in my fstab that these ARE automounted during boot !


Code:
$ cat /etc/fstab
# 
/dev/sda6
UUID=e73e09bb-d6f8-4124-b076-90f50dc5448c / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
# sda5
# UUID=c1b409be-5220-462a-a13a-7b2bf6f85ff6 swap swap defaults 0 0
# new swap 
/dev/sda8
UUID=2b1bd6f4-2d98-4b23-91fc-4915e883af94 swap swap defaults 0 0
/dev/sda7 /boot ext3 defaults 0 0
 
  


Reply



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
Unable to Automount ISO image unless automount is running in foreground! swests Linux - General 4 05-22-2009 12:47 AM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
Automount RySk8er30 Mandriva 13 08-22-2005 06:22 AM
automount ptawe Debian 1 07-31-2005 01:09 PM
automount in 9.1 alaios SUSE / openSUSE 8 10-26-2004 10:04 AM

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

All times are GMT -5. The time now is 07:09 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