LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2013, 05:12 PM   #1
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Rep: Reputation: 4
Anyone had issues with sfdisk (util-linux 2.13-pre7) ?


Hi all,

I am just wondering if someone else had problems with the version util-linux 2.13-pre7 of sfdisk.

I needed to modify the command

sfdisk /dev/sda < partition_data

to

sfdisk -H 16 /dev/sda < partition_data

on a drive saying "CHS 16383/16/63" on the disk case label to get all device nodes created.
Without "-H 16", sfdisk creates only 4 device nodes from the 6 in the partition table. In this case, there are no error messages from sfdisk.
 
Old 01-14-2013, 05:43 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
looks like a pretty old version, but that does sound odd. Let's see the partition_data file, and maybe a "sdfisk -l" (or similar).
 
Old 01-18-2013, 06:17 AM   #3
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Original Poster
Rep: Reputation: 4
Sorry for coming back late to this.

Here is the contents from the partition_data file:

Code:
0,66,82
,131,83
,523,83
,,85
,1045,83
,,83
and that's the partition table from "sfdisk -l /dev/sda":

Code:
/ # sfdisk -l /dev/sda

Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
  for C/H/S=*/16/63 (instead of 121601/255/63).
For this listing I'll assume that geometry.
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1          0+     65      66-     33263+  82  Linux swap / Solaris
/dev/sda2         66     196     131      66024   83  Linux
/dev/sda3        197     719     523     263592   83  Linux
/dev/sda4        720  121600  120881   60924024   85  Linux extended
/dev/sda5        720+   1764    1045-    526679+  83  Linux
/dev/sda6       1765+ 121600  119836-  60397343+  83  Linux
/ #
The interesting part is that sfdisk didn't say:

Code:
Warning: The partition table looks like it was made
  for C/H/S=*/16/63 (instead of 121601/255/63).
For this listing I'll assume that geometry.
at the beginning.

It didn't give any errors or warnings. It simply didn't create /dev/sda5 and /dev/sda6.

When it ran ONCE with "sfdisk -H 16 /dev/sda < partition_data" then it gives the above warning when running without "-H 16" again.

I'll see to compile another version of sfdisk and try out this.
 
  


Reply



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
[SOLVED] Are the programs in util-linux the same version as those in util-linux-ng? harryhaller Slackware - Installation 2 10-07-2011 09:43 AM
A strange problem about mplayer 1 pre7 shadkong Linux - Software 5 05-07-2005 07:46 AM
sfdisk for usb key for Flash Linux NovaBurst Linux - Software 4 03-25-2005 09:08 PM
FC2 MBR Fix issues -- strange sfdisk output Alterscape Fedora - Installation 0 07-16-2004 11:04 AM
Installing Enlightenment 0.16.6 Pre7 on Slackware 9 Astro Slackware 16 07-14-2004 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 PM.

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