A thanks to Clint MacDonald and the su '-' option

yellowdog-newbie@lists.terrasoftsolutions.com yellowdog-newbie@lists.terrasoftsolutions.com
Sun, 21 Sep 2003 13:05:03 -0500


Macarasnake:

On Sunday, September 21, 2003, at 09:15  AM, mascarasnake wrote:
> Thanks muchly for the little tidbit on the su otion.

You are quite welcome. As I wrote, I have no idea why it works, but it=20=

works.

> This is the official explanation from the man pages on the '-' option=20=

> under 'su':
>
> -, -l, --login # make the shell a login shell
>
> It Appears to just tell the machine "No, really, I am the=20
> administrator. Really, I am."

In other words, it's just Linux -- don't question it, just accept it.=20
;-)

> Any idea how I can make MOL recognize that drive? It's a seperate=20
> physical drive running OS 9.1 (OldWorld System) This is the Disk I run=20=

> Xboot From. MOL will recognize My Startup CD, But not the other HDD.=20=

> Can I manually enter the info in the /fstab file?

I don't know what you mean by "that drive," but if its a Mac OS 9.1=20
partition, it can be one of two formats, HFS ("Mac OS Standard" in=20
Drive Setup) or HFS+ ("Mac OS Extended"). If it's HFS+, there isn't a=20
reliable way to mount it, although there are some alpha-quality tools=20
to support HFS+:

<http://sourceforge.net/projects/linux-hfsplus>

HFS is much easier. In fact, when you first partition your Mac for YDL,=20=

it can be a good idea to include an HFS partition because both MOL and=20=

YDL can access it (though not at the same time!). On my setup, my Mac=20
HFS partition is hda10:

[1] in a console, get superuser privileges ("su")
[2] using vi or pico, edit the file /etc/fstab
[3] add the line --

/dev/hda10    /mnt/macos    hfs    noauto,user,rw    0 0

[4] from the console, as a regular user, type "mount /mnt/macos"
[5] Voil=E0!

The "noauto" prevents the partition from mounting at startup; the=20
"user" allows user access (why this isn't the default is beyond me),=20
the "rw" lets me have read and write access. According to Bill Longman,=20=

"The 0 0 thingies are bits that the file system checker uses on startup=20=

and for backup options, if I recall."

Good luck!

Best wishes,
Clint

--=20
Dr. Clinton C. MacDonald | <mailto:clint DOT macdonald AT sbcglobal DOT=20=

net>