LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2003, 05:21 AM   #1
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Rep: Reputation: 30
Angry fdisk problems


Why is it that fdisk sometimes deletes partitons when I did not ask it to change anything? Merely asking fdisk to look at a hard drive on my computer seems to be dangerous. I would like to know what is wrong with the command below:

/sbin/fdisk /dev/hdb -l

I was trying to use that to see what partitions I had on my second hard drive. It gave me that info and also gave me this message:

Warning: deleting partitions after 16

I did not want it to delete any partitions. Which part of the above command tells it to delete any partition numbered higher than 16. Fortunately I did not have anything important on my last couple of partitons. I assume it actually did delete them although I can not remember how many I had to start with? Fortunately, all my of my various operating systems still seem to boot up ok. I was using Red Hat 9 at the time. To make sure I am describing what I did above, I carefully cut and pasted the exact command I used and a portion of response into this message.

I had a similar, but worse experience about two months ago when I tried to intall the latest version of Slackware. I believe it was Slackware that I was using at the time. If I remember correctly, I used this command to try and look at drive g:

fdisk /dev/hdg

Part of the response was that some of my partitions were being deleted. I do actually have a drive g on my computer by the way. The motherboard in my computer is designed to connect up to 8 IDE devices. I currently have 6 IDE devices connected to this computer. Fortunately, there was nothing important on that hard drive. The entire disk merely contained backup copies of various partitions. I still had the original copies of the partions on other hard drives. When I used Partition Magic to examine hdg I found that approximately 100 GB from three extended partition had been deleted.

I have mostly just used Partition Magic and Disk Druid for partitioning and do not yet know much about fdisk. What did I do wrong in the above command?
 
Old 06-25-2003, 05:27 AM   #2
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Original Poster
Rep: Reputation: 30
P.S. In my above post I ment to say that fdisk deleted "100 GB from the extended partition." I did not mean to imply that there was more than one extended partion on that hard disk. I only have one extended partiton on each of my four hard disks.
 
Old 06-25-2003, 03:06 PM   #3
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Be aware of using Partition Magic. When I was playing with windows I've found that it created improper partition entry in my MBR for extended partition (the last cylinder number greater than it was possible). From that time I haven't trust this stuff.
 
Old 07-21-2003, 02:49 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
fdisk cannot handle more than 16 partitions on a single disk.
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
problems with fdisk and cfdisk ah786 Linux - Newbie 1 10-23-2004 07:50 PM
can't fdisk new hd nmistry Linux - Hardware 4 11-03-2003 11:43 AM
fdisk and cfdisk problems LokiPartera Linux - Newbie 6 10-30-2002 05:13 PM
disk druid and fdisk problems vg3 Linux - Software 3 10-30-2001 09:40 PM


All times are GMT -5. The time now is 10:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration