[SOLVED] Can't mount ntfs partition after recompiling the kernel
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't mount ntfs partition after recompiling the kernel
I use Slackware 14.0 with native kernel. Then I compiled and installed the new one: 3.7.0. But after recompiling, one of NTFS partitions has disappeared:
/dev/sdc1
While 2 other NTFS partitions are visible and mounted correctly:
/dev/sda1
/dev/sdb1
When loading the old kernel, the partition is visible and mounted. So, I did something wrong with the kernel. But I included NTFS support, otherwise 2 other partition will be invisible.
That is a bit odd, as it indicates a problem with parsing the partition table.
If /dev/sdc has a GPT partition table or has been converted to a "Dynamic Disc" in Windows, things like this can happen. However, both these partitioning schemes always contain at least one regular MBR partition, so I would expect to see /dev/sdc1 anyway.
What's the output of fdisk -l /dev/sdc when you're running the new kernel?
[ 1.394092] sd 3:0:1:0: [sdc] CDB:
[ 1.394633] end_request: I/O error, dev sdc, sector 0
[ 1.394703] Buffer I/O error on device sdc, logical block 0
[ 1.567532] sd 3:0:1:0: [sdc]
[ 1.567665] sd 3:0:1:0: [sdc]
[ 1.568897] sd 3:0:1:0: [sdc]
[ 1.569077] sd 3:0:1:0: [sdc] CDB:
[ 1.569616] end_request: I/O error, dev sdc, sector 0
[ 1.569685] Buffer I/O error on device sdc, logical block 0
[ 1.578837] Dev sdc: unable to read RDB block 0 <-- ?
[ 1.578962] sdc: unable to read partition table
[ 1.579612] sdc: detected capacity change from 0 to 500107862016
[ 1.580043] sdc: detected capacity change from 0 to 500107862016
[ 1.580375] sd 3:0:1:0: [sdc] Attached SCSI disk
How to restore the partition table?
You say you can still access the drive if you reboot and select the older kernel, right? That means there's nothing wrong with the drive and any attempts to "repair" the partition table is likely to cause data loss.
This could be a problem with the SATA controller driver. Could you post the output of lspci -v?
RDB stands for either Receive Data Buffer or Rigid Disk Block. It may be assuming it is an Amiga disk before continuing trying to check for an MBR on the disk.
However IO errors could indicate a flakey drive. Boot up with the old kernel and check the messages again.
NTFS is not a good choice for Linux. If you are not dual-booting or using an external drive and sharing with a Windows machine, then back up the files and restore to a Native linux file system. The ntfs repair tool only fixes simple errors and marks the drive as needing checking when you boot to windows.
This could be a problem with the SATA controller driver. Could you post the output of lspci -v?
From the long list of pci devices I selected the disc controller. The second controller is missing in the list.
Code:
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 IDE Controller (prog-if 80 [Master])
Subsystem: Elitegroup Computer Systems Device 1815
Flags: bus medium devsel, latency 128, IRQ 11
[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
I/O ports at 4000 [size=16]
Capabilities: [58] Power Management version 2
Kernel driver in use: pata_sis
Quote:
Originally Posted by jschiwal
NTFS is not a good choice for Linux. If you are not dual-booting or using an external drive and sharing with a Windows machine, then back up the files and restore to a Native linux file system.
I have dual boot, under Windows this partition works fine. Also it contains very important information. And you said, it may start to corrupt. How to check the drive health? I'd better make a backup.
Quote:
Originally Posted by jschiwal
Boot up with the old kernel and check the messages again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.