Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Are there any disk-check tools on the livecd?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 11:42 am    Post subject: Are there any disk-check tools on the livecd? Reply with quote

My boot/root hard drive died, so I quickly ordered a replacement 1TB drive that I received yesterday. I installed it last night, and noticed that it took a long time to mkfs my 300GB root partition. Now, I'm trying to install gentoo again, and it seems like file functions are going very slowly. For instance, it had been un-tarring the latest portage snapshot for about 10 minutes now. I'm concerned there are problems with my hard drive. There are no notifications in /var/log/messages

Are there any tools on the livecd I can use to check the hard drive? I've seen the sector check, but it appears it would take 3 days to check this drive. Is there a faster test of some sort I can use?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Sat Aug 18, 2012 12:19 pm    Post subject: Reply with quote

fuzzybee,

I suspect that your partition alighment is wrong. Your 1Tb drive probably has 4kb phsyical sectors. Its very important, for disk access speed, that your partitions are aligned on 4kb boundaries.
The drive will fake 512b blocks by doing read/modify/writes but this is very slow. Factors of 30x have been reported.

Switch fdisk to display sectors and post your partition layout. All partition start sectors must be an interger multiple of 8, so the old default of 63 fails the alignment check.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 12:25 pm    Post subject: Reply with quote

Thanks for the response. Here's what I have:

Code:
livecd gentoo # fdisk -l -u=sectors /dev/sdc

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x47b8944d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048       67583       32768   83  Linux
/dev/sdc2           67584     2164735     1048576   82  Linux swap / Solaris
/dev/sdc3         2164736   631310335   314572800   83  Linux
/dev/sdc4       631310336  1953525167   661107416   83  Linux

Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Sat Aug 18, 2012 12:44 pm    Post subject: Reply with quote

fuzzybee,

Thats all good. Its not an alignment problem.

The next thing to do is to poke at the drive with smartmontools but thats not on the Gentoo minimal CD.
Your lspci output may be interesting too.
Your dmesg output may show something.

The minimal liveCD has wgetpaste, so outside of the chroot, do
Code:
dmesg | wgetpaste
and post the URL you get.
You can do the same thing with lspci too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 12:50 pm    Post subject: Reply with quote

Darn - I was hoping it was simple.

I haven't gotten to the chroot yet, so:[/code]

Hmm - I'm getting an error on wgetpaste:

Code:
dmesg | wgetpaste --verbose
Apparently nothing was received. Perhaps the connection failed.
--2012-08-18 12:07:25--  http://paste.pocoo.org/
Resolving paste.pocoo.org... 188.40.116.183
Connecting to paste.pocoo.org|188.40.116.183|:80... connected.
HTTP request sent, awaiting response... 410 Gone
2012-08-18 12:07:26 ERROR 410: Gone.
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 1:00 pm    Post subject: Reply with quote

Here's what I'm getting in dmesg:

Code:
INFO: task mkfs.ext3:21097 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
mkfs.ext3       D ffffffff81603bd0     0 21097  21070 0x00000000
 ffff880132694820 0000000000000086 ffffea0000000000 ffff8801324d26a0
 0000000000011b40 ffff8801294cffd8 ffff8801294cffd8 0000000000011b40
 ffff880132694820 0000000000011b40 0000000000011b40 ffff8801294ce000
Call Trace:
 [<ffffffff81247041>] ? kobject_get+0x12/0x17
 [<ffffffff812ea0d8>] ? scsi_request_fn+0x36b/0x44e
 [<ffffffff8124a833>] ? rb_insert_color+0xb1/0xd9
 [<ffffffff8123b085>] ? queue_unplugged.clone.39+0x1c/0x27
 [<ffffffff813ff47d>] ? io_schedule+0x4e/0x63
 [<ffffffff8123a9b9>] ? get_request_wait+0xc0/0x12a
 [<ffffffff8104d4c4>] ? wake_up_bit+0x23/0x23
 [<ffffffff8123bb45>] ? blk_queue_bio+0x184/0x27b
 [<ffffffff81239a94>] ? generic_make_request+0x8c/0xcb
 [<ffffffff81239b86>] ? submit_bio+0xb3/0xbc
 [<ffffffff810b9b81>] ? submit_bh+0xdb/0xff
 [<ffffffff810bbb79>] ? __block_write_full_page+0x1f3/0x2dc
 [<ffffffff810bb499>] ? end_buffer_async_read+0x100/0x100
 [<ffffffff810be570>] ? I_BDEV+0x8/0x8
 [<ffffffff81075b9a>] ? __writepage+0xa/0x21
 [<ffffffff81076391>] ? write_cache_pages+0x20f/0x344
 [<ffffffff81075b90>] ? set_page_dirty+0x67/0x67
 [<ffffffff81076504>] ? generic_writepages+0x3e/0x55
 [<ffffffff810705f7>] ? __filemap_fdatawrite_range+0x4b/0x50
 [<ffffffff81070623>] ? filemap_write_and_wait_range+0x27/0x52
 [<ffffffff810bf2b1>] ? blkdev_fsync+0x15/0x3d
 [<ffffffff810b873a>] ? do_fsync+0x27/0x3d
 [<ffffffff810b895b>] ? sys_fsync+0xb/0x12
 [<ffffffff81401552>] ? system_call_fastpath+0x16/0x1b
INFO: task mkfs.ext3:21097 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
mkfs.ext3       D ffffffff81603bd0     0 21097  21070 0x00000000
 ffff880132694820 0000000000000086 ffffea0000000000 ffff8801324d26a0
 0000000000011b40 ffff8801294cffd8 ffff8801294cffd8 0000000000011b40
 ffff880132694820 0000000000011b40 0000000000011b40 ffff8801294ce000
Call Trace:
 [<ffffffff81247041>] ? kobject_get+0x12/0x17
 [<ffffffff812ea0d8>] ? scsi_request_fn+0x36b/0x44e
 [<ffffffff8124a833>] ? rb_insert_color+0xb1/0xd9
 [<ffffffff8123b085>] ? queue_unplugged.clone.39+0x1c/0x27
 [<ffffffff813ff47d>] ? io_schedule+0x4e/0x63
 [<ffffffff8123a9b9>] ? get_request_wait+0xc0/0x12a
 [<ffffffff8104d4c4>] ? wake_up_bit+0x23/0x23
 [<ffffffff8123bb45>] ? blk_queue_bio+0x184/0x27b
 [<ffffffff81239a94>] ? generic_make_request+0x8c/0xcb
 [<ffffffff81239b86>] ? submit_bio+0xb3/0xbc
 [<ffffffff810b9b81>] ? submit_bh+0xdb/0xff
 [<ffffffff810bbb79>] ? __block_write_full_page+0x1f3/0x2dc
 [<ffffffff810bb499>] ? end_buffer_async_read+0x100/0x100
 [<ffffffff810be570>] ? I_BDEV+0x8/0x8
 [<ffffffff81075b9a>] ? __writepage+0xa/0x21
 [<ffffffff81076391>] ? write_cache_pages+0x20f/0x344
 [<ffffffff81075b90>] ? set_page_dirty+0x67/0x67
 [<ffffffff81076504>] ? generic_writepages+0x3e/0x55
 [<ffffffff810705f7>] ? __filemap_fdatawrite_range+0x4b/0x50
 [<ffffffff81070623>] ? filemap_write_and_wait_range+0x27/0x52
 [<ffffffff810bf2b1>] ? blkdev_fsync+0x15/0x3d
 [<ffffffff810b873a>] ? do_fsync+0x27/0x3d
 [<ffffffff810b895b>] ? sys_fsync+0xb/0x12
 [<ffffffff81401552>] ? system_call_fastpath+0x16/0x1b
INFO: task flush-8:32:21079 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
flush-8:32      D ffffffff81603bd0     0 21079      2 0x00000000
 ffff8801306083d0 0000000000000046 ffffffff00000000 ffffffff8180d020
 0000000000011b40 ffff88012ba9bfd8 ffff88012ba9bfd8 0000000000011b40
 ffff8801306083d0 0000000000011b40 0000000000011b40 ffff88012ba9a000
Call Trace:
 [<ffffffff81247041>] ? kobject_get+0x12/0x17
 [<ffffffff812ea0d8>] ? scsi_request_fn+0x36b/0x44e
 [<ffffffff8124a833>] ? rb_insert_color+0xb1/0xd9
 [<ffffffff8123b085>] ? queue_unplugged.clone.39+0x1c/0x27
 [<ffffffff813ff47d>] ? io_schedule+0x4e/0x63
 [<ffffffff8123a9b9>] ? get_request_wait+0xc0/0x12a
 [<ffffffff8104d4c4>] ? wake_up_bit+0x23/0x23
 [<ffffffff8123bb45>] ? blk_queue_bio+0x184/0x27b
 [<ffffffff81239a94>] ? generic_make_request+0x8c/0xcb
 [<ffffffff81239b86>] ? submit_bio+0xb3/0xbc
 [<ffffffff810b9b81>] ? submit_bh+0xdb/0xff
 [<ffffffff810bbb79>] ? __block_write_full_page+0x1f3/0x2dc
 [<ffffffff810bb499>] ? end_buffer_async_read+0x100/0x100
 [<ffffffff810be570>] ? I_BDEV+0x8/0x8
 [<ffffffff81075b9a>] ? __writepage+0xa/0x21
 [<ffffffff81076391>] ? write_cache_pages+0x20f/0x344
 [<ffffffff81075b90>] ? set_page_dirty+0x67/0x67
 [<ffffffff81076504>] ? generic_writepages+0x3e/0x55
 [<ffffffff810b4aa3>] ? writeback_single_inode+0xc3/0x223
 [<ffffffff810b4ef7>] ? writeback_sb_inodes+0x15a/0x1f1
 [<ffffffff810b52fb>] ? __writeback_inodes_wb+0x67/0xa2
 [<ffffffff810b55a8>] ? wb_writeback+0xed/0x177
 [<ffffffff810ac910>] ? get_nr_inodes+0x3a/0x4e
 [<ffffffff810b5c7e>] ? wb_do_writeback+0x115/0x175
 [<ffffffff810b5d67>] ? bdi_writeback_thread+0x89/0x167
 [<ffffffff810b5cde>] ? wb_do_writeback+0x175/0x175
 [<ffffffff810b5cde>] ? wb_do_writeback+0x175/0x175
 [<ffffffff8104d112>] ? kthread+0x7a/0x82
 [<ffffffff81403634>] ? kernel_thread_helper+0x4/0x10
 [<ffffffff8104d098>] ? kthread_worker_fn+0x141/0x141
 [<ffffffff81403630>] ? gs_change+0x13/0x13
Adding 1048572k swap on /dev/sdc2.  Priority:-1 extents:1 across:1048572k
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sdc3): using internal journal
EXT3-fs (sdc3): mounted filesystem with writeback data mode
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sdc3): using internal journal
EXT3-fs (sdc3): mounted filesystem with writeback data mode
end_request: I/O error, dev fd0, sector 0
end_request: I/O error, dev fd0, sector 0
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 1:01 pm    Post subject: Reply with quote

and lspci:

Code:
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: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
00:19.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:19.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:19.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:19.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
03:02.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 46)
80:00.0 Memory controller: NVIDIA Corporation CK804 Memory Controller (rev a3)
80:01.0 Memory controller: NVIDIA Corporation CK804 Memory Controller (rev a3)
80:07.0 IDE interface: NVIDIA Corporation CK804 Serial ATA Controller (rev f3)
80:08.0 IDE interface: NVIDIA Corporation CK804 Serial ATA Controller (rev f3)
80:0a.0 Bridge: NVIDIA Corporation CK804 Ethernet Controller (rev a3)
80:0d.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev a3)
80:0e.0 PCI bridge: NVIDIA Corporation CK804 PCIE Bridge (rev a3)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Sat Aug 18, 2012 1:26 pm    Post subject: Reply with quote

fuzzybee,

You have an old liveCD. The defualt paste site has been gone for a few months now.
Code:
 wgetpaste --help
tells you how to specify a site on the caommand line and suggests some options.

Code:
NVIDIA Corporation CK804 Serial ATA Controller
is a SATA 1 chipset, its likely your drive is SATA II or even SATA III. SATA II/III devices are supposed to fall back to SATA I but many don't.

Your dmesg
Code:
INFO: task mkfs.ext3:21097 blocked for more than 120 seconds.
is really ugly. That shows mke2fs having two minutes off every now and again, which is why everything takes so long.

Your drive probably has a jumper option to force SATA I operation. You need to set it.
Post the part number of the drive, there will be instructions on the web.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 6:32 pm    Post subject: Reply with quote

Yep - it's a SATAIII drive. I'll see what I can dig up on it. Thanks!
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 7:10 pm    Post subject: Reply with quote

Looks like I can limit the drive to 3Gbps - hopefully that will help the situation.
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Sat Aug 18, 2012 7:11 pm    Post subject: Reply with quote

Well, apparently this computer is cursed. I put on the jumper to limit the SATA controller to 3Gbps, and now when I boot from the live CD, I get to the point where it gives me the boot: prompt. I press enter, and it replies "loading gentoo.. aborted".

FYI, the DVD-ROM I'm booting from is IDE, not SATA.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Sat Aug 18, 2012 8:06 pm    Post subject: Reply with quote

fuzzybee,

3G is SATA II. Does that limit the drive to 3G or force it to 3G.

You need 1.5G What is the drive part number?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Mon Aug 20, 2012 12:50 am    Post subject: Reply with quote

It looks like it forces the drive to max @ SATA II. I realized that a bad keyboard was causing the "aborted" messages. I have set the jumper, and the drive appears to be operating correctly now.

Thanks for the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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