LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-19-2009, 03:33 PM   #1
an0r0c
LQ Newbie
 
Registered: Mar 2009
Location: Austria
Distribution: gentoo, debian, ubuntu
Posts: 4

Rep: Reputation: 0
Cannot access my System HDD with cfdisk, during System is running from this disk


Hi,
I am new in this forum, i've read here a lot before and so i decided to register.

I have a problem with a server running a debian.
I made 3 partitions:
/dev/sda1: /
/dev/sda2: swap
/dev/sda3: /var
after installation i had todo a kernel update for my vmwareserver and there came the problems.

With my new kernel i cannot acces the hdd with cfdisk / fdisk ...

the /dev/sda files does not exists
Code:
:/#  ls /dev/ | grep sd
:/#
but /dev/sda1 is mounted ....
Code:
:/# df -h
Dateisystem          Gr▒▒e Benut  Verf Ben% Eingeh▒ngt auf
/dev/sda1              19G  3,9G   14G  23% /
tmpfs                 482M     0  482M   0% /lib/init/rw
tmpfs                 482M  4,0K  482M   1% /dev/shm
and in /proc/partitions there are also all 3 partitions listened
Code:
:/# cat /proc/partitions
major minor  #blocks  name

   8        0  244198584 sda
   8        1   19535008 sda1
   8        2    1951897 sda2
   8        3  222709095 sda3
This is the thing which is very strange for me

I'm not able to make a filesystem on my sda3 partition because he cannot find the /dev/sda3 file

im using kernel 2.6.28.7

I hope someone knows what I've made wrong, because google was not able to help me in this case

greez an0r0c
 
Old 03-19-2009, 05:48 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Post the output of
Code:
ls -Al /dev/disk/by-path/

Last edited by AlucardZero; 03-19-2009 at 07:17 PM. Reason: removing extra ls
 
Old 03-19-2009, 05:58 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,099

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
There's an extranious "ls" in there, but it won't do any harm. What does "fdisk -l" give (try it as root/sudo).
 
Old 03-20-2009, 04:36 AM   #4
an0r0c
LQ Newbie
 
Registered: Mar 2009
Location: Austria
Distribution: gentoo, debian, ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Code:
:# ls -Al /dev/disk/by-path/
ls: /dev/disk/by-path/: Datei oder Verzeichnis nicht gefunden
Code:
:# fdisk -l
:#
I think that looks not good?
 
Old 03-20-2009, 04:46 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,099

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Quote:
Originally Posted by an0r0c View Post
I think that looks not good?
That just might qualify as an understatement ...

Will need to think some more on this.
 
Old 03-20-2009, 08:33 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What version Debian?
 
Old 03-20-2009, 06:11 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,099

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Quote:
Originally Posted by an0r0c View Post
after installation i had todo a kernel update for my vmwareserver and there came the problems.

With my new kernel i cannot acces the hdd with cfdisk / fdisk ...
Without knowing the changes, I suspect we can't help.
I don't know what version of fdisk you have, but the source I have shows /proc/partitions being run. I'm surprised you don't get a fatal error message if the device nodes don't exist.
 
Old 03-21-2009, 05:46 AM   #8
an0r0c
LQ Newbie
 
Registered: Mar 2009
Location: Austria
Distribution: gentoo, debian, ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
So i checked my kernel and it's not possible that that is my kernels fault. Because my server hoster offers a netboot kernel with this kernel all the hardware should work , all but module support and I got the same problem.

fdisk version: fdisk v2.12r

in my dmesg it knows the harddisk:
Code:
scsi 0:0:0:0: Direct-Access     ATA      ST3250410AS      3.AA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB)
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] 488397168 512-byte hardware sectors: (250 GB/232 GiB)
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: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
Fusion MPT base driver 3.04.07
now i have really no idea what i have made wrong ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
copied Debian install from dead hdd to new hdd.now system fails to boot :S deepclutch Debian 18 02-15-2008 07:17 AM
Unable to access the / (root system directory) via system:/media dizzi Slackware 3 07-11-2007 03:45 PM
Duplicating a Linux System Disk rapidly (ie. ghosting a HDD) richearle Linux - General 1 08-02-2006 03:56 AM
Blew up my system with cfdisk. need help please 0be1 Linux - Software 5 01-02-2006 11:44 AM
How to access raw sectors on HDD with no file system? prasanthpooyath Programming 4 01-08-2005 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:05 AM.

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