LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-09-2010, 03:22 AM   #1
forusword
Member
 
Registered: Apr 2010
Location: USA
Distribution: OpenSUSE
Posts: 70

Rep: Reputation: 15
Exclamation optical drive and hard disk partition scheme


When I issue the mount command, even if there is a disc in my DVD/CD combo drive, I can't see where the device is mounted.

Here is the output of the mount command. Another oddity in it is that I only have two partition on sda, and I was thinking that / and Swap would be configured as partitions 1 and 2 not 2 and 3? Is 1 the boot loader then?

mount
/dev/sda2 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)

devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda3 on /home type ext4 (rw,acl,user_xattr)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)


My thinking is that boldface is swap and / respectively and italics is all loaded to / on sda3? Is this correct? Why can't I see my optical drive as a mounted device with or without a disc?
 
Old 05-09-2010, 03:29 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
mount mounts all the files systems that are mentioned in fstab.

So unless you have a line for the cdrom in fstab, mount (with no options) is not the command you want.
 
1 members found this post helpful.
Old 05-09-2010, 03:38 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
From the mount man page
Code:
              Three forms of invocation do not actually mount anything:
              [snip]
              mount [-l] [-t type]
                     lists  all  mounted  file  systems (of type type).  The option -l adds the (ext2, ext3 and XFS) labels in this listing.
So mount with no options lists the mounted file systems as illustrated in the OP.

Music and video CDs and DVDs do not need to be mounted to be played. Music CDs and DVDs do not have a file system type that is normally supported by Linux so cannot be mounted.

Swap partitions do not contain file systems so cannot be mounted. To display the swap partition use fdisk -l.
 
1 members found this post helpful.
Old 05-09-2010, 03:54 AM   #4
forusword
Member
 
Registered: Apr 2010
Location: USA
Distribution: OpenSUSE
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks catkin & smoker!
 
Old 05-09-2010, 03:55 AM   #5
forusword
Member
 
Registered: Apr 2010
Location: USA
Distribution: OpenSUSE
Posts: 70

Original Poster
Rep: Reputation: 15
@smoker....what are you trying to get to know people?

Quote:
I've been doing this for over a decade...let go of the soda !
linux smoker is online now
Tag This Post
 
Old 05-09-2010, 04:32 AM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Sorry, I was thinking of mount -a

mount by itself :

Code:
The  programs  mount  and  umount  maintain  a list of currently
mounted filesystems in the file /etc/mtab.  If no arguments  are
given to mount, this list is printed.
 
Old 05-09-2010, 07:46 AM   #7
mifi2909
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by forusword View Post
mount
/dev/sda2 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)

devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda3 on /home type ext4 (rw,acl,user_xattr)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)


My thinking is that boldface is swap and / respectively and italics is all loaded to / on sda3? Is this correct?
No it is not. You have two lines in bold. The first one (/dev/sda2) is the root filesystem. (Although not completely correct, in popular WinSpeech that would be C: )
The second one (/dev/sda3) is /home which is where all the personal files of the users are. (In WinSpeech that would be 'Documents and settings')
Swap is never mounted because it does not contain a filesystem. Linux is not using a swap file, but a swap partition.

You CD is probably mounted under /media or something like that. That is where it is in Ubuntu.

m
 
  


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
Installing Ubuntu: Disk partition pgm only sees one hard drive. John Sorkin Ubuntu 5 01-10-2010 09:20 AM
Linux to partition the hard disk drive apdas Linux - Newbie 4 11-11-2009 07:32 PM
Constant hard drive activity when optical drive is in use the trooper Linux - Hardware 5 08-15-2008 06:25 PM
Partition scheme on 300GB drive anti.corp Debian 7 12-01-2005 02:06 AM
partition scheme for a 2 gig drive? mipia *BSD 12 01-11-2005 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:03 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
Open Source Consulting | Domain Registration