how know if my system (debian) have /dev/hdb, etc
I have o computer with several disks IDE, but I no know how much or whats have?
how know if my system (debian) have /dev/hdb, /devhdc, etc.. have one command (in text mode) for see only hard disk informations (HD's installed)? (not lshw) |
try "fdisk -l"
|
thi command not show nothing in my distro (debian 3.1r1, kernel 2.4)!
thanks |
Quote:
note: this is a lowercase 'L' not a 1, my font makes it look like a 1 ...could be the problem. regards, ..drkstr |
Try
Code:
sudo fdisk -l Debian disallows login with root and "fdisk -l" is a system-related command requiring root privileges. The above should overcome it. |
Quote:
|
yeah thought as much. this guy has still not tried to clarify "shows nothing" yet though... path issue or something? maybe he's just not reading it right... i do recall some versions of fdisk require the single /dev entry and only show on a per disk basis. think that was redhat 7.3 i had that on.
|
Ubuntu is a variant of Debian and inherits much of its security arrangement.
|
On debian:
I am use fdisk -l (run as root)!!! Nothing happen, any erro, any message!!! so I try this command with othes distribution (Fedora Core 5) it show information about all disks. strange not work on debian 3.1r1, kernel 2.4.27-2-386!!! others ideas? |
I don't know a lot about debian releases but 3.1 seems like a pretty small number for a release, is this an older release or something? It's possible the fdisk you have is an out of date version as kewpie suggested. Try listing the device directly:
Code:
#fdisk -l /dev/hda Code:
#fdisk -h regards, ...drkstr |
Quote:
|
acid_kewpie
You are right. Debian reacts differently to the sudo command than Ubuntu. I tried "sudo fdisk -l" on my Ubuntu 5.10 Breezy before putting up my last reply. Tried again and it certainly works OK for me. For Debian I have to do a "su" first. |
ok 2 things to try, both can be ran as user:
Code:
df -h Code:
cat /etc/fstab Code:
df -h hope that helps. |
Quote:
do you have sudo setup for your debian box? if not then sudo will not work for you. |
Quote:
|
lleb,
Obviously not. I use Debian Sarge strict off the shelf. Can't be bother to fine-tone each one as I run over 100 distros in the box. To me commands that work in every case in Linux are the ones worthy to learn. Can't remember many distros like Debian that "report" a user using a command not included in the "sudo"list. |
All times are GMT -5. The time now is 11:50 PM. |