How can I make sure that Ubuntu always mounts my USB HD as "Disk"
#1
Before the site went down I posted for a solution which someone kindly answered but I didn't have time to impliment the solution before the outage.

System : Asrock 330 - XBMC 9.11 - Linux - Ubuntu 9.10.

My USB HD is mounted as "Disk" which contains my movies and my internal hard drive as "Disk1" which usually works fine. Occasionally however it will swap the drives so that my movies are on "Disk1" instead. This causes XBMC to think the movies are missing asking if I want to remove them from library.

How can I make sure that Ubuntu always mounts my USB HD as "Disk" and the internal as "Disk1"?

Thanks
Reply
#2
Add a mount point in your fstab using the UUID of the disk.

http://www.paulrae.com/2009/10/07/get-uu...ard-disks/
Reply
#3
Thanks. I can see how to get the UUID from that link thanks.

Is there any chance you can advise how I actually use the UUID in FSTAB to mount it?

thanks again.
Reply
#4
If you look in your fstab, you should see examples. If not it should look something like this

Code:
UUID=0c1ec62a-59d0-4a7e-97c6-d4e74a426ffd    /your/mount/point    ext3    relatime,errors=remount-ro 0       1
Reply
#5
Ah I see thanks. I will give it a go when I get home.

Thanks for your help Smile
Reply
#6
Unfortunately I'm not that clever at Linux so I'm having some issues here.

When I check for UID's I can see the following:

Quote:lrwxrwxrwx 1 root root 10 2010-03-18 00:33 3e18eb91-f8f8-4b38-9f6d-cbb17803bdb0 -> ../../sda5
lrwxrwxrwx 1 root root 10 2010-03-18 00:33 58a7690f-36b3-47f6-94be-e64b16389b1b -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-03-18 00:34 9428ECE928ECCAF6 -> ../../sdb3
lrwxrwxrwx 1 root root 10 2010-03-18 00:34 a1c07c10-5a35-46de-a5f0-01c57e9b83e3 -> ../../sdb1

When I check the FSTAB file I see this:

Quote:# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=58a7690f-36b3-47f6-94be-e64b16389b1b / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=3e18eb91-f8f8-4b38-9f6d-cbb17803bdb0 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

I can't see any mention of "Disk" or "Disk1" so can't see which UUID is my USB hard drive.

I'm really sorry If I'm missing something obvious.
Reply
#7
Busbyuk Wrote:Unfortunately I'm not that clever at Linux so I'm having some issues here.

When I check for UID's I can see the following:



When I check the FSTAB file I see this:



I can't see any mention of "Disk" or "Disk1" so can't see which UUID is my USB hard drive.

I'm really sorry If I'm missing something obvious.

Just type "mount" to see which /dev/sd? is mounted as Disk or Disk1 this reboot.
You need to add a new line to /etc/fstab for this UID.
Reply

Logout Mark Read Team Forum Stats Members Help
How can I make sure that Ubuntu always mounts my USB HD as "Disk"0