View previous topic :: View next topic |
Author |
Message |
telekroc n00b

Joined: 04 Mar 2005 Posts: 14 Location: no
|
Posted: Sat Jan 12, 2008 12:11 pm Post subject: The SATA partitions can not be mounted |
|
|
I have a box with a SATA and two IDE hard disks. Windows xp, gentoo (kernel version is 2.6.16-gentoo-r7) and new installed gentoo(kernel version is 2.6.23-gentoo-r3) were installed into /dev/sda, /dev/hda, /dev/hdc, respectively. In the 'old gentoo' system, all the partitions both on SATA and IDE disks can be mounted, including NTFS, ext3, ext2 and reiserfs file systems. When I was in the 'new gentoo' OS, however, only the system partitions (/, /boot, /home) and the 'old gentoo' linux partitions can be mounted, and all of the partitions with NTFS can not be mount (both on SATA and IDE disc).
The following are partition tables of in these discs:
Code: |
# fdisk -l
Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 7 56196 83 Linux
/dev/hda2 8 616 4891792+ 83 Linux
/dev/hda3 617 982 2939895 83 Linux
/dev/hda4 983 2434 11663190 5 Extended
/dev/hda5 983 1105 987966 83 Linux
/dev/hda6 1106 1349 1959898+ 83 Linux
/dev/hda7 1350 2079 5863693+ 83 Linux
/dev/hda8 2080 2434 2851506 83 Linux
Disk /dev/hdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 7 56196 83 Linux
/dev/hdc2 8 981 7823655 83 Linux
/dev/hdc3 982 3535 20515005 7 HPFS/NTFS
/dev/hdc4 3536 4865 10683225 5 Extended
/dev/hdc5 3536 3658 987966 83 Linux
/dev/hdc6 3659 4865 9695196 83 Linux
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1566 12578863+ 7 HPFS/NTFS
/dev/sda2 2612 4569 15727635 7 HPFS/NTFS
/dev/sda3 4570 9729 41447700 7 HPFS/NTFS
/dev/sda4 1567 2611 8393962+ 7 HPFS/NTFS
Partition table entries are not in disk order
|
Especially, there have some error information about SATA appeared during system boot:
Code: |
sata_nv 0000:00:07.0: version 3.5
ACPI: PCI Interrupt Link [APSI] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:07.0[A] -> Link [APSI] -> GSI 22 (level, low) -> IRQ 22
sata_nv 0000:00:07.0: Using ADMA mode
PCI: Setting latency timer of device 0000:00:07.0 to 64
scsi0 : sata_nv
scsi1 : sata_nv
ata1: SATA max UDMA/133 cmd 0xffffc20000018480 ctl 0xffffc200000184a0 bmdma 0x000000000001d800 irq 22
ata2: SATA max UDMA/133 cmd 0xffffc20000018580 ctl 0xffffc200000185a0 bmdma 0x000000000001d808 irq 22
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-6: ST380011AS, 3.46, max UDMA/133
ata1.00: 156301488 sectors, multi 1: LBA NCQ (depth 31/32)
ata1.00: configured for UDMA/133
ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access ATA ST380011AS 3.46 PQ: 0 ANSI: 5
ata1: bounce limit 0xFFFFFFFFFFFFFFFF, segment boundary 0xFFFFFFFF, hw segs 61
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda:<3>ata1: failed to read log page 10h (errno=-5)
ata1.00: exception Emask 0x1 SAct 0x1 SErr 0x0 action 0x0
ata1.00: CPB resp_flags 0x11: , CMD error
ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
res 51/04:00:00:00:00/04:00:00:00:00/40 Emask 0x1 (device error)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1: failed to read log page 10h (errno=-5)
ata1.00: exception Emask 0x1 SAct 0x1 SErr 0x0 action 0x0
ata1.00: CPB resp_flags 0x11: , CMD error
ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
res 51/04:00:00:00:00/04:00:00:00:00/40 Emask 0x1 (device error)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1: failed to read log page 10h (errno=-5)
ata1.00: exception Emask 0x1 SAct 0x1 SErr 0x0 action 0x0
ata1.00: CPB resp_flags 0x11: , CMD error
ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
res 51/04:00:00:00:00/04:00:00:00:00/40 Emask 0x1 (device error)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1: failed to read log page 10h (errno=-5)
ata1.00: NCQ disabled due to excessive errors
ata1.00: exception Emask 0x1 SAct 0x1 SErr 0x0 action 0x0
ata1.00: CPB resp_flags 0x11: , CMD error
ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
res 51/04:00:00:00:00/04:00:00:00:00/40 Emask 0x1 (device error)
ata1.00: configured for UDMA/133
ata1: EH complete
sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
ACPI: PCI Interrupt Link [APSJ] enabled at IRQ 21
ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [APSJ] -> GSI 21 (level, low) -> IRQ 21
sata_nv 0000:00:08.0: Using ADMA mode
PCI: Setting latency timer of device 0000:00:08.0 to 64
scsi2 : sata_nv
scsi3 : sata_nv
ata3: SATA max UDMA/133 cmd 0xffffc2000001a480 ctl 0xffffc2000001a4a0 bmdma 0x000000000001c400 irq 21
ata4: SATA max UDMA/133 cmd 0xffffc2000001a580 ctl 0xffffc2000001a5a0 bmdma 0x000000000001c408 irq 21
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
|
I have compiled the NTFS and SATA supports into the new kernel. The kernel options of SATA support followed this link: http://www.gentoo-wiki.com/HARDWARE_SATA
Code: |
Device Drivers --->
Serial ATA (prod) and Parallel ATA (experimental) drivers --->
<*> NVIDIA SATA support
========================================
Device Drivers --->
SCSI device support --->
<*> SCSI device support
<*> SCSI disk support
========================================
File systems --->
DOS/FAT/NT Filesystems --->
<*> NTFS file system support
|
Here, I paste the PCI information also:
Code: |
# lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
|
I have googled this problem and tried many methods, unfortunately, the problem still exists. I do have no idea and post here. Thank you for any idea.
--Penn _________________ for linux |
|
Back to top |
|
 |
jakeluck Tux's lil' helper

Joined: 01 Dec 2003 Posts: 84
|
Posted: Sun Jan 13, 2008 7:06 am Post subject: |
|
|
i am running into similar problem with the kernel revision as you have described, in my case
it is the dvd drive,
https://forums.gentoo.org/viewtopic-t-644915.html
i found a number of posting on the linux kernel mailing list, it sounds the
new nv_sata is really flaky, let me know when you came up with a solution. |
|
Back to top |
|
 |
telekroc n00b

Joined: 04 Mar 2005 Posts: 14 Location: no
|
Posted: Mon Jan 14, 2008 2:51 pm Post subject: |
|
|
jakeluck wrote: | i am running into similar problem with the kernel revision as you have described, in my case
it is the dvd drive,
https://forums.gentoo.org/viewtopic-t-644915.html
i found a number of posting on the linux kernel mailing list, it sounds the
new nv_sata is really flaky, let me know when you came up with a solution. |
Have you tried this hyperlink: http://www.gentoo-wiki.com/HARDWARE_SATA ?
It maybe work with dvd drive. I have no dvd or cd drive , thus I havn't try it. Hope it helps, good luck
By the way, if I got some good news, I would tell you  _________________ for linux |
|
Back to top |
|
 |
jakeluck Tux's lil' helper

Joined: 01 Dec 2003 Posts: 84
|
Posted: Mon Jan 14, 2008 6:02 pm Post subject: |
|
|
teleroc,
yes, i tried the wiki-HARDWRE-SATA suggestions,
is your /, /boot, /home on the sata and the rest on the pata because i followed the sugggestion and disabled the entire IDE branch, and only use the SATA(prod) PATA(experiemental) libata drivers. now all the hdX also became sdX, after some renaming things seems to work, check your dmesg to make sure you are mounting the correct devices. my DVDRW drive however, still appears as a read-only drom. |
|
Back to top |
|
 |
telekroc n00b

Joined: 04 Mar 2005 Posts: 14 Location: no
|
Posted: Tue Jan 15, 2008 9:00 am Post subject: |
|
|
Hi, jakeluck,
The /, /boot, /home are on the /dev/hdc IDE disc. when the IDE branch was disabled (i. e. only the SATA(prod) PATA(experiemental) libata drivers were compiled into the kernel), it caused kernel panic, and the system cannot boot. As I mentioned above, the partitions with NTFS both on SATA and IDE HDs can not be mounted, that is to say when the SATA disc is removed, the partition with NTFS (/dev/hdc3) can not be mounted also, which maybe not only ascribed to libata driver, but also to the NTFS support. _________________ for linux |
|
Back to top |
|
 |
jakeluck Tux's lil' helper

Joined: 01 Dec 2003 Posts: 84
|
Posted: Tue Jan 15, 2008 5:02 pm Post subject: |
|
|
right, with CONFIG_IDE disabled and using the new libata SATA/PATA driver, all your devices(including IDE drives) becomes /dev/sdX, so you will need to change the root flag in grub and rename some of your entries in fstab for the system to boot correctly, what's your hardware? Try with what you described before using only 1 PATA(/ boot,/home) and 1 SATA drive and look at the dmesg to make sure you are mounting with the correct device, also show us your lspci |grep IDE |
|
Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Tue Jan 15, 2008 5:10 pm Post subject: |
|
|
telekroc,
if you have CONFIG_IDE enabled on the 2.6.23 kernel, do you get the same output from fdisk -l? I would expect the partitions on the SATA disk to be renamed to /dev/hdXY. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
 |
telekroc n00b

Joined: 04 Mar 2005 Posts: 14 Location: no
|
Posted: Wed Jan 16, 2008 12:56 pm Post subject: |
|
|
jakeluck wrote: | right, with CONFIG_IDE disabled and using the new libata SATA/PATA driver, all your devices(including IDE drives) becomes /dev/sdX, so you will need to change the root flag in grub and rename some of your entries in fstab for the system to boot correctly, what's your hardware? Try with what you described before using only 1 PATA(/ boot,/home) and 1 SATA drive and look at the dmesg to make sure you are mounting with the correct device, also show us your lspci |grep IDE |
Yes, you are right, the IDE drives became /dev/sdb and /dev/sdc, respectively, and therefore the partitions both on IDE and SATA discs can be mounted .
Here are the partition tables:
Code: |
# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00dd00dd
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1566 12578863+ 7 HPFS/NTFS
/dev/sda2 2612 4569 15727635 7 HPFS/NTFS
/dev/sda3 4570 9729 41447700 7 HPFS/NTFS
/dev/sda4 1567 2611 8393962+ 7 HPFS/NTFS
Partition table entries are not in disk order
Disk /dev/sdb: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeabceabc
Device Boot Start End Blocks Id System
/dev/sdb1 1 7 56196 83 Linux
/dev/sdb2 8 616 4891792+ 83 Linux
/dev/sdb3 617 982 2939895 83 Linux
/dev/sdb4 983 2434 11663190 5 Extended
/dev/sdb5 983 1105 987966 83 Linux
/dev/sdb6 1106 1349 1959898+ 83 Linux
/dev/sdb7 1350 2079 5863693+ 83 Linux
/dev/sdb8 2080 2434 2851506 83 Linux
Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe595e595
Device Boot Start End Blocks Id System
/dev/sdc1 1 7 56196 83 Linux
/dev/sdc2 8 981 7823655 83 Linux
/dev/sdc3 982 3535 20515005 7 HPFS/NTFS
/dev/sdc4 3536 4865 10683225 5 Extended
/dev/sdc5 3536 3658 987966 83 Linux
/dev/sdc6 3659 4865 9695196 83 Linux
|
Thank you very much!  _________________ for linux |
|
Back to top |
|
 |
telekroc n00b

Joined: 04 Mar 2005 Posts: 14 Location: no
|
Posted: Wed Jan 16, 2008 1:02 pm Post subject: |
|
|
jmbsvicetto wrote: | telekroc,
if you have CONFIG_IDE enabled on the 2.6.23 kernel, do you get the same output from fdisk -l? I would expect the partitions on the SATA disk to be renamed to /dev/hdXY. |
I had pasted the partitaion tables information above, Actually, the partitions on the SATA disk always are /dev/sdaX.
Thank you for your care. _________________ for linux |
|
Back to top |
|
 |
jakeluck Tux's lil' helper

Joined: 01 Dec 2003 Posts: 84
|
Posted: Wed Jan 16, 2008 6:15 pm Post subject: |
|
|
you are welcome, teleroc, now I hope someone will have an answer to get my dvdrw from 0x back to 40x again. have a good day. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|