I also documented what I did in a more human-readable format than bash
code. Although the documentation doesn't clear up some things. Why
does the shortcut to C have to point to /dev/C while the shortcut to D
must point to /dev/mapper/D?
Mind you, these are two different disk drives of different sizes and
different manufacturers.
How to rename a hard disk in KNOPPIX.
------------------------------------------------------------------------------------------------
Example uses drive D: known to knoppix as lsi_bebdeaaidca1.
1. Open a root shell.
2. Change to directory /dev/mapper.
3. Rename the file lsi_bebdeaaidca1 to D.
mv lsi_bebdeaaidca1 D
4. Open the file /etc/fstab.
5. Edit the line for lsi_bebdeaaidca1. Change references to D.
6. Change to directory /media.
7. Rename the file lsi_bebdeaaidca1 to D.
mv lsi_bebdeaaidca1 D
8. Create a shortcut link to device D on the desktop. Shortcut link to
point to /dev/mapper/D.
The new device, D, is /media/D.
Change shortcut permissions so that others besides root can read and
write to the device.
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Second example uses drive C: known to knoppix as /media/hda1
1. Open a root shell.
2. Change to directory /dev/mapper.
3 Rename the file lsi_bebdeaaidca to C.
mv lsi_bebdeaaidca1 C
4. Change to directory /media.
5. Rename the file hda1 to C.
mv hda1 C
6. Open the file /etc/fstab.
7. Edit the line for lsi_bebdeaaidca and hda1. Change references to
C.
8. Create a shortcut link to device C on the desktop. Shortcut link
to point to /dev/C.
The new device, C, is /media/C.
On Feb 27, 8:27 pm, Dos-Man 64 <[email protected]> wrote:
> 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 -- 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