LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Partition id change caused not mountabling automaticly (https://www.linuxquestions.org/questions/linux-desktop-74/partition-id-change-caused-not-mountabling-automaticly-492504/)

CeremCem 10-15-2006 12:01 AM

auto mount problem, char. encoding, missing desktop icon (Solved: 1 of 3 problems)
 
Hello all,

First of all, I do not know where may I post the topic so if I am wrong, sorry...

I still have to use Windows, but mostly booting from Linux Ubuntu (Dapper Drake) and I sometimes format Windows or may be Linux (This is the sign that I am really newby); that's why I needed a backup partition that can be accessible both Linux and Windows. There only one partition type as I want is Fat32. I partitioned my disk as:

13GB NTFS (sda1)
+40GB Fat32 (sda5) (extended)
+1.3GB swap (sda6) (extended)
20GB Ext3 (sda2)

There was no read or write problem to the common partition (sda5).

I drag and drop (with cutting) the folder C:\Documents and Settings\user\Desktop in D:\hede. This got my Desktop to D:\hede\Desktop so if there is a boot failure, I can format C: (sda1) safely.

Then while thinking on this, there is an idea light on my head: "if I made myDesktop move to the common partition, then I can make it
same for Linux".

There is no way to make it possible in Linux... Someone said that this errors (chown 644 /media/sda5/hede can not be done) are getting because of the partition type of the common partition, Fat32. There is no way to attribute user access rights if it is a Fat32 partition, he said.

Then I backup my all data, deleted the partition Fat32, made a new partiton with the id ext3; while doing these I used PartitionManager. Then I restored my data. In windows, I installed a driver from the site fs-driver.org and with the same methode, I set my windows_desktop folder to sda5 which is now ext3. There is NO PROBLEM in windows although it is a linux partition.

When I boot with linux, there is no harddrive icon named sda5 mounted on my desktop. It was normal, so I modified fstab like this:
Code:

ceremcem@Zeytin:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/sda2      /              ext3    defaults,errors=remount-ro 0      0
/dev/sda1      /media/sda1    ntfs    defaults,nls=utf8,umask=007,gid=46 0      0
#/dev/sda1      /media/sda1    ntfs-3g    defaults,gid=46,umask=000,locate=tr_TR.utf8 0      0
/dev/sda5      /media/sda5    ext3    defaults,user,auto,rw,locate=tr_TR.utf8 0      0
/dev/sda6      none            swap    sw              0      0
/dev/scd0      /media/cdrom0  udf,iso9660 user,noauto    0      0
ceremcem@Zeytin:~$ sudo mount -a
mount: dosya sistemi türü yanlış, seçenek yanlış, /dev/sda5 üzerinde superblok
      hatalı, karakter kümesi eksik, ya da başka bir hata olabilir
      Bazı durumlarda syslog'da bulunan bilgiler yararlıdır.
      dmesg | tail  gibi birşeyler deneyin

ceremcem@Zeytin:~$

The mount error is in Turkish (which is my own language) and Its original must be:

mount: wrong filetype, wrong option, superblock error on /dev/sda5, missing characterset or there is another error


I can mount /dev/sda5 which is ext3 manually by typing
Code:

sudo mount /dev/sda5 /media/sda5
but it's not mounted automatically with the fstab entry. This is my first problem. (and also it is not working the command: sudo mount /dev/sda5 >>> causes>>> mount: error: wrong filetype in fstab)


While in Linux, I can access my files on sda5 when mounted it manually,I can listen my musics, read my documents on sda5 but their filenames are incorrect which are including Turkish characters as ı,ö,ü,ş,ç,ğ. There is no problem with the filenames which are containing the same characters in sda1 (still looking from Linux). And also when I am in windows, there is no problem with the characters on sda5 (ext3 now), but same issue (wrong encoding) on sda2 (ext3). sda5 and sda2 has the same partition type; why the characters is normally decoded on sda5 but not sda2 by Windows? (this is my second problem)

If I make the ntfs-3 line active in fstab and ntfs line inactive, sda1 is mounted correctly on /media/sda1 but there is no desktop icon. How can I fix this problem? (This is my third and the last problem)

Thanks for your attention

Lenard 10-16-2006 10:43 AM

Change the /etc/fstab entry to look like your entry for the other linux partition, maybe something like;

Code:

/dev/sda5      /media/sda5    ext3    users,auto,rw,errors=remount-ro 0      0
Be sure and give users (as root) read/write permissions on the unmounted directory /media/sda5 also, for example; chmod 0777 /media/sda5

CeremCem 10-17-2006 07:37 AM

Hello,

My first (and the biggest) problem has solved by editing fstab as:

Code:

/dev/sda5    /media/sda5    ext3    defaults,user,auto,rw    0    0
Now, while in windows, wrong encoding with the filenames on sda2 (ext3) but true encoding on sda5 (ext3) and vice versa became the biggest problem. The last is missing desktop icon, but it is not a problem at all... (I don't care while character encoding problem is persisting)

Thank you for reply


All times are GMT -5. The time now is 02:39 AM.