LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-30-2005, 11:28 AM   #1
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Rep: Reputation: 15
Serial ATA Seagate 200gb BIG TROUBLES


Hi! I've recently bought a S-ATA Seagate Barracuda 200gb's. But I stepped over some problems.

First off, In dmesg I get:
SCSI device sda: 390721968 512-byte hdwr sectors (200050 MB)
SCSI device sda: drive cache: write back
sda: unknown partition table
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0

So, I try cfdisk /dev/sda <- device not found. Hmm, I check yast hardware info, it says that it uses /dev/sda as devicename. Strange. I try the yast partitioner, it only detects my hda and hdb.

I reboot, using the install disc, select repair install, expert, partioner. Yay! It detects! I set mode to ext3, format, reboot... I still can't find the partition! cfdisk shows nothing, and i can't mount /dev/sda1 (which is where i partitioned it) sad.gif

Help is APPRECIATED!
 
Old 01-30-2005, 11:38 AM   #2
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33
First - a useful tip is that the kernel logs all the partitions in /proc/partitions - so cat /proc/partitions to see what is available.

Interesting that it works from the recovery CD. Can you boot to a recovery disc commant line and do 'cat /proc/paritions' and check it all looks fine.

I would then start to suspect a kernel quirk. What kernel are you running? (type uname -r) What kernel is on the recovery CD?

Another thing - what happens if you type 'file -sL /dev/sda' - that should tell you if there is a problem reading the raw device.

Sorry for waffle, but as you say it is a rather bizarre problem and nothing obvious springs to mind.

TIM
 
Old 01-30-2005, 03:50 PM   #3
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by avarus
First - a useful tip is that the kernel logs all the partitions in /proc/partitions - so cat /proc/partitions to see what is available.

Interesting that it works from the recovery CD. Can you boot to a recovery disc commant line and do 'cat /proc/paritions' and check it all looks fine.

I would then start to suspect a kernel quirk. What kernel are you running? (type uname -r) What kernel is on the recovery CD?

Another thing - what happens if you type 'file -sL /dev/sda' - that should tell you if there is a problem reading the raw device.

Sorry for waffle, but as you say it is a rather bizarre problem and nothing obvious springs to mind.

TIM
# file -sL /dev/sda
/dev/sda: cannot open (/dev/sda)

# cat /proc/partitions
major minor #blocks name

3 0 40146624 hda
3 1 1052226 hda1
3 2 39094177 hda2
3 64 199148544 hdb
3 65 199125643 hdb1
8 0 195360984 sda
8 1 195342336 sda1


# uname -r
2.6.8-24.11-default




Don't have the time to reboot on recovery cd now, but my partition shows in proc/partitions, stange? :/
 
Old 01-31-2005, 06:34 AM   #4
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
So, what do you think?
 
Old 01-31-2005, 08:23 AM   #5
linuxdawg
Member
 
Registered: Aug 2004
Distribution: Suse
Posts: 44

Rep: Reputation: 16
Quote:
Originally posted by zenith_zth
So, what do you think?
Try using fdisk instead of cfdisk. I like cfdisk better, but I've had problems with it in the past on large hard drives. If you can access the drives with fdisk, then see if there is an updated version of cfdisk install it, and try cfdisk again.
 
Old 01-31-2005, 09:17 AM   #6
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
# fdisk /dev/sda

Unable to open /dev/sda



When I usewd the rescue DVD again to fix my fstab file, it detected the partition and added it in the fstab file, but it still doesn't work
 
Old 01-31-2005, 03:51 PM   #7
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
I degraded the kernel to the default on the DVD (same as the rescue DVD), still no go
 
Old 02-01-2005, 04:51 PM   #8
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
No idea anyone?
 
Old 02-06-2005, 06:01 AM   #9
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33
Hi,

Me again. Are you still struggling with this? I think possibly it is simply a question that /dev/sda is pointing in the wrong place. The potted summary of the files in /dev is as follows - traditionally these would be be actual files stored on the disk. They would be of type 'block special', meaning that they were like a link to an abstraction of a physical device. The device is identified by a major and minor number - so for example the main IDE drive in my machine here (/dev/hda) has major number 3, minor 0. I can make a file anywhere on my system (eg in /tmp) using the command:

mknod /tmp/foo b 3 0

then 'fdisk -l /tmp/foo' will list the partition table as expected. To access the individual partitions I make more block special files, giving the partition number as the minor number. As you have probably twigged, these are the numbers shown in the output of /proc/partitions. Therefore get a root shell and try:

mknod foo b 8 0
fdisk -l foo
(when you are done simply rm the special file)

If that works then your /dev/partition is screwed. You don't say what distro you use - the modern ones use a think called devfs (or udev) to keep all the device names pointed in the right place by creating them in memory rather than on the disk, but maybe you are using an old distro, or you you haven't mounted devfs, or some other reason. The first question is where is /dev/sda actually pointing? Is it a symlink or an actual file, and what is it, or the link target, pointing at? The commands 'ls -l' and 'file' will be able to tell you about symlinks and block-special files respectively.

Keep trying!

TIM
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't boot Seagate 200GB IDE mijenks Linux - Hardware 2 06-27-2006 02:57 AM
silicon image 3112 and seagate 200GB sata(non-raid) ganja_guru Linux - Hardware 16 08-08-2005 09:12 AM
Serial ATA Seagate 200gb zenith_zth Linux - Hardware 6 01-30-2005 06:08 AM
new 200GB seagate not booting possible ide controller prob |2ainman Linux - Hardware 4 12-31-2004 09:10 AM
seagate 200GB TordYvel Linux - Hardware 3 06-27-2004 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration