|
Bugzilla – Full Text Bug Listing |
| Summary: | fdisk does not know about the Amiga partition table | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | peter czanik <peter> |
| Component: | Basesystem | Assignee: | Ruediger Oertel <ro> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | werner |
| Version: | Alpha 1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
peter czanik
2005-10-07 19:09:53 UTC
Which bootscripts? The script is /etc/rc.d/boot.swap So, during boot, there is a message: "Disk /dev/hda doesn't contain a valid partition table" Rudi, would it be an option to use parted in /etc/init.d/boot.swap? since parted is in Minimal: yes. anyone has a patch ? the problem is not really parsing the output, but getting the correct device name. "fdisk -l" simply outputs all devices ... `parted' has NO listing mode for all devices. Therefore you can not search with `parted'. OK we may use just this
get_swap_id()
{
local maj min blks dev type
while read maj min blks dev ; do
test "$dev" != name || continue
test -n "$dev" || continue
test -d /sys/block/$dev || continue
while read min type; do
case "$type" in
*type=82|*type=82,*) echo /dev/${dev}${min}
esac
done < <(parted -s /dev/$dev print quit)
done < /proc/partitions
}
BUT it is MUCH slower than this old solution!
Now we run parted in the case that fdisk fails. Where? I still get the fdisk error messages on bootup, and couldn't find parted related lines in /etc/init.d/boot.swap |