LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2007, 10:22 PM   #1
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Rep: Reputation: 15
Question different partition tables from fdisk and df


Hi,
I have slack 10.2 and linux 2.6.19.2 with seagate 80g sata hdd.
here is the output of #fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ c W95 FAT32 (LBA)
/dev/sda2 2551 7780 42009975 f W95 Ext'd (LBA)
/dev/sda3 8418 9728 10530604 83 Linux
/dev/sda4 7781 8417 5116702+ 83 Linux
/dev/sda5 2551 5100 20482843+ b W95 FAT32
/dev/sda6 7651 7780 1044193+ 82 Linux swap

Partition table entries are not in disk order

and here output of #df

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 10530276 5777692 4752584 55% /
/dev/sda1 20472816 6539584 13933232 32% /mnt/hd/c
/dev/sda5 20472816 19377504 1095312 95% /mnt/hd/d
/dev/sda6 20472848 15805056 4667792 78% /mnt/hd/f

See partition /dev/sda6. Its ambiguous. I know its of type swap, I created it using disk director in winxp. I wanna say that the output of fdisk -l seems correct to me. *But* in order to mount a windows partition I have to mount /dev/sda6 (????) I dont understand, I use sda6 in fstab to mount the partition and sda7 as swap partition (though I know sda6 is of type swap because swap is of 1G and not 20G as shown in fdisk -l)

Whats this????
 
Old 02-05-2007, 11:31 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The second entry (/dev/sda2) is an extended partition. There is a hole from sectors 5101 to 7650. I bet that is the partition that is referred to in the df listing as hda6. Was /dev/hda6 created in windows? Otherwise according to "fdisk -l" you only have 2 windows partitions, not counting /sda2.

I think you need to back up everything in your third partition and recreated it in the 5101 to 7650 space. You could try not formatting at first and then after rebooting, see what the partition table looks like after that.
 
Old 02-06-2007, 12:29 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Which version of windows are you using? Because now it(windows) resides in extended partition while windows xp installs itself on primary one. You can check /etc/lilo.conf and see what partitions are used during boot by lilo.
 
Old 02-13-2007, 04:49 PM   #4
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
@jschiwal
can u please elaborate a little bit ..

@Alien_Hominid
I am using windows XP SP2

For clarity here is picture of my partitions which I made using Acronis disk director suite 10.2
http://omkarenator.googlepages.com/partitions.JPG

I think the problem is severe cause I CANNOT install distros other than slack; not ubuntu, not debian, not gentoo.
This is a general problem. The gparted program which comes with every distro shows my hdd as UNALLOCATED

Do you have to make partitions with fdisk or such utility to be recognize bu linux (except slack )

..and sorry for late response

Thanks all
 
Old 02-14-2007, 01:12 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
A couple of points; your swap partition shouldn't be mounted to a regular mount point. The mount point should be simply 'swap'.

Windows likes it best if you have a Windows partition(any size) at the beginning and end of your extended partition. If you can repartition your disk that way it will probbaly relieve some of the problems. You can use a Windows tools to create all your partitions of the size that you want, then use Linux to just change the partition type and reformat the ones you want for Linux.
 
Old 02-14-2007, 06:08 AM   #6
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
@gnashley
I get you. But what about gparted of ANY distro *not* recognizing my partitions?
Is it a common problem with SATA? Is anyone having it? Finally, how to solve it?
You saw the ext3 partition, its actually my extended partition E:\ I can change it any moment. But the problem was there when it was Eie start and end of extended partn with fat32). So I dont think it will make any difference.

Thanks for the help.
 
Old 02-14-2007, 03:16 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
gparted definitely has problems with NTFS support on the latest live CD, it was unusable for me.

You should be careful to keep track of your partition table and make sure the type flags are correct. Don't use winbloze "tools" to do anything outside your winbloze partition unless you like reinstalling your systems If you're going to use Linux or BSD, learn to use Linux fdisk for all your partitioning. I have never ever seen it do anything wrong.

If you're going to start again, boot a live CD like Slax or Kanotix and wipe the partition table. Create a primary NTFS partition for winbloze. Create partitions for your other OS, remembering you get up to 4 total or 3 primaries and #4 is extended and then all the logical partitions you have space for. Install winbloze. Install your other OS. Configure your boot loader. Enjoy.

Last edited by Randux; 02-14-2007 at 03:20 PM.
 
Old 02-15-2007, 06:19 AM   #8
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks for the help. But if I redo all things (ie partitioning using fdisk and installing in the manner you told) will I be able to install any distro without trouble? I mean, will gparted recognize my partitions? Or is it a hardware problem (SATA)? I want to experiment with lots of distros, but because of this partitioning thing, I am uanble to do so. Rest of my hardware is really good, I bought it, so I wont be troubled by insufficient resources for any distro.

Thank you.
 
Old 02-15-2007, 10:26 AM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
A lot of guys are running Slackware and other distros on SATA drives.
 
  


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
need some help with partition tables O_o eNtoS Linux - Software 14 11-28-2006 12:16 PM
Raid, fdisk and partition tables zdenisl Linux - Software 0 10-21-2006 10:35 PM
need a list of partition tables on as many disks as possible drkstr Linux - Software 4 08-03-2006 11:46 AM
Partition tables, multiboot and Linux javier030664 Linux - General 1 06-15-2005 06:22 PM
Filesystems and Partition Tables blkmage Linux - Hardware 0 09-10-2004 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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