The ntfs partitions dev block sda can not be mounted error number is 18

[Решено] Не подключаются разделы с ntfs
Предисловие

Вот я уже почти полноценный пользователь Debian, осталось совсем чуть-чуть  :)
Данную проблему заметил сразу, но решил оставить на последок, но пока разбирался с другими вопросами поискивал решение, но не нашел)

Проблема

Не получается открыть разделы жесткого диска ( 1 с виндой и 2-й с файлами(ntfs))
При попытке доступа пишет:

Произошла ошибка при обращении к windows, ответ системы:
org.freedesktop.Hal.Device.Volume.PermessionDenied: Refusing to mount device /dev/sda1 for uid=1000.
Послесловие и благодарности

Надеюсь на вас и продолжаю искать сам! Заранее спасибо!

Debian 6 Squeeze / KDE 4 / ACER TravelMate 5320




Не помогло, вот мой файл:

Открыть содержимое (спойлер)

# /etc/fstab: static file system information.
#
# Use ‘blkid’ to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda3 during installation
UUID=b5c976ee-fda7-464e-a4c2-c9677bff620f /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda5 during installation
UUID=4f84cde8-224d-4f81-9451-49dd37194f30 /home           ext4    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=20753c40-d527-4fc2-886d-6f505f2f27f5 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sda1    /mnt/win    ntfs-3g    umask=0,user,locale=ru_RU.UTF-8    0    0
/dev/sda2    /mnt/win    ntfs-3g    umask=0,user,locale=ru_RU.UTF-8    0    0

[свернуть]

и при попытке зайти теперь пишет ошибку подлинее, копировать ее нельзя, поэтому опишу не полностью:

Произошла ошибка при обращении к windows, ответ системы: error opening /dev/sda1 <кракозябры> failed to mount /dev/sda1/ <кракозябры> please chek /dev/sda1 and the ntfs-3g binary permessions, and the mouting user ID. Ну и для остальной инфы ссылка на ntfs-3g.org

ЗЫ и да, мои разделы с нтфс сда1 и сда2

Debian 6 Squeeze / KDE 4 / ACER TravelMate 5320


Цитата: DruKot от 19 августа 2012, 12:24:07/dev/sda1    /mnt/win    ntfs-3g    umask=0,user,locale=ru_RU.UTF-8    0    0
/dev/sda2    /mnt/win    ntfs-3g    umask=0,user,locale=ru_RU.UTF-8    0    0

в один каталог оба раздела монтируете? лучше полностью скопировать содержимое окна терминала когда и как монтируете и что на это говорит ос. так будет более понятно)


удалил пока строчку с сда2, не помогло.
Монтирую я не через терминал, я так не умею, просто в дельфине тыкаю по разделу и получаю ошибки

Debian 6 Squeeze / KDE 4 / ACER TravelMate 5320


Цитата: DruKot от 19 августа 2012, 13:09:47
удалил пока строчку с сда2, не помогло.
Монтирую я не через терминал, я так не умею, просто в дельфине тыкаю по разделу и получаю ошибки

Тогда уберите соответствующие строки из fstab.


Так от туда и убрал, от куда еще я мог ее убрать?

Debian 6 Squeeze / KDE 4 / ACER TravelMate 5320


Для начала попробуйте в терминале выполнить такие команды (перед этим убедитесь, что разделы ntfs не смонтированы). Пусть вам нужно смонтировать sda2 в /mnt/win :

# mkdir /mnt/win
# mount -t ntfs-3g /dev/sda2 /mnt/win

И посмотрите, что вы получите.


Делая так смонтировался диск не прописаный в fstab, а прописаный выдал ошибку, удалил оба диска из фстаба и оба примонтировал, работают. Будут ли они работать после перезагрузки?


Сообщение объединено: 19 августа 2012, 14:54:45


Соврал, оба диска открывают диск с виндой почему то

Debian 6 Squeeze / KDE 4 / ACER TravelMate 5320


А вот теперь и пришел черед прочитать Wiki, и в дальнейшем более осторожно относиться к копипасту из интернета. http://wiki.debian.org/NTFS
Сделайте, как там указано, и все будет работать. Про man-ы молчу… :)

Да, еще.. Не забудьте монтировать каждый диск в разные директории.
И дополнять сообщение на форум, в данном случае с выводом команды

$ mount -l|grep /dev/

Хоть заметили ошибку в монтировании?  :)


Там все по английски  :( Я понимаю не знать английский и использовать дебиан могу только я, но все же….
А что с манами?
То, что в разные уже понял.
Так знать бы чем дополнять — дополнял бы..
$ mount -l|grep /dev/

Открыть содержимое (спойлер)

~$ mount -l|grep /dev/
/dev/sda3 on / type ext4 (rw,errors=remount-ro)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda5 on /home type ext4 (rw)

[свернуть]

Разумеется не заметил.
???

Debian 6 Squeeze / KDE 4 / ACER TravelMate 5320


В конце концов, попробуйте, как указано в Wiki. Просто у меня уже нигде давно нет файловых систем Windows.
Допустим, вам нужно смонтировать sda1 в /mnt/win1, и sda2 в /mnt/win2.
Тогда в fstab добавить строки:

/dev/sda1 /mnt/win1 ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0
/dev/sda2 /mnt/win2 ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0

Естественно, что директории /mnt/win1 и /mnt/win2 должны существовать.
С опциями, конечно, можно поэкспериментировать, но тогда нужно man-ы читать… самому.
Единственное, что могу сказать, что разработчиками ntfs-3g не рекомендуется использовать опцию locale. Для устранения возможных коллизий можете использовать опцию windows_names. Для начала попробуйте одну опцию — defaults.
Man на русском https://wiki.archlinux.org/index.php/NTFS-3G_%28%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9%29
Только пока, пока английский не изучите, не переходите на Arch.  :)  ;D


Заработало на дефолте)))
вот часть файла:

/dev/sda1    /mnt/win        ntfs-3g   defaults         0       0
/dev/sda2    /mnt/data       ntfs-3g   defaults         0       0

спасибо за ман))
пока даже не слышал про Arch, так что не волнуйтесь))

Debian 6 Squeeze / KDE 4 / ACER TravelMate 5320


Маленькое дополнение: будет более правильно приписать монтирование через UUID, чтобы потом не возникало внезапных проблем.
гуглотык  — например.
викитык — рекомендую (всё, что нужно; про Debian; по-русски)



0

1

$ sudo ntfs-3g /dev/sda4 /mnt/windows
Failed to read last sector (310668198): Недопустимый аргумент
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda4': Недопустимый аргумент
The device '/dev/sda4' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

И как я не использовал mount, ntfs-3g и прочее — везде упираюсь в это.

/dev/sda1       2048    616447    614400   300M Среда для восстановления Microso
/dev/sda2     616448    821247    204800   100M EFI
/dev/sda3     821248   1083391    262144   128M Зарезервированный раздел Microso
/dev/sda4    1083392 210798591 209715200   100G Microsoft basic data
/dev/sda5  210798592 273713151  62914560    30G Файловая система Linux
/dev/sda6  273713152 282101759   8388608     4G Linux своп
/dev/sda7  282101760 976773134 694671375 331,3G Файловая система Linux

Все вообще началось с того, что у меня сломалась windows после переразметки раздела Acronis и я поставил арч и EFI использовал тот, который юзался виндой и теперь я не могу войти в винду(хотя бы просто в консоль). bios (у меня uefi non csm) ее больше не видит(загрузчик похерился кароче).
Мне нужно

1. перетащить файлы с винды в линукс и затем обратно(то есть примонтировать)

2. переустановить винду(удалив все разделы /dev/sda1-4 кроме EFI ведь оттуда арч грузится) но не поломать arch с uefi, если можно просто так установить винду и все норм — то ок, просто я боюсь это тестить.(жалко 3 дня терять то).

Проблема с монтированием выше. Проблема с переустановкой винды в том, что я не могу найти инфу как это делать с linux UEFI на борту и что делать с dev/sda2?

извините конечно если я ошибся в mount команде и наверно нужно не NTFS использовать, у меня показывает Microsoft Basic Data(ввело в заблуждение) просто на Арче(то бишь делать ручками все это) я неделю сижу :)

  • Печать

Страницы: 1 [2] 3  Все   Вниз

Тема: Не монтируется ntfs раздел в Ubuntu 13.04  (Прочитано 45530 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
victor00000


Оффлайн
Yoooo

sudo mount /dev/sda /mnt -o offset=$[126035968*512]

The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount ‘/dev/loop0’: Операция не позволена
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the ‘ro’ mount option.


Оффлайн
victor00000

sudo umount -lf /mnt
sudo mount /dev/sda /mnt -o offset=$[126035968*512]
ls /mnt
?


Pilot6


Оффлайн
Yoooo

Pilot6,
да, действительно) спасибо за помощь) хоть сохранить всё смогу :)


Пользователь решил продолжить мысль 05 Октября 2013, 20:41:47:


victor00000,
и вам спасибо за помощь) отобразились в терминале папки

« Последнее редактирование: 05 Октября 2013, 20:43:19 от Yoooo »


Pilot6

Yoooo,
Если укажите вместо /mnt

/media/constantine/2A44B49344B4636D

то будет картинка. Но это фигня.


Оффлайн
dimmartyn

Это сообщение говорит о том, что винда, которая на НТФС разделе не была корректно выключена, а ушла в сон. Если у тебя осталась винда, загрузись в нее и корректно заверши работу, если винды не осталось можно сделать так:
sudo apt-get install ntfsprogs
sudo ntfsfix /dev/sda3

Спасибо, sudo ntfsfix /dev/sda3 (sda4) реально помогло.


Оффлайн
Dobermann27

Это сообщение говорит о том, что винда, которая на НТФС разделе не была корректно выключена, а ушла в сон. Если у тебя осталась винда, загрузись в нее и корректно заверши работу, если винды не осталось можно сделать так:
sudo apt-get install ntfsprogs
sudo ntfsfix /dev/sda3

sudo ntfsfix /dev/sda3
Помогло! Спасибо!


Оффлайн
etadex

А если так:
mount -t ntfs-3g -o remove_hiberfile /dev/sda3 /media/constantine/2A44B49344B4636DЕсли будет ругаться на отсутсвие пакета ntfs-3g, установи его.

Спасибо, ваше решение помогло)


Оффлайн
lunaa

sudo ntfsfix /dev/sda3
Сработало


Оффлайн
EfimovSergeiV

Столкнулся с подобной проблемой на днях, причиной ошибки была Windows 8.1 с её быстрым запуском.Отключил, проблема пропала.
Инструкция

« Последнее редактирование: 20 Мая 2016, 00:36:43 от EfimovSergeiV »


Оффлайн
slb

Столкнулся с подобной проблемой на днях, причиной ошибки была Windows 8.1 с её быстрым запуском.Отключил, проблема пропала.
Инструкция

Спасибо за ссылку.


Оффлайн
Tarik

А у меня эта проблема вылезла после того, как установил Касперского на Винду10.
Удалил Касперского, проблема осталась.
Убрал галочку с быстрой загрузки винды, не помогло.

Здесь вывод ошибки:

Только у меня не Ubuntu, а Минт 18, но это без разницы, вопрос по Винде.
Собственно, почему винда делает гибернацию и при чем здесь Касперский?

Может кто поможет.


Пользователь добавил сообщение 03 Октября 2016, 22:52:01:


Все. Проблема решилась. В терминал винды надо было прописать:

powercfg -h offПравда, как оно раньше работало до установки Касперского — загадка все равно.

« Последнее редактирование: 03 Октября 2016, 22:52:54 от Tarik »


Оффлайн
ne1ega1

Это сообщение говорит о том, что винда, которая на НТФС разделе не была корректно выключена, а ушла в сон. Если у тебя осталась винда, загрузись в нее и корректно заверши работу, если винды не осталось можно сделать так:
sudo apt-get install ntfsprogs
sudo ntfsfix /dev/sda3

Спасибо огромное!!! Помогло!


Оффлайн
chell1975

sudo ntfsfix /dev/sda3

Не помогло. вываливается с ошибкой.
root@DEXP-W35xSS-370SS:/home/chell1975# ntfsfix /dev/sdb2
Mounting volume… The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors…
Processing $MFT and $MFTMirr…
Reading $MFT… OK
Reading $MFTMirr… OK
Comparing $MFTMirr to $MFT… OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition… OK
Going to empty the journal ($LogFile)… OK
Failed to sync device /dev/sdb2: Input/output error
Failed to fsync device /dev/sdb2: Input/output error
Error reading bootsector: Input/output error
Failed to sync device /dev/sdb2: Input/output error
Remount failed: Input/output error
Есть какие-то еще варианты? В винду не грузится. Диск ssd a-data. Производитель сказал использовать родные утилиты, но они все под мастдай только…
P.S. вариант sudo mount -t ntfs remove_hiberfile … пробовал — ошибка…

« Последнее редактирование: 05 Апреля 2017, 23:06:45 от chell1975 »


  • Печать

Страницы: 1 [2] 3  Все   Вверх

In this article, we will show how to fix NTFS failed to mount errors such as “Failed to mount ‘/dev/sdax’: Input/output error, NTFS is either inconsistent, or there is a hardware fault, or it’s a SoftRAID/FakeRAID hardware”.

The following screenshot shows an example of an NTFS failed to mount error.

NTFS - Failed to mount ‘/dev/sdax’: Input/output error

NTFS – Failed to mount ‘/dev/sdax’: Input/output error

To fix this error, you can use ntfsfix, a tiny and useful utility that fixes some common NTFS problems. A ntfsfix is part of the ntfs-3g package (an open-source implementation of NTFS) and it repairs several fundamental NTFS inconsistencies, resets the NTFS journal file, and schedules an NTFS consistency check for the first boot into Windows.

To run it on our computer, you need to install the ntfs-3g package as follows.

----------- On Debian, Ubuntu & Mint ----------- 
$ sudo apt-get install ntfs-3g

----------- On RHEL, CentOS & Fedora -----------
$ sudo yum install epel-release
$ sudo yum install ntfs-3g

Once you have the ntfs-3g package installed, run the ntfsfix command, provide the NTFS partition that has issues as an argument as shown.

$ sudo ntfsfix /dev/sda5

Fix NTFS Failed to Mount Error

Fix NTFS Failed to Mount Error

To perform a dry-run where ntfsfix doesn’t write anything but only shows what would have been done, use the -n or --no-action option.

$ sudo ntfsfix -n /dev/sda5

A ntfsfix has another useful switch -b or --clear-bad-sectors for clearing the list of bad sectors. This feature is particularly useful after cloning an old disk with bad sectors to a new disk.

$ sudo ntfsfix -b /dev/sda5

Also, ntfsfix supports clearing the volume dirty flag if the volume can be fixed and mounted. You can invoke this feature bypassing the -d option as shown.

$ sudo ntfsfix -d /dev/sda5

Note: ntfsfix can only repair some NTFS partition errors. If it fails, chkdsk will probably succeed. If you have windows installed, you can also load Windows and run its disk checking program, chkdsk.

A nftsfix is a useful tool for fixing some common NTFS problems. For any questions or comments, reach us via the feedback form below.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

mntusr

Level 3
Level 3
Posts: 149
Joined: Tue Jul 24, 2018 1:34 am

[SOLVED] Cannot mount one partition after Linux Mint upgrade

Hi,
I just upgraded Linux Mint Cinnamon to 20.2 (from 20.04) using update manager. The update was complete successfully.
I have Windows 7 also on this SSD.
There is a second hard disk.

One of the partitions on that HDD shows this error (when trying to mount) after the upgrade (other partitions can be mounted):

Code: Select all

"Error mounting /dev/sda1 at media/***/tsb_Work. Unknown error when mounting /dev/sda1 (udisks-error-quark,0)"

Output of sudo blkid

Code: Select all

/dev/sda1: LABEL="tsb_Work" UUID="D8CCB3B1CCB38870" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="c060433e-b9d5-423a-b60e-bbdcb8bfa615"
/dev/sda2: LABEL="tsb_Resources" UUID="9A42BAF742BAD76B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e8532e24-62ba-43eb-82e8-ff9c6057a96f"
/dev/sda3: LABEL="tsb_Media" UUID="A826C4C526C4962A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8c5f714b-e198-4926-bfd6-5d98477ee914"
/dev/sda4: LABEL="New Volume" UUID="D6ACC9E2ACC9BCED" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2685ff1c-5368-4362-9ae2-d651c6aa2432"
/dev/sdb1: LABEL="System Reserved" UUID="4E1657C81657B027" TYPE="ntfs" PARTUUID="3b98c9a5-01"
/dev/sdb2: UUID="488A70748A705FFC" TYPE="ntfs" PARTUUID="3b98c9a5-02"
/dev/sdb3: UUID="fd182fb1-d570-41af-a934-5a1037100870" TYPE="ext4" PARTUUID="3b98c9a5-03"
/dev/sdb5: UUID="a540175a-1c41-4918-9536-693103c3ec11" TYPE="swap" PARTUUID="3b98c9a5-05"
/dev/sdb6: UUID="23428191-b3bf-4fc1-ba51-718c0ce4fa73" TYPE="ext4" PARTUUID="3b98c9a5-06"

Saw few threads here with this error, but not sure whether the fix applies to my condition.
Any help appreciated. :)
Thanks a lot.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

User avatar

ricardogroetaers

Level 6
Level 6
Posts: 1247
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: Cannot mount one partition after Linux Mint upgrade

Post

by ricardogroetaers » Sun Aug 01, 2021 7:36 pm

mntusr wrote: ↑

Sun Aug 01, 2021 9:19 am


I have Windows 7 also on this SSD.

One of the partitions on that HDD shows this error (when trying to mount) after the upgrade (other partitions can be mounted):

Code: Select all

"Error mounting /dev/sda1 at media/***/tsb_Work. Unknown error when mounting /dev/sda1 (udisks-error-quark,0)"

Output of sudo blkid

Code: Select all

/dev/sda1: LABEL="tsb_Work" UUID="D8CCB3B1CCB38870" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="c060433e-b9d5-423a-b60e-bbdcb8bfa615"

Partition with ntfs file system, presumably corrupted.
Identify in Windows the drive letter that represents this partition.
Suppose it is «d:».
Open the Windows Command Prompt and type:
chkdsk d: /v/f/x
Replace d: by the correct drive letter.

Observation:
I did not understand the meaning of *** on the path «media/***/tsb_work».

mntusr

Level 3
Level 3
Posts: 149
Joined: Tue Jul 24, 2018 1:34 am

Re: Cannot mount one partition after Linux Mint upgrade

Post

by mntusr » Sun Aug 01, 2021 10:23 pm

Did this

Code: Select all

Identify in Windows the drive letter that represents this partition.
Suppose it is "d:".
Open the Windows Command Prompt and type:
chkdsk d: /v/f/x
Replace d: by the correct drive letter.

and I can mount the drive again.
Thanks a lot @ricardogroetaers.

GParted forum → GParted → [SOLVED] Error mounting a NTFS partition, yet readable.

Pages 1

You must login or register to post a reply

1 2012-12-12 13:16:41 (edited by Bodena 2012-12-13 02:09:53)

  • Bodena
  • New member
  • Offline
  • Registered: 2012-12-12
  • Posts: 2

Topic: [SOLVED] Error mounting a NTFS partition, yet readable.

Hi, I need some help for this issue, I really apreciate it, although I think maybe this is not the correct forum because is not a derivated GParted problem, but I’d like someone can point me in the right way.

So my problem is using ntfs-3g after install it, for be able to write, before that I could to mount the external disk (a 2TB WD Elements) in readable mode. Now, if I uninstall the package I could mount the disk again, and all this time I have no problem plugin it in my Windows XP PC, detects it without problems.

I have look Tuxera forums, superuser, and one solution is reformat and change partitions, ok but I have not space for a backup, but another solution I more like is changing the partition table, because the error I have is:

sudo mount /media/
Failed to read last sector (3907027119): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,
   or it was not setup correctly (e.g. by not using mdadm —build …),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount ‘/dev/sda1’: Invalid argument
The device ‘/dev/sda1’ doesn’t seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

And my disk is very simple, one partition:

sudo fdisk -lu /dev/sda

Disk /dev/sda: 2000.4 GB, 2000396746752 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907024896 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002de0f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048  3907029167  1953513560    7  HPFS/NTFS/exFAT

Looks to me like a volume/device limits incosistency. I have read solutions for fixing extended partition size with sfdisk, and others using dd for to write the table after a bad ntfs shrink, but because my disk just comes preformated like this I don’t know if these solutions are applicables to me.

Any advices? (I hope my english can be understable).

2 Reply by gedakc 2012-12-12 18:50:51

  • gedakc
  • Developer
  • Offline
  • Registered: 2007-11-30
  • Posts: 4,559

Re: [SOLVED] Error mounting a NTFS partition, yet readable.

I think you have certainly discovered a problem with the partitioning of this disk.
How can the end of the partition be beyond the end of the physical disk drive?
3,907,024,896 total sectors
3,907,029,167 end sector of first partition

Note that disk sectors begin numbering at zero, so the last sector is the total sectors minus one sector.

You can use a tool such as sfdisk to fix this problem.

The steps needed are as follows:

1)  Make a backup of all your data.  This is important in case something goes wrong.

2)  Make an editable file copy of the partition layout.

sudo sfdisk -d /dev/sda > backup-sda.txt

3)  Edit the backup-sda.txt file so that the end of the partition will fit within the total sectors of the disk device.

sudo leafpad backup-sda.txt

4)  Write the new partition layout to the disk device.

sudo sfdisk /dev/sda < backup-sda.txt

3 Reply by Bodena 2012-12-13 02:02:03 (edited by Bodena 2012-12-13 02:13:01)

  • Bodena
  • New member
  • Offline
  • Registered: 2012-12-12
  • Posts: 2

Re: [SOLVED] Error mounting a NTFS partition, yet readable.

I would like to say that it works like a charm but, well, it works like a first step, this is what happened:

I used sfdisk to change the size of the partition to 3907022848 with this result:

sudo sfdisk /dev/sda < sda-mod.txt
Checking that no-one is using this disk right now …
OK

Disk /dev/sda: 243201 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1          0+ 243201- 243201- 1953511423+   7  HPFS/NTFS/exFAT
/dev/sda2          0       —       0          0    0  Empty
/dev/sda3          0       —       0          0    0  Empty
/dev/sda4          0       —       0          0    0  Empty
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sda1          2048 3907024895 3907022848   7  HPFS/NTFS/exFAT
/dev/sda2             0         —          0   0  Empty
/dev/sda3             0         —          0   0  Empty
/dev/sda4             0         —          0   0  Empty
Warning: partition 1 does not end at a cylinder boundary
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table …

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

sudo fdisk -l

Disk /dev/sda: 2000.4 GB, 2000396746752 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907024896 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002de0f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048  3907024895  1953511424    7  HPFS/NTFS/exFAT

Okey, it looks fine, inside the boundaries, I thought, but…

sudo mount /dev/sda1 /media/
Failed to read last sector (3907027119): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,
   or it was not setup correctly (e.g. by not using mdadm —build …),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount ‘/dev/sda1’: Invalid argument
The device ‘/dev/sda1’ doesn’t seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Mmmh, same error and nothing happened? Now is when I shutdown, I take the disk and connect it to the Windows PC, double click on the unit and then, prompt me to format the disk!, I feel a shiver and try keep calm. I try with chkdsk but warning me that can not work with RAW data…

Uff, so I return to Linux and use one last thing:

sudo ntfsfix /dev/sda1
Mounting volume… Failed to read last sector (3907027119): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,
   or it was not setup correctly (e.g. by not using mdadm —build …),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
FAILED
Attempting to correct errors… Failed to read last sector (3907027119): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,
   or it was not setup correctly (e.g. by not using mdadm —build …),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
FAILED
Failed to startup volume: Invalid argument
Failed to read last sector (3907027119): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,
   or it was not setup correctly (e.g. by not using mdadm —build …),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Trying the alternate boot sector
The alternate bootsector is usable
Set sector count to 3907022847 instead of 3907027119
Rewriting the bootsector
The boot sector has been rewritten

Processing $MFT and $MFTMirr…
Reading $MFT… OK
Reading $MFTMirr… OK
Comparing $MFTMirr to $MFT… OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition… OK
Going to empty the journal ($LogFile)… OK
Checking the alternate boot sector… FIXED
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.

and guess what? It works! This is just I wanted, it served like the second step. Now I can mount it in Read/Write mode, and data remains in, it’s fantastic.

Thanks for all.
Cheers, Victor.

4 Reply by gedakc 2012-12-13 19:35:54

  • gedakc
  • Developer
  • Offline
  • Registered: 2007-11-30
  • Posts: 4,559

Re: [SOLVED] Error mounting a NTFS partition, yet readable.

Thank you Victor for reporting back with how you resolved the problem.

Also by editing the initial post and prefixing SOLVED in front of the title, you likely will help others searching for answers to similar problems.  :-)

Pages 1

You must login or register to post a reply

GParted forum → GParted → [SOLVED] Error mounting a NTFS partition, yet readable.

Понравилась статья? Поделить с друзьями:
  • The name or description contains inappropriate text как исправить
  • The multi part identifier could not be bound ошибка sql
  • The mss dll file is installed in the windows or windows system directory как исправить
  • The movies черные персонажи как исправить
  • The movie database python ошибка