Hi All.
This issue has been bugging me for weeks, and although I think I know what I need to do to solve it, the scripted solution has me beat!
I have openSUSE 11.1 (i586), Linux 2.6.27.23-0.1-pae i686, 4.1.3 (KDE 4.1.3) “release 4.10.4”.
I have 2 internal IDE drives, and an external USB Disk (IDE) which is partitioned as seen below.
One of the partitions (shown below as sdh5) contains my music.
I only switch this drive on (power supply) when I’m planning on listening to music or working, as pretty much everything else I use is located on the internal drives.
The problem I’'m having is that if I decide to switch this on before boot it’s all ok, but if I switch on after boot it won’t mount. The device Path/ID is changing with boot/mount sequence, which is messing me up. It changes from sdg5 to sdh5 whether it’s powered pre or post boot.
What I want is it automounted at boot if it’s switched on, but if not, I want it to mount automatically when it’s switched on or ‘hotplugged’ after boot.
I want it to automount as Amarok’s library has to rescan if it tries to access it whilst unmounted, and then it takes about 30 minutes to rescan all my music!
I’ve been reading for a few days, and tried allsorts of stuff with fstab entries, and tried symlinking the device uuid with a udev rule, but with no success, which is probably down to my syntax!
I’ve also been trying to find a script called ‘Devlabel’, but have struggled with dependencies for SuSE 11.1.
If anyone could halp me with help, settings or a script to manage what I’m trying to achieve, it’d be very much appreciated.
My uuid list is:
Beth@dhcppc0:~> ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2009-06-22 20:17 3a9941f4-a58b-4de2-bfef-bcf20ba3fe60 -> ../../sda7
lrwxrwxrwx 1 root root 10 2009-06-22 19:19 40A7D9FB2FCF437F -> ../../sdh5
lrwxrwxrwx 1 root root 10 2009-06-22 19:19 43CA39AF550207FD -> ../../sdh8
lrwxrwxrwx 1 root root 10 2009-06-22 19:19 65ED15A038107692 -> ../../sdh6
lrwxrwxrwx 1 root root 10 2009-06-22 19:19 72a861f9-86c8-49e9-b0e9-08df13fb367a -> ../../sdh1
lrwxrwxrwx 1 root root 10 2009-06-22 19:19 72BE30B6BE307527 -> ../../sdh7
lrwxrwxrwx 1 root root 10 2009-06-22 20:17 96f83de1-43dd-46ee-b2a8-ebb60febe2f2 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2009-06-22 20:17 c6afda7e-e1a0-483a-85e9-4b529b12cc24 -> ../../sda5
lrwxrwxrwx 1 root root 10 2009-06-22 20:17 CAE07794E077858B -> ../../sdb2
lrwxrwxrwx 1 root root 10 2009-06-22 20:17 CC6C41256C410BA0 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-06-22 20:17 d6fd03f3-9efe-4a39-94b8-8706714e0dda -> ../../sda6
Beth@dhcppc0:~>
my device list is:
dhcppc0:/home # fdisk -l
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa73e3802
Device Boot Start End Blocks Id System
/dev/sda1 1 2422 19454683+ 7 HPFS/NTFS
/dev/sda2 * 2423 4865 19623397+ f W95 Ext'd (LBA)
/dev/sda5 2423 2684 2104483+ 82 Linux swap / Solaris
/dev/sda6 2685 3612 7454128+ 83 Linux
/dev/sda7 3613 4865 10064691 83 Linux
Disk /dev/sdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdc04a2d2
Device Boot Start End Blocks Id System
/dev/sdb1 1 4493 36089991 83 Linux
/dev/sdb2 4494 14947 83966976 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
Disk /dev/sdh: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a3557
Device Boot Start End Blocks Id System
/dev/sdh1 1 12859 103289886 83 Linux
/dev/sdh2 12860 121601 873470115 5 Extended
/dev/sdh5 12860 38483 205824748+ 7 HPFS/NTFS
/dev/sdh6 38484 95978 461828556 7 HPFS/NTFS
/dev/sdh7 95979 106304 82943563+ 7 HPFS/NTFS
/dev/sdh8 106305 121601 122873121 7 HPFS/NTFS
dhcppc0:/home #