Mounting fat32 in linux

mount для fat32 с русскими именами файлов

как подмаунтить Fat32 с русскими именами попытка mount /dev/hda1 -t vfat -o iocharset=KOI8-R,uni_xlat=1,charset=866 /mnt/c не прокатила MSDOS FS: IO charset KOI8-R VFS: freeing iocharset=KOI8-R mount: wrong fs type, bad option, bad superblock on /dev/hda1,or too many mounted file systems

Re: mount для fat32 с русскими именами файлов

mount -t vfat -o codepage=866,iocharset=koi8-r /dev/hda1 /mnt/c

это тоже не катит

mount -t vfat -o codepage=866,iocharset=koi8-r /dev/hda1 /mnt/c MSDOS FS: Using codepage 866 MSDOS FS: IO charset koi8-r VFS: freeing iocharset=koi8-r mount: wrong fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems

система только что поставленная Slakware 8.0 на консоли русский есть (правда пока русские буквы на консоли не вводятся , а только в mc) кто ещё подскажет что делать? (ну очень надо , т.к. сосуществуют две системы: Win98 и Slakware)

Re: mount для fat32 с русскими именами файлов

Ты уверен, что /dev/hda1 содержит fat32? Что показывает fdisk -l /dev/hda?

Re: это тоже не катит

2анонимоус: Надо чтобы в ядре была поддержка этого дела :-))) По умолчанию никто тебе её не включт кажется :-)Пересобери ядро и добавь модулями всякие разные Кириллицы — там где про файловые системы. Это вот они всё и делают по русски читаемым. А в Слакваре — я вообще-то не помню я сразу ядро для себя пересобрал и всё. А конфиг fstab — у меня уже несколько лет не меняется :-)))

насчет ядра

1. на /dev/hda1 ТОЧНО fat32 т.к. система ставилась на второй винт, а первый полностья под управлением win32 и с ней я поработал очень много, т.е. fat32 от fat16 и ntfs отличать научичился ;)))
а в Linux я относительный новичок (т.е. есть опыт юзера, но нет опыта установки и настройки, тем более Slakware) , посему должны сосуществовать две системы.
2. насчет пересборки ядра. В этом же форуме уже задавали этот же вопрос, откуда я и почерпнул вышеуказаные опции mount (кои и попробовал разными способами)
просто я был уверен , что это не такая большая проблема , чтобы пересобирать ядро для этого, тем более я этим никогда не занимался, а гуру помочь не дозавешься.
вот и взываю к вам о помощи.

Re: mount для fat32 с русскими именами файлов

У меня у как раз Slackware 8 все работает без проблем, а судя по сообщению, что выдает тебе система, то всетаки тебе придется научиться пересобирать ядро (темболее, что это нужно знать). Судя по всему у тебя в ядре не включена поддержка 866 кодовой страницы, той которой пользуется DOS. Попробуй смонтировать без поддержки русского: mount -t vfat /dev/hda1 /mnt/c если смонтируется, то значит только 866 страницу включить в ядре нужно, если нет то еще надо смотреть как у тебя в ядре включена поддержка MSDOS и VFAT. Так что читай Kernel-Howto лучшего пока посоветовать немогу, или попытайся выйти на меня по ICQ 12642401 может получиться тебе в Online помочь.

Источник

Mounting fat32 in linux

This article or section needs expansion.

File Allocation Table (FAT) is a computer file system architecture and a family of industry-standard file systems utilizing it. The FAT file system is a legacy file system which is simple and robust. It offers good performance even in light-weight implementations, but cannot deliver the same performance, reliability and scalability as some modern file systems. It is, however, supported for compatibility reasons by nearly all currently developed operating systems for personal computers and many mobile devices and embedded systems, and thus is a well-suited format for data exchange between computers and devices of almost any type and age from 1981 up to the present.

Contents

File system creation

To create a FAT filesystem, install dosfstools .

mkfs.fat supports creating FAT12, FAT16 and FAT32, see Wikipedia:File Allocation Table#Types for an explanation on their differences. mkfs.fat will select the FAT type based on the partition size, to explicitly create a certain type of FAT filesystem use the -F option. See mkfs.fat(8) for more information.

Format a partition to FAT32:

Kernel configuration

Here is an example of the default mount configuration in the kernel:

A short description of the options:

  • Language settings: CONFIG_FAT_DEFAULT_CODEPAGE , CONFIG_FAT_DEFAULT_IOCHARSET
  • All filenames to lower letters on a FAT partitions if enabled: CONFIG_NCPFS_SMALLDOS
  • Enables support of the FAT file systems: CONFIG_FAT_FS , CONFIG_MSDOS_FS , CONFIG_VFAT_FS
  • Enables support of a FAT partitioned harddisks on 86x PCs: CONFIG_MSDOS_PARTITION
Читайте также:  Linux disable sleep mode

If the partition type detected by mount is VFAT then it will run the /usr/bin/mount.vfat script.

Writing to FAT32 as normal user

To write on a FAT32 partition, you must make a few changes to the fstab file.

The user option means that any user (even non-root) can mount and unmount the partition /dev/sdX . rw gives read-write access.

For example, if your FAT32 partition is on /dev/sda9 , and you wish to mount it to /mnt/fat32 , then you would use:

Now, any user can mount it with:

And unmount it with:

Note that FAT does not support Linux file permissions. Each file will also appear to be executable. You may want to use the showexec option to only mark Windows executables (com, exe, bat) as executable. See mount(8) for more options.

Detecting FAT type

If you need to know which type of FAT file system a partition uses, use the file command:

Alternatively you can use minfo from the mtools package:

Источник

Arch Linux

You are not logged in.

#1 2011-01-25 10:58:19

mount fat32 usb stick

I have usb stick with fat32. I am trying to mount it for read and write. But it mounts as read only.
I tried few commands:
sudo mount -o rw,noauto,async,user,umask=1000 /dev/sdb1 /mnt/usbstick (this command from archlinux wiki page)
sudo mount -t vfat -o rw,noauto,async,user,umask=1000 /dev/sdb1 /mnt/usbstick
sudo mount -t vfat /dev/sdb1 /mnt/usbstick

#2 2011-01-25 12:33:45

Re: mount fat32 usb stick

Try mounting after checking the filesystem on the drive

Be yourself, because you are all that you can be

#3 2011-01-25 14:29:03

Re: mount fat32 usb stick

Try mounting after checking the filesystem on the drive

Sorry I do not understand what do you mean.

#4 2011-01-25 15:02:19

Re: mount fat32 usb stick

With drive plugged in

Last edited by Mr Green (2011-01-25 15:03:05)

Mr Green

#5 2011-01-25 15:17:01

Re: mount fat32 usb stick

#6 2011-01-25 15:25:04

Re: mount fat32 usb stick

With drive plugged in

Yes of course it finds /dev/sdb1

And I am able to mount it. But I can only read it.

By the way if I do:

The owner of the files is root. I tried to change owner with sudo chown. but I get message that I do not have permission.

#7 2011-01-25 15:32:01

Re: mount fat32 usb stick

Ok can you write a file to the stick as root?

Mr Green

#8 2011-01-25 15:35:34

Re: mount fat32 usb stick

Ok can you write a file to the stick as root?

Yes. If I login as root I can write.

#9 2011-01-25 15:42:35

Re: mount fat32 usb stick

Ok one last thing to try, umount and remount somewhere you have access too like your home directory

create a folder usbdrive and then mount to that see if it makes any difference

Would suggest using pmount or udisk to make it easier to mount at cli, that is up to you

Another thing check you are a member of the correct groups for your user

Mr Green

#10 2011-01-25 15:43:53

Re: mount fat32 usb stick

There’s no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

#11 2011-01-25 15:45:32

Re: mount fat32 usb stick

Of course it will work, but without the command he used no one will ever know the why!

Mr Green

#12 2011-01-25 15:48:58

Re: mount fat32 usb stick

Of course it will work, but without the command he used no one will ever know the why!

ok, you lost me there

There’s no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

#13 2011-01-25 15:56:26

Re: mount fat32 usb stick

This does not work. I get «Operation not permitted» for every file.

#14 2011-01-25 16:00:35

Re: mount fat32 usb stick

Ok one last thing to try, umount and remount somewhere you have access too like your home directory

create a folder usbdrive and then mount to that see if it makes any difference

Would suggest using pmount or udisk to make it easier to mount at cli, that is up to you

Another thing check you are a member of the correct groups for your user

This also does not work.
I created usbdrive in my home directory. And I still have the same situation.

What about the user group? How to see what permissions my user group has?

Источник

Ubuntu Documentation

Ubuntu is capable of reading and writing files stored on Windows formatted partitions. These partitions are normally formatted with NTFS, but are sometimes formatted with FAT32. You will also see FAT16 on other devices.

Ubuntu will show files and folders in NTFS/FAT32 filesystems which are hidden in Windows. Consequently, important hidden system files in the Windows C:\ partition will show up if this is mounted. Since it is all-too-easy to accidentally modify or delete files which are essential for Windows, it is advisable to mount your Windows C:\ partition as seldom as possible, preferably not at all, or read-only by configuring /etc/fstab (see below). If you have data which you want to access regularly from both Windows and Ubuntu, it is better to create a separate data partition for this, formatted NTFS.

Whether you write to your Windows C:\ partition or a shared NTFS data partition, be aware that if you are using Windows 7, and Windows 7 is in a hibernated state when you write to the NTFS partition from Ubuntu, you will lose all your changes. This is because when Windows 7 is hibernated it writes the system state to a file stored on disk and restores from that file when the system is re-awakened, thus restoring the whole fileystem to a state before any changes made from Ubuntu. In Windows 7 you must avoid using hibernation. With Windows 8, the situation is more complex in that, by default, it uses a hybrid hibernation/shutdown when you shut the system down. Any changes made by Ubuntu will be lost when you reboot into Ubuntu.

Читайте также:  Можно ли прошить штатную магнитолу с операционной системы windows ce чери тигго 5

With both Windows 7 and Windows 8 (when installed to a legacy mbr partition table) there is usually a 100-200MB boot partition labelled «SYSTEM». Do not mount it — you do not need to. Similarly it is highly advisable to leave any recovery partitions unmounted.

Using the File Manager

For those using a desktop version of Ubuntu, or one of its offical derivatives, the easiest and quickest way of mounting NTFS or FAT32 partitions is from the file manager: Nautilus in Ubuntu, Thunar in Xubuntu, Dolphin in Kubuntu and PCManFM in Lubuntu. Simply look in the left pane of the file manager for the partition you wish to mount and click on it — it will be mounted and its contents will show up in the main pane. Partitions show with their labels if labelled, or their size if not.

Unless you require your Windows partition — or a NTFS/FAT32 partition for data shared with Windows — mounted every time you boot up for one of the reasons given below, mounting from the file manager in this way should suffice.

If you are using a Wubi version of Ubuntu and you wish to browse the host partition, you do not need to mount it — it is mounted already in the «host» folder. Click on «File System» in the left pane of the Nautilus file browser and then open the host folder which you will see in the main pane.

File System Differences

For a more in depth analysis, see LinuxFilesystemsExplained, but here are some basics:

  • Windows 7, Vista, XP, 2000, older NT systems, and Windows Server 2003 and 2008 are formatted with NTFS. In rare cases, OEM manufacturers have pre-installed Windows XP and Windows 2000 to FAT32 filesystems.
  • Older versions of Windows such as Windows ME, 98, and 95 are formatted with FAT32.
  • Flash drives, such as a USB thumb drive or a camera’s flash card are typically formatted as FAT16. Some Flash drives are formatted with Microsoft’s proprietary exFAT file system.

In Windows, you can check which filesystem your partition is formatted with by right-clicking the partition in Windows Explorer and selecting Properties. In Ubuntu, run from terminal:

The ntfs-3g driver is used in Linux-based systems to read from and write to NTFS partitions.

NTFS (New Technology File System) is a file system developed by Microsoft and used by Windows computers (Windows 2000 and later). Until 2007, Linux distros relied on the kernel ntfs driver which was read-only. The userspace ntfs-3g driver now allows Linux-based systems to read from and write to NTFS formatted partitions.

The ntfs-3g driver is pre-installed in all recent versions of Ubuntu and healthy NTFS devices should work out of the box without further configuration. In Ubuntu versions 11.10 and later the ntfs-3g package included the functionality previously provided by ntfsprogs. Trying to install ntfsprogs in 11.10 (and possibly in 12.04) will cause the package-manager to ask if you wish to remove ntfs-3g. Users who have installed ntfsprogs and failed to notice the message from the package manager have unintentionally uninstalled ntfs-3g, after which the system falls back to the read-only kernel ntfs driver. Loss of the ntfs-3g driver for similar reasons has also been reported when upgrading from 11.04 to 11.10. If you are experiencing inability to write to a NTFS formatted partition or device, check whether or not the ntfs-3g package is installed.

FAT32

The vfat driver is used in linux to read and write FAT32 and FAT16 partitions.

Configuring /etc/fstab

Preface

If you require one or more of your Windows partitions mounted automatically during bootup, it is necessary to add one line to the file /etc/fstab for each partition that is to be mounted. Some reasons for mounting partitions by means of /etc/fstab, rather than relying on the file manager, include:

  • Convenience.
  • Where more than one user account is in use during a session. Partitions mounted from one user account by means of the file manager are not accessible to the other account(s).
  • Where libraries have been set up in applications such as Banshee or Rhythmbox (for music) or Shotwell (for photos). If those libraries contain files on partitions mounted by means of the file manager, an error will occur in a subsequent session if the partition is not mounted first.

Where more advanced or special mount options are needed. Three working configurations for different needs are given below, but anything more advanced is beyond the scope of this wiki page. The NTFS-3G manual gives a list of mount options suitable for NTFS filesystems.

Automatic Configuration

Although there are a number of GUI applications available from the Ubuntu Software Centre, none of these can be recommended at the time of this writing, unfortunately. They are obsolete and unmaintained and can all cause problems. Two examples are ntfs-config and PySDM. (PySDM is no longer in the repository with effect from 12.10.) If you find a recommendation anywhere for either of these applications, it is likely to be an old one, and should not be followed. At this time it is advisable to configure /etc/fstab manually.

Manual Configuration

First, you need to find the device locations of the partition(s) you wish to mount. Open a terminal and run:

For illustration purposes, an example output from a computer setup with a Vista/Ubuntu dual-boot and shared NTFS data partition is shown here:

The first three partitions, all NTFS, are the ones that concern us here. There are no FAT32 partitions. In this instance, all three NTFS partitions have partition labels, which makes it easier to identify the purpose of each. If your blkid output does not include partition labels, this means that the partitions do not have labels and you will have to determine which partition you wish to mount by another means. Of the three NTFS partitions, we are going to configure /etc/fstab with only the third, the Data partition. Partition /dev/sda1 is the OEM manufacturer’s recovery partition and should be left unmounted, or as described below. Partition /dev/sda2 is the Windows C:\ partition and is best not included in /etc/fstab for the reasons described above, or mounted read-only — see below.

You will now need to create a mountpoint for each NTFS partition that you wish to mount by means of /etc/fstab. In our illustration we are going to add one entry only for /dev/sda3. From a terminal:

In this case we have created a mountpoint with the same name – Data – as the partition label. You may use (almost) any string you wish.

Before editing /etc/fstab directly, it is a good idea to make a backup. From a terminal:

Now open /etc/fstab in a text editor with root privileges. In Ubuntu:

In Xubuntu or Lubuntu:

For a general-purpose read-write mount, add this line to the end of /etc/fstab:

Replace the UUID with the one relevant for your partition as shown in your blkid output. “519CB82E5888AD0F” will not work for you.

Also, substitute your mountpoint for “/media/Data”. In case you have a blank space in the name of the mountpoint you want to use like «New Volume» instead of «Data» located in «/media» use «/media/New\040Volume». The space character is created by using «\040» in the fstab.

You will also need to change the “locale=en_US.utf8” option to one suitable for your location and language if you are not in the USA. You can determine your locale with this terminal command:

Or for a list of all locales available on your system:

Now save your edited /etc/fstab and close the text editor. The partition(s) you have configured will be mounted the next time you reboot, but to mount them now:

Two special cases

Sample /etc/fstab lines are suggested for two special cases.

Option 1 — for mounting read-only access. For example, this would be suitable for mounting your Windows C:\ partition if you need to access it. Modify the line below with your UUID and mountpoint:

Option 2 — to ensure that Ubuntu does not mount the partition and also disables graphical mounting from the file manager. For example, you may wish to ensure that recovery and system partitions are never inadvertently mounted and do not appear in the file manager. In this case you need to create a mountpoint in /mnt, not /media. Modify the line below with your UUID and mountpoint:

Note: with these mount options, the partition does not appear in the Devices list in the left pane of Nautilus (the Ubuntu file manager), but it still appears in Dolphin, the Kubuntu File Manager. Clicking on the partition in Dolphin causes the display of an error message. This solution is less elegant in Dolphin than with Nautilus, but the desired effect is achieved — the partition cannot be mounted.

If you need to revert to the original configuration:

Substitute your mountpoint in the second line.

FAT32 Partition

FAT32 partitions are mostly only found in older systems. If you are creating a partition to be used for data to be shared between Windows and Ubuntu, it is better to choose NTFS. Should you have a FAT32 partition which you need to mount using /etc/fstab, this will work to mount it read-write:

Replace with the UUID that blkid reveals for your partition, and adjust for your mountpoint. These mount options will make all files in the partition executable. If you have other needs, you will need to modify the options, but this is beyond the scope of this wiki page.

Other Resources

Footnote

This page has recently been subject to significant revision. If you have any comments about current content, or suggestions for further additions or edits, please head over to this Ubuntu forums discussion thread so that we can co-ordinate our efforts.

MountingWindowsPartitions (последним исправлял пользователь jeremiah-l-marks 2014-11-16 06:31:46)

The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details

Источник

Читайте также:  Какими возможностями обладает windows
Оцените статью