LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-24-2004, 07:27 PM   #1
dmx9595
Member
 
Registered: Jun 2003
Location: Canada,Ontario
Distribution: Debian and Gentoo
Posts: 135

Rep: Reputation: 15
deleting paritions, deletes the wrong partition # ?


hey my problem is when i goto delete a parition using fdisk or cfdisk , it deletes the wrong parition # ( it deletes the last one off the disk ) so for ex if i do d then 6 then p, it shows that it delete part # 10 (last one off disk) and didnt delete 6, then if i do delete # 4 it will delete # 9 (now last one off disk) for sum reason im not sure why its doing this any ideas please?
here my parition table:

freedom@</freedom>$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hde5 1.9G 693M 1.1G 40% /
/dev/hde1 99M 7.9M 86M 9% /boot
/dev/hde6 7.3G 2.4G 4.5G 35% /usr
/dev/hde7 5.5G 280M 4.9G 6% /var
/dev/hde8 935M 28M 859M 4% /tmp
/dev/hde9 6.4G 3.4G 2.7G 56% /backup
/dev/hde10 37G 17G 18G 49% /home


Command (m for help): p

Disk /dev/hde: 80.0 GB, 80054059008 bytes
255 heads, 63 sectors/track, 9732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hde1 * 1 13 104391 83 Linux
/dev/hde2 14 160 1180777+ 82 Linux swap
/dev/hde3 161 9158 72276435 5 Extended
/dev/hde5 161 404 1959898+ 83 Linux
/dev/hde6 405 1378 7823623+ 83 Linux
/dev/hde7 1379 2108 5863693+ 83 Linux
/dev/hde8 2109 2231 987966 83 Linux
/dev/hde9 2232 3083 6843658+ 83 Linux
/dev/hde10 3084 8000 39495771 83 Linux


as you can see i messed up when making my /usr /var etc.. a long time ago, made them way too big and ive come long time after to finally fix it ;0
mind you im doing this from in the slack cd kern environement ( cause im recreating my /usr /var paritions ) so that may be a factor to this problem and the output of df and fdisk may/is a little different then above of course, cause right now im in my normal slack parition/kern (not off cd)
any ideas? thanks.
 
Old 05-24-2004, 07:55 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
stupid question but you sure it's not just the partitions getting renumbered after you delete one? They do get renumbered. you can use fdisk -l and check the start and end poitns of the partitions.
 
Old 05-24-2004, 08:45 PM   #3
dmx9595
Member
 
Registered: Jun 2003
Location: Canada,Ontario
Distribution: Debian and Gentoo
Posts: 135

Original Poster
Rep: Reputation: 15
ooh goodness me yes that is the problem, didnt know they got renumbered, that did kinda cross my mine but i thought i checked the sizes before and after deleting to check that oh well
i feel kinda stupid now ;0 lol
thanks
 
Old 05-24-2004, 11:20 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
glad I could help. The renumbering threw me once too

make sure you edit the fstab accordingly.
 
  


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
Deleting unused space from a partition Tsukasa7 Linux - Newbie 2 08-31-2005 02:05 PM
Added second harddrive as a partition, but now the partition size is wrong.. mlsbraves Linux - General 5 08-17-2005 08:10 PM
Deleting Linux Partition Elader Linux - General 1 04-20-2005 06:01 PM
deleting windows partition rksprst Mandriva 1 01-04-2005 04:33 AM
Deleting Windows Partition LinuxSeeker Mandriva 17 10-18-2004 04:34 AM

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

All times are GMT -5. The time now is 03:15 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