LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-01-2007, 08:00 PM   #1
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Rep: Reputation: 15
How to use sfdisk


I have a sata drive and when I do sfdisk -l /dev/sda1 (that is how it is listed in/dev)it returns "Warning: start=63 - this looks lake a partition rather than the entire disk. Use the -- force option if you really want this." [U]This is an entire disk[./U] I have looked at a lot of examples and they all show this sfdisk /dev/hdc << EOF
0,407
,407
;
;
EOF
Which I don't understand. All I want is to make the whole drive one partition. I tried <start> <size> <id>; sfdisk /dev/sda1 0 298 L but it doesn't work. What do I need to type?
 
Old 02-01-2007, 08:57 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
sda - disk
sda1 - partition

Why you have chosen sfdisk? It is the trickiest fdisk.
 
Old 02-02-2007, 08:19 AM   #3
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
sda - disk
sda1 - partition

Why you have chosen sfdisk? It is the trickiest fdisk.
Sorry I don't understand what you are saying. Are you saying not to use sdisk but to use fdisk? And to format my disk I just need to type in: sda - disk hit enter and then type in: sda1 - partition and hit inter?
 
Old 02-02-2007, 08:45 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Easiest to use is cfdisk, if you do not have it use fdisk. cfdisk /dev/sda will let you edit the partition table for sda. This is not formatting, to format your partition(s) use mkfs. man mkfs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sfdisk problem jobesd Linux - General 12 05-04-2020 08:22 AM
fstab settings and sfdisk etc. zappos Linux - Newbie 2 03-02-2005 12:48 PM
sfdisk and scripting lockejr Linux - General 0 05-29-2003 01:18 PM
fdisk and sfdisk devinWhalen Linux - Distributions 5 04-08-2003 11:20 AM
sfdisk problem A-dummy Linux - General 0 08-09-2002 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:30 AM.

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