Bash & Mounting CD-ROM

Edward Glowacki glowack2@msu.edu
Tue, 22 Aug 2000 11:47:31 -0400 (EDT)


Where's the trumpets fanfaring my arrival?! ;)  I heard the words
"FreeBSD" and then the hope, "Maybe Ed will answer your question."
Indeed Ed has the answers!!!! =)

On Tue, 22 Aug 2000, Alex Morris wrote:
> I have recently installed FreeBSD.  However, I have two huge problems (plus 
> a whole slew of little ones).  First off, how the heck do I mount my CD-ROM 
> drive?  My best guess (which failed miserably) was to do: mount /dev/cd0a 
> /cdrom

Here's the line I have in my /etc/fstab (FreeBSD 3.4-RELEASE):

/dev/acd0c              /cdrom  cd9660  ro,noauto       0       0

If you have a line like that, you should be able to just "mount
/cdrom", or without that entry "mount -t cd9660 /dev/acd0c /cdrom"
("mount /dev/acd0a /cdrom" returns "incorrect super block" error)

> Secondly, how do I switch root from csh to bash?  I have my non-priveledged 
> user running bash but cannot figure out how to switch root over.

I'd go with TCSH myself (probably have to build it in the ports
tree, /usr/ports/shells/tcsh).  "vipw", change stuff after the last
: for the user to be /usr/local/bin/tcsh (or whatever other shell you want)

> Oh, and as long as I'm asking about mounting, where the heck did /dev/hd* 
> go?  I need to mount some FAT32 and NTFS5 partitions but don't have a clue 
> where to find them in my /dev list.

/dev/wd0s2a is my / partition

decoded references:
wd	IDE hard disk
0	0'th disk (first hard drive) (numbering starts at 0)
s	slice (DOS/Win "partition")
2	2nd slice (2nd "partition") (numbering starts at 1?)
a	1st partition (no real equivalent in DOS/Win) (numbering is letters)
	Standards: a = / , b = swap , c = whole disk (hope these are correct!)

So your Windows C: drive is probably wd0s1a, etc. Let me know if you need
some decoding of your drive arrangement.  This method of partitioning for
FreeBSD is a pretty standard BSD style thing.  Linux, on the other hand,
splits its stuff (/, swap, /var, etc.) on DOS style partitions, so it looks
like multiple partitions to DOS.  FreeBSD looks like only one partition
to DOS, and splits that space up internally itself.


> Lastly, where might I find a good resource for learing FreeBSD (freebsd.org 
> doesn't appear to exist...)?

It's there... =)

> 
> Thanks,
> Alex

ED

-- 
Edward Glowacki			glowack2@msu.edu
Network Services		
Michigan State University