LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices

Reply
 
Search this Thread
Old 06-24-2007, 12:39 PM   #1
AlestorJN
LQ Newbie
 
Registered: Jun 2007
Location: Ohio, USA
Distribution: Ubuntu 7.04 (Feisty Fawn)
Posts: 2

Rep: Reputation: 0
Question fdisk Terminal command problems - help appreciated


Hi, I've been trying to partition my flash drive for Damn Small Linux installation using the fdisk (v2.12r) commands, but I've been running into some problems.

Fdisk is replying with invalid command statements, although I believe they are valid commands, according to the installation guide.

Here's what happens:

Quote:
joseph@Alestor:~$ fdisk -l

Disk /dev/sdb: 515 MB, 515899392 bytes
16 heads, 32 sectors/track, 1968 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1968 503792 e W95 FAT16 (LBA)
joseph@Alestor:~$ fdisk -d
I wanted to delete the partition then create two new ones, one for storage and the other for DSL. I got this reply:

Quote:
fdisk: invalid option -- d

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
With that, of course, neither "fdisk -n,p,1"(new partion) or "fdisk -a"(bootable) worked either.

Is this because of the version or Feisty Fawn or what? Any help is greatly appreciated. Thanks for your time.
 
Old 06-24-2007, 04:28 PM   #2
rjtucke
Member
 
Registered: Sep 2004
Distribution: Debian testing
Posts: 49

Rep: Reputation: 16
Um, try just specifying the /dev/hdc or whatever on the command line, and then it should enter interactive mode- THEN try the delete or whatever.
 
Old 06-24-2007, 07:22 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Look carefully at the man page for fdisk--you have to specify the device in any command that actually does something.
As rj says, do first "fdisk /dev/sdb", then use the interactive commands. Once you are in the command mode, type "m" for a list of all commands.
 
Old 06-24-2007, 11:19 PM   #4
AlestorJN
LQ Newbie
 
Registered: Jun 2007
Location: Ohio, USA
Distribution: Ubuntu 7.04 (Feisty Fawn)
Posts: 2

Original Poster
Rep: Reputation: 0
Smile Problem Solved

Actually I did that, sorry to not mention it. Even entered the partitions. I've recently solved the problem by using gparted to manage partitioning. Works great now Thanks for your help!
 
  


Reply

Tags
damnsmalllinux, dsl, fdisk, linux, terminal


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
bcm43xx install problems (help appreciated) android6011 Linux - Software 5 06-02-2006 04:37 PM
many permissions problems! any help appreciated darksmiley Slackware 2 12-15-2004 12:11 PM
Terminal command problems rogleale Linux - Newbie 3 06-21-2004 06:41 AM
CTRL-ALT-DEL Problems...i know its windoze..but any help is appreciated ksoma General 31 08-13-2003 07:26 PM
Red Hat 8.0 boot-up & log-in problems (help appreciated) daviescr Linux - Newbie 1 11-11-2002 02:00 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration