Author Topic: how set up the character set of a external hard disk [solved]  (Read 69 times)

Offline duns

  • Full Member
  • ***
  • Posts: 243
    • MondoPc
In pclos 2009 I found the way to set the right character set (latin1, not utf8) for the external hard disk (hd video player trekstor). Now, in pclos 2013 I don't remember how I should do. Can you help me?
Thank you
« Last Edit: May 10, 2013, 10:15:12 AM by duns »

Offline dm+

  • Jr. Member
  • **
  • Posts: 22
Re: how set up the character set of a external hard disk
« Reply #1 on: May 10, 2013, 05:54:08 AM »
I will try to outline the steps, but THIS IS AN EXAMPLE that may or may not work as you wish.

The idea is to plug in your mass storage device and have the file names read/written in the latin1 character set.  For this to happen automagically, you need to prepare a mount point and an entry for your disk in the /etc/fstab file.

So, here it goes:

Open up a console / terminal.

Create a mount point for your device

su (provide password)

mkdir /mnt/trekstor

Identify your device (one of possible methods)

Plug in your disk; let it settle for a few seconds

ls -als /dev/disk/by-id

You will get a listing similar to the following:

0 lrwxrwxrwx 1 root root   9 May 10 11:04 ata-HDS728080PLA380_40Y9028LEN_PF3B75E8RL6H6JM -> ../../sda
0 lrwxrwxrwx 1 root root  10 May 10 11:04 ata-HDS728080PLA380_40Y9028LEN_PF3B75E8RL6H6J-part1 -> ../../sda1
0 lrwxrwxrwx 1 root root  10 May 10 11:04 ata-HDS728080PLA380_40Y9028LEN_PF3B75E8RL6H6J-part2 -> ../../sda2


We are interested in the disk identification and partition name; in this example I have highlighted partition 2.

Using your favorite editor (mc is a good console choice) open /etc/fstab for editing.

Insert a line similar to the following (with your own disk identification details, of course):

/dev/disk/by-id/ata-HDS728080PLA380_40Y9028LEN_PF3B75E8RL6H6J-part2  /mnt/trekstor  auto   user,exec,rw,auto,iocharset=latin1  0  0

The above is all in one line.

Now as soon as you plug your device in, it will be accessible at /mnt/trekstor.

You should not need to reboot in the process; if you make a mistake, try to fix it.  There is one caveat: the filesystem on your device must support the iocharset command (but if you have done it again, it most probably will).

Let us know how you fared.











Offline duns

  • Full Member
  • ***
  • Posts: 243
    • MondoPc
Re: how set up the character set of a external hard disk
« Reply #2 on: May 10, 2013, 06:01:56 AM »
Thank you: I will do as you suggest.

Offline duns

  • Full Member
  • ***
  • Posts: 243
    • MondoPc
Re: how set up the character set of a external hard disk [solved]
« Reply #3 on: May 10, 2013, 10:14:18 AM »
OK, it's run correctly. Thank you  :D