>
> > Second question:
> > My desktop computer has an internal SATA drive and a SATA drive dock.
> The
> > dock is normally used to hold my backup drive.  Can I do the install in
> the
> > dock, copy data from the old drive to the new drive, then move  the new
> > drive to the internal location?  Will the drive then be known as
> > /dev/sdb1?  How do I tell the install program to find the external drive?
>
> When Linux boots, all drives get a /dev/sdX label but unless the
> partitions are in /etc/fstab they will not be automatically mounted.
> you can look in /var/log/[dmesg | messages | syslog]
>
> Find out all the /dev/sdXn as listed in the logs and then either make an
> entry in /etc/fstab (with out without "noauto"
>
> Also, once partitioned and formatted formatted, and depending on your
> WM/DE setting for dbus/udev, the hard drive in the dock should hot
> plug/automount.
>
>

You could also create a filesystem label instead of relying on what device
name the drives get. This way you can be consistent no matter if they get
reassigned.


This depends on the filesystem for which command you would use to label it
but for example with xfs:
xfs_admin -L MYDATA /dev/sdb

then in fstab
LABEL=MYDATA /mnt/data xfs ... defaults 1 1

Test this with the mount command with the disk unmounted and you can test
that it works as you want it.

googling for "using labels in fstab" comes up with more directions if
needed.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to