Re: [F8 i386] Drive mount locations change at startup.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2008-02-22 at 11:10 -0700, Scott wrote:
> I've got 4 internal and two external hard drives.
> 
> Every time I boot and log in I find at least one of my internal drives 
>   mounts in a different directory than it had previously (the others may 
> as well, but I've not yet noticed - read on).
> 
> It's never the same directory (it's either "/media/disk" 
> "/media/disk-1", or "/media/disk-2" or "/media/disk-3").
> 
> I've got a symlink from a directory in ~/ to a subdirectory on one of my 
> internal drives and it breaks with every boot.
> 
> Is this a bug or a feature? ;)
> 
> How might I get my drives to mount in the same place every time?
> 
> Thanks.
> 
> 
> -- 
>              Scott
> http://angrykeyboarder.com
> I've never used an OS I didn't (dis)like.
> I'm angrykeyboarder™ and I approved this message.
> 

I now always label my disk partitions both for hotplug mounting and
for /etc/fstab type mounting.

If they are Linux ext2/ext3 then use e2label
blkid is also useful to check what's what.


If they are MS then I picked up these instructions from the web
##################################################################
fuerte labeling_disks 999# cat labelling_fat32_partitions.txt2
I wanted to rename the fat32 partitions that get automounted when they are plugged in to the USB
drive. Two were exactly similar external
hard disk drives, and one was an iPod. The exactly similar hard disk drives (one each at home and
work) were both getting mounted at
/media/sda1 or sda2 etc, and it was impossible to distinguish one from the other
easily. Also, I found that it wasn't that easy to edit the partition labels for FAT32 partitions.
So I thought I would summarize how I named my fat32 partitions to have consistent names.
This has the benefit that when these drives are automounted, they will be at the location
/media/partition-label, where partition-label is
the label that you give the partition.

Step by step instructions to re-label FAT partitions follow:

1) Install mtools:
$sudo apt-get install mtools

2) After the usb drive is automounted after plugging in, find out the device descriptor using:
$mount
and Note down where it says "csda1" or similar

3) copy the mtools.conf to ~/.mtoolsrc
$cp /etc/mtools.conf ~/.mtoolsrc

4) Edit ~/.mtoolsrc to add one line at the very end:
drive i: file="/dev/sda2"
you may have to change sda2 to something else depending on what you got in step 2 above.

5) Change to the "cdrive" i:
$mcd i:

6) Check what the label for the drive is currently:
$sudo mlabel -s i:

7) Change the label to something pretty:
$sudo mlabel i:my-ipod

8) Check if the label has changed:
$sudo mlabel -s i:
I got the following output -
Volume label is MY-IPOD

You're all set!! The next time that partition gets automounted, it will be at /media/MY-IPOD
fuerte labeling_disks 1000# 
####################################################################

I don't know about NTFS

Good luck

John

    


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux