I wrote the scripts myself.  Don't ask me how.  I probably couldn't do
it again so I burned them onto a CD to be sure I never lose them.


On Feb 27, 3:13 pm, Daniel Eggleston <[email protected]> wrote:
> Where did you get the scripts?
>
> /dev/mapper/* is where logical volumes live, you should look up lvm if you
> want details.
>
> /etc/fstab defines filesystems (i.e. where each device should mount in the
> root filesystem).
>
>
>
>
>
> On Sat, Feb 27, 2010 at 11:42 AM, Dos-Man 64 <[email protected]> wrote:
> > Ok, so I wanted to change the name of my second hard drive from
> > lsi_bebdeaaidca1 to simply D. It's easier to type and easier to
> > remember.  It's also more natural for me since DOS and Windows users
> > are more used to refering to disk drives using single letters.
>
> > I created this script which does the job.
>
> > ---------------------------------------------------
> > #!/bin/bash
> > cd /dev/mapper
> > mv lsi_bebdeaaidca1 D
> > echo # Added by Phil >> /etc/fstab
> > echo /dev/mapper/D /media/D vfat
> > noauto,users,exec,umask=000,shortname=winnt,uid=knoppix,gid=knoppix 0
> > 0 >> /etc/fstab
> > cd /media
> > mv lsi_bebdeaaidca1 D
> > ---------------------------------------------------
>
> > After running this script with root permission, I just have to create
> > a desktop shortcut pointing to /dev/mapper/D.
>
> > It all works.  Hooray!
>
> > Well, I'm not that enthusiastic about it because I don't understand
> > what exactly this script did. Of course it changes to various folders;
> > renames various files; and appends some data to the end of /etc/fstab;
> > but the whole process is still a bit of a mystery to me.
>
> > And to confuse me even more, a script that renames my first drive to C
> > was not identical. And my desktop shortcut to drive C had to point to /
> > dev/C instead of /dev/mapper/C.
>
> > cd /dev/mapper
> > mv lsi_bebdeaaidca C
> > cd /dev/
> > mv hda1 C
> > cd /media
> > mv hda1 C
> > echo # Added by Phil >> /etc/fstab
> > echo /dev/C /media/C vfat
> > noauto,users,exec,umask=000,shortname=winnt,uid=knoppix,gid=knoppix 0
> > 0 >> /etc/fstab
>
> > It's all very strange.  Can someone please explain this to me?
>
> > --
> > You received this message because you are subscribed to the Linux Users
> > Group.
> > To post a message, send email to [email protected]
> > To unsubscribe, send email to [email protected]
> > For more options, visit our group at
> >http://groups.google.com/group/linuxusersgroup
>
> --
>
>           Daniel- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to