PDA

View Full Version : [VU+ Ultimo] Problem mounting hdd and usb



kvarnstj
25-03-14, 09:09
Hi!

There is a problem in the VIX images (not only Zeus, also older), for mounting the connected storage drives at startup.
I have a HDD drive (SATA) and a 8Gb USB stick connected to my Ultimo. At reboot, it is a matter of luck which drive will be mounted as hdd.
This becomes a problem, when the recording path is set to /media/hdd/movies/. Sometimes the usb stick will be mounted as "hdd" and the box will record to the stick instead of the real HDD drive.
When this happens, the HDD drive is mounted e.g. as /media/sdb1 while the usb stick gets the /media/hdd.
I have hacked the /etc/fstab with following lines:
/dev/sdb1 /media/hdd ext3 defaults 0 1
/dev/sda1 /media/usb ext3 defaults 0 1
...but even with this, the box sometimes screws up the mounting, since the HDD is not always sdb

...
root@vuultimo:/media/hdd/movie# parted -l
Model: ATA SAMSUNG HD501LJ (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 4096B 500GB 500GB primary ext3


Model: SanDisk Cruzer Fit (scsi)
Disk /dev/sdb: 8004MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 8004MB 8003MB ext4 primary


Is there some bulletproof way to get the mounting correct?
I want the mounting to be
/media/hdd for the HDD drive
/media/usb for the USB
ALWAYS!!

IAmATeaf
25-03-14, 10:47
Telnet to the box and use the command blkid to get the UUID of the hard disk and USB stick whilst they are plugged into the box, so for example the command when run on my box produces the output:



/dev/ubi0_0: UUID="009269d7-10a2-4675-9751-eb4c682e46e2" TYPE="ubifs"
/dev/sda1: UUID="b515653f-0aea-493b-8058-bddfef7ebde2" TYPE="ext4"
/dev/sdb1: UUID="3fa52323-8ce6-4a57-8d8b-c51c7895e862" TYPE="ext3"

Then update the file /etc/fstab so that the UUID above is used to identify the device and where it should be mounted, again for example I've added the following lines for my hard drive and USB:



UUID=b515653f-0aea-493b-8058-bddfef7ebde2 /media/hdd auto defaults 0 0
UUID=3fa52323-8ce6-4a57-8d8b-c51c7895e862 /media/usb auto defaults 0 0

PS I don't know why blkid shows my USB stick as being of type ext3, when I run the mount command it's identified as being of type ext4?

kvarnstj
25-03-14, 10:59
Thanks, I'll give that a try.

andyblac
25-03-14, 11:19
the easiest way to setup mounts is with MountManager


press BLUEE
choose ViX
choose MountManager