Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 02:11:01 Volker Armin Hemmann wrote:
 and what happens if you don't use crap - aka sudo but do it the right
  way - aka su to root?

Exactly the same, of course.

-- 
Rgds
Peter.



Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 02:25:17 Nikos Chantziaras wrote:

 a) cfdisk might work while fdisk does not.

I get the same from cfdisk: FATAL ERROR: Cannot seek on disk drive
 
 b) You have a corrupted partition table that you can try to repair
 with the testdisk tool

Good idea. I'll have a go at that today.
 
 Another thing: are you using busybox here or the normal version of
 fdisk?  (Busybox comes with its own fdisk.)

Bog-standard fdisk and cfdisk.

-- 
Rgds
Peter.



Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Willie Wong
On Mon, Feb 08, 2010 at 04:25:17AM +0200, Nikos Chantziaras wrote:
 You said that Google didn't help, but still, I've found some info about 
 it.  In short, I've found two things:
 
 a) cfdisk might work while fdisk does not.

Interesting. My personal experience has been the opposite: cfdisk
writes (and demands) better formed partition tables, so sometimes crap
that fdisk can read/write will not work with cfdisk. But of course,
YMMV. Since we are bringing up alternative fdisk programs, what about
sfdisk? I wouldn't put money on it, but it won't hurt to try. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 02:25:17 Nikos Chantziaras wrote:

 b) You have a corrupted partition table that you can try to repair
  with the testdisk tool (after you make a full backup of your
  disk.)

That seems to have been it. Testdisk did indeed write a new partition 
table, minus one of the partitions which it insisted on deleting so I 
suppose something was wrong with it.

After much time taking and restoring backups my main system is now 
running again and i can run fdisk.

I'm surprised at this, because a seek error sounds uncomfortably like a 
hardware problem to me. Maybe some particular error in the partition 
table confused fdisk and cfdisk.

Anyway, thanks for the help, Nikos and all those who offered it.

-- 
Rgds
Peter.



[gentoo-user] Re: When is a disk not a disk?

2010-02-07 Thread Nikos Chantziaras

On 02/08/2010 02:27 AM, Peter Humphrey wrote:

Hello again List,

$ sudo  fdisk -l

Unable to seek on /dev/sda


Not sure what's going on, but you might want to post more info so that 
others might have an idea about what's wrong.  First, clean dmesg:


  sudo dmesg -c  /dev/null

Then try fdisk again:

  /sbin/fdisk -l

(No need to be root for fdisk -l.)

Then post the output of:

  dmesg

(If there's any output.)

And finally, post the output of:

  mount
  cat /proc/partitions




Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-07 Thread Peter Humphrey
On Monday 08 February 2010 00:39:50 Nikos Chantziaras wrote:

 Not sure what's going on, but you might want to post more info so
  that others might have an idea about what's wrong.  First, clean
  dmesg:
 
sudo dmesg -c  /dev/null

OK.
 
 Then try fdisk again:
 
/sbin/fdisk -l

$ sudo /sbin/fdisk -l

Unable to seek on /dev/sda

 Then post the output of:
 
dmesg
 $ dmesg
[null]

 And finally, post the output of:
 
mount

$mount
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw,relatime)
rc-svcdir on /lib64/rc/init.d type tmpfs 
(rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts 
(rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
/dev/sda6 on /home type ext4 (rw,noatime)
/dev/sda7 on /home/prh/common type ext4 (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=9G)

cat /proc/partitions

$cat /proc/partitions  
major minor  #blocks  name  
  

   80  976762584 sda
   81 112423 sda1
   82 112455 sda2
   83 104422 sda3
   84  1 sda4
   85   62918509 sda5
   86   41945683 sda6
   87   64685691 sda7
   88   2925 sda8
   89   1431 sda9
   8   10   10490413 sda10
   8   11   10482381 sda11
   8   12   20980858 sda12
   8   13   10490413 sda13

[HTH]

-- 
Rgds
Peter.



Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-07 Thread Volker Armin Hemmann
and what happens if you don't use crap - aka sudo but do it the right way - 
aka su to root?



[gentoo-user] Re: When is a disk not a disk?

2010-02-07 Thread Nikos Chantziaras

On 02/08/2010 02:27 AM, Peter Humphrey wrote:

Hello again List,

$ sudo  fdisk -l

Unable to seek on /dev/sda


You said that Google didn't help, but still, I've found some info about 
it.  In short, I've found two things:


a) cfdisk might work while fdisk does not.

b) You have a corrupted partition table that you can try to repair with 
the testdisk tool (after you make a full backup of your disk.)


Another thing: are you using busybox here or the normal version of 
fdisk?  (Busybox comes with its own fdisk.)