 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

20th January 2007, 08:26 AM
|
|
Registered User
|
|
Join Date: Oct 2005
Posts: 1,952

|
|
|
Is this data consistent?
Code:
[root:~#] du -hxs /
6.8G /
[root:~#] df -hxs /
Filesystem Size Used Avail Use% Mounted on
/dev/hdd6 21G 6.6G 14G 33% /
[root:~#] fdisk -l | grep hdd6
Device Boot Start End Blocks Id System
/dev/hdd6 62444 93665 15735636 83 Linux
My calculations tell me that the Blocks number tells me /dev/hdd6 is 15GB in size, which is consistent with what I remember having partitioned it to be. GParted also reports what fdisk is telling me.
Interesting gparted and df are reporting the same free space. I've also included what is reported by a SuperKaramba theme for the / partition. I just assume that is using the output of df and du.
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
|

20th January 2007, 06:34 PM
|
|
Registered User
|
|
Join Date: Oct 2005
Posts: 1,952

|
|
Here is the full output of fdisk -l
Code:
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9963 80027766 7 HPFS/NTFS
Disk /dev/hdd: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 * 1 31222 15735636 c W95 FAT32 (LBA)
/dev/hdd2 31222 158816 64307565+ 5 Extended
/dev/hdd5 31222 62444 15735636 83 Linux
/dev/hdd6 62444 93665 15735636 83 Linux
/dev/hdd7 93665 95753 1052226 82 Linux swap / Solaris
/dev/hdd8 95754 158816 31783718+ 8e Linux LVM
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 5 Extended
/dev/sda5 * 1 2611 20972794+ 83 Linux
/dev/sda6 2612 5222 20972826 83 Linux
/dev/sda7 5223 7180 15727603+ 83 Linux
/dev/sda8 7181 9138 15727603+ 83 Linux
/dev/sda9 9139 11096 15727603+ 83 Linux
/dev/sda10 11097 13054 15727603+ 83 Linux
/dev/sda11 13055 16971 31463271 7 HPFS/NTFS
/dev/sda12 16972 22192 41937651 8e Linux LVM
/dev/sda13 22193 26108 31455238+ 8e Linux LVM
/dev/sda14 26109 30401 34483491 8e Linux LVM
Here is something else I find interesting.
Here is my /boot/grub/menu.lst or at least the portion relevant to FC6
Code:
title Fedora Core (2.6.19-1.2895.fc6)
root (hd2,4)
kernel /boot/vmlinuz-2.6.19-1.2895.fc6 vga=795 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.19-1.2895.fc6.img
Does root(hd2,4) reference /dev/hdd6? I would think not as if the root option in the kernel line is set to root=/dev/hdd6, then I get this error.
EDIT: root(hd2,4) can't be /dev/hdd6 if you look at my /boot/grub/device.map. And as you can see from the fdisk above , sda5 is 20GB in size - the size reported by df in the 1st post.
Code:
[root:~#] cat /boot/grub/device.map
# this device map was generated by anaconda
(hd0) /dev/hda
(hd1) /dev/hdd
(hd2) /dev/sda
Yet my /etc/fstab shows this for the root partition
Code:
/dev/hdd6 / reiserfs defaults 1 1
EDIT: And gparted also notes sda5 as a root partition (see attachment)
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
Last edited by Jongi; 20th January 2007 at 06:49 PM.
|

20th January 2007, 07:01 PM
|
|
Registered User
|
|
Join Date: Oct 2005
Posts: 1,952

|
|
When I installed FC6 I did one of two things:
1. Installed it on /dev/hdd6, which was the partition FC5 was on, or
2. Installed it on /dev/sda5 saw that it installed fine and then formatted the partition /dev/hdd6.
I am pretty sure that I went with route 2. I tried to add the below to grub
Code:
title Fedora Core Test
root (hd1,5)
kernel /boot/vmlinuz-2.6.19-1.2895.fc6 vga=795 ro root=/dev/hdd6 rhgb quiet
initrd /boot/initrd-2.6.19-1.2895.fc6.img
This returned an Error 15: File Not Found
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
|

20th January 2007, 07:24 PM
|
|
Registered User
|
|
Join Date: Oct 2005
Posts: 1,952

|
|
It would seem that my recollection of how I installed was correct, ie it was option 2 above. So I changed the reference in the fstab to /dev/sda5. Before I did this I boot into Kubuntu and ran:
mount -t reiserfs /dev/hdd6 /mnt/test
ls /mnt/test
mount -t reiserfs /dev/sda5 /mnt/test
ls /mnt/test
It was only with the second set of commands that ls returned anything. So I changed the FC6 fstab within Kubuntu and rebooted into FC6. Now the results show:
Code:
[root:~#] du -hxs /
6.9G /
[root:~#] df -hxs /
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 21G 6.6G 14G 33% /
I'm surprised that the fstab allowed /dev/hdd6 to be mounted as root, yet an ls / was running of the /dev/sda5 partition.
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
|

20th January 2007, 07:32 PM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862

|
|
I get similar results.
Code:
df -hxs /
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 7.3G 5.1G 1.9G 74% /
A friend explained to me once why there was a difference in the 2 outputs but I can't remember what he said.
__________________
Mark N.
Perpetual Newbie
--
I wanted to proclaim myself "The Typo King" but there's way too much competion. :p
411874 Get Counted
|

20th January 2007, 10:57 PM
|
|
Registered User
|
|
Join Date: Oct 2005
Posts: 1,952

|
|
|
Reading the first post I suppose I wasn't clear that some information was saying that the partition size is 21GB while another was saying it is 15GB.
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
|

20th January 2007, 11:06 PM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862

|
|
I see that now, and fdisk -l returns a "relatively correct" value
Code:
/dev/hda5 8760 9733 7823623+ 83 Linux
I didn't bother to calculate, but it's close enough for me whereas yours is about 6 GB off
__________________
Mark N.
Perpetual Newbie
--
I wanted to proclaim myself "The Typo King" but there's way too much competion. :p
411874 Get Counted
|

24th January 2007, 08:40 AM
|
|
Registered User
|
|
Join Date: Oct 2005
Posts: 1,952

|
|
|
How is that the fstab has /dev/hdd6 mounted as the root partition yet an ls of the root partition listed the contents of what was is on /dev/sda5?
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 08:38 (Saturday, 25-05-2013)
|
|
 |
 |
 |
 |
|
|