"Supposedly" doesn't really instil confidence You tried setting DEVNAME manually, and that also didn't work?
Is all of the code in the same script.. e.g. did you export DEVNAME if it's not?
If you set DEVNAME manually, after (or in place of) the fdisk command, there's no reason that the output would be
Code:
mount /media/usb/test
instead of
Code:
mount /dev/sdb1 /media/usb/test
If the variable DEVNAME is not created as read-only (e.g. gives an error why you try to set it), and the script is not being run in a shell jail (chroot environment), that is.
installed fedora core 5 on a pc with USB and some usual things. in boot up it is stopped at "Starting udev:". Its harddisk light is busy. is it reconfiguring the kernel?. what do to solve this problem?. (0 Replies)
Hello all
I have to run manually make commands in our system the make compilations task's takes very long
And I like to be able to run another make task right after one is finished.
What is the best way to automate it ? (2 Replies)
Hi,
I worte a script which runs perfect when i execute it manually. But when i scheduled into cron the grep command alone is not working.
the sample script,
/usr/bin/grep FTP $subfile > /tmp/tfsrec.dat
tfs=`echo $?`
if
then
echo "FTP FOUND"
else
echo "FTP NOT FOUND"
Where... (5 Replies)
I'm curious about the behavior where any udev labeled device causes that corresponding listing to disappear from fdisk, sfdisk, or in the case of RDAC, lsvdev.
I have seen this on both EMC clariion and Sun Storagetek/Engenio 6540 arrays.
We use RHEL5.1 and udev to create persistent labels for... (2 Replies)
Hello!
I'm sorry if this is the false Forum, didn't really knew where to put it...
My question:
I have serveral USB-Sticks and wrote several Udev-Rules for theme, each Sticks needs to do something else, but all are using the same script (they have common tasks to do) and only some parts are... (2 Replies)
hi
i want to automate fdisk command .
i spawned a process containing fdisk command from a process
and tried to send the options to fdisk promt from that process.
but that spawed process is notstarting itself
help me out
trying for two days
:wall:
my code:
#!/bin/bash
echo... (5 Replies)
Hello,
MBR partition table made by linux fdisk looks certainly not correct when printed by openbsd fdisk:
Partition table created on linux (centos 6.3):
# fdisk -l /dev/sdc
Disk /dev/sdc: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 *... (2 Replies)
I have made a program that reads a text file and checks for palindromic words and then outputs them. They each appear on a new line with a count of the number of occurences beside each of the words.
Requirements for being classed as palindrome are that the word must have at least 3 letters and... (7 Replies)
Discussion started by: greenhouse91
7 Replies
LEARN ABOUT SUSE
hwinfo
HWINFO(8) System configuration HWINFO(8)NAME
hwinfo - probe for hardware
SYNOPSIS
hwinfo [ OPTIONS ]
DESCRIPTION
hwinfo is used to probe for the hardware present in the system. It can be used to generate a system overview log which can be later used
for support.
OPTIONS
Note that running hwinfo without any options is roughly equivalent to 'hwinfo --all --log=-'.
--<HARDWARE_ITEM>
This option can be given more than once. Probe for a particular HARDWARE_ITEM. Available hardware items are:
all, arch, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard, cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer,
gfxcard, hub, ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse, netcard, network, partition, pci, pcmcia, pcm-
cia-ctrl, pppoe, printer, redasd, reallyall, scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, uml, usb, usb-ctrl, vbe, wlan,
xen, zip
--short
Show only a summary. Use this option in addition to a hardware probing option.
--listmd
Normally hwinfo does not report RAID devices. Add this option to see them.
--only DEVNAME
This option can be given more than once. If you add this option, only data about devices with DEVNAME will be shown.
--save-config SPEC
Store config for a particular device below /var/lib/hardware. SPEC can be a device name, an UDI, or 'all'. This option must be given
in addition to a hardware probing option.
--show-config UDI
Show saved config data for a particular device.
--map If disk names have changed (e.g. after a kernel update) this prints a list of disk name mappings. Note that you must have used
--save-config at some point before for this can work.
--debug N
Set debug level to N. The debug info is shown only in the log file. If you specify a log file, the debug level is implicitly set to
a reasonable value.
--verbose
Increase verbosity. Only together with --map.
--log FILE
Write log info to FILE.
--dump-db N
Dump hardware data base. N is either 0 for the external data base in /var/lib/hardware, or 1 for the internal data base.
--version
Print libhd version.
--help Print usage.
ENVIRONMENT
hwprobe can hold a comma-separated list of probing flags preceded by '+' or '-' to be turned on or off. To get a complete list of supported
flags, run 'hwinfo -all' (note: not '--all') and look at the top of the output.
hwinfo also looks at /proc/cmdline for a hwprobe option.
EXAMPLES
- show all disks
hwinfo --disk
- just an overview
hwinfo --short --block
- show a particular disk
hwinfo --disk --only /dev/sdb
- save disk config state
hwinfo --disk --save-config=all
- try 4 graphics card ports for monitor data (default: 3)
hwprobe=bios.ddc.ports=4 hwinfo --monitor
- monitor detection runs the Video BIOS to get the monitor data; dump a complete BIOS code execution trace to the log
hwprobe=bios.ddc.ports=1,x86emu=trace:dump:trace.only=0:dump.only=0 hwinfo --monitor --log=foo
FILES
/var/lib/hardware/hd.ids
External hardware data base (in readable text form). Try the --dump-db option to see the format.
/var/lib/hardware/udi
Directory where persistent config data are stored (see --save-config option).
BUGS
Not all hardware can be detected.
SEE ALSO
More documentation in /usr/share/doc/packages/hwinfo.
Source repository: git://git.opensuse.org/projects/hwinfo.git.
hwinfo June 2009 HWINFO(8)