FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-09-2007, 12:14 AM
zhu blue
 
Default large disk space problem?

hello:

I recently added additional 160GB disk to my F8 system. and partitioned
it as a single partition.

but when I use "df" command to show my disk, it only show the size is
9.2G

on my Desktop. GNOME it can show the disk as 149.0Gb correctly.

how to fix this problem?

the following is my disk info.

---------------------------------------------------------------------
[root@pc1 ~]# df
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext3 38G 15G 22G 41% /
tmpfs tmpfs 474M 12K 474M 1% /dev/shm
/dev/sda9 ext3 66G 61G 1.3G 98% /home
/dev/sda5 vfat 25G 18G 7.1G 72% /media/disk
/dev/sdb1 ext3 9.2G 5.3G 3.5G 61% /media/disk-1
/dev/sda1 vfat 15G 8.3G 6.4G 57% /media/disk-2
/dev/sda6 ext3 38G 3.9G 33G 11% /media/_home
[root@pc1 ~]# fdisk /dev/sdb

The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe2c5e2d5

Device Boot Start End Blocks Id System
/dev/sdb1 1 19457 156288321 83 Linux

Command (m for help): q

[root@pc1 ~]#
------------------------------------------------------------------

thanks,
zhu

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 12:23 AM
Karl Larsen
 
Default large disk space problem?

zhu blue wrote:

hello:

I recently added additional 160GB disk to my F8 system. and partitioned
it as a single partition.

but when I use "df" command to show my disk, it only show the size is
9.2G

on my Desktop. GNOME it can show the disk as 149.0Gb correctly.

how to fix this problem?

the following is my disk info.

---------------------------------------------------------------------
[root@pc1 ~]# df
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext3 38G 15G 22G 41% /
tmpfs tmpfs 474M 12K 474M 1% /dev/shm
/dev/sda9 ext3 66G 61G 1.3G 98% /home
/dev/sda5 vfat 25G 18G 7.1G 72% /media/disk
/dev/sdb1 ext3 9.2G 5.3G 3.5G 61% /media/disk-1
/dev/sda1 vfat 15G 8.3G 6.4G 57% /media/disk-2
/dev/sda6 ext3 38G 3.9G 33G 11% /media/_home
[root@pc1 ~]# fdisk /dev/sdb

The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe2c5e2d5

Device Boot Start End Blocks Id System
/dev/sdb1 1 19457 156288321 83 Linux

Command (m for help): q

[root@pc1 ~]#
------------------------------------------------------------------


thanks,
zhu


I see nothing wrong. But you must transfer some or all of your
system to the new /dev/sdb hard drive. Do so with care.



Karl


--

Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
GPG DF28 8F18 94F8 D5C6 9E44 163F 7FD1 3D06 C325 DA40

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 12:36 AM
Endy
 
Default large disk space problem?

zhu blue wrote:

hello:

I recently added additional 160GB disk to my F8 system. and partitioned
it as a single partition.

but when I use "df" command to show my disk, it only show the size is
9.2G

on my Desktop. GNOME it can show the disk as 149.0Gb correctly.

how to fix this problem?

the following is my disk info.

---------------------------------------------------------------------
[root@pc1 ~]# df
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext3 38G 15G 22G 41% /
tmpfs tmpfs 474M 12K 474M 1% /dev/shm
/dev/sda9 ext3 66G 61G 1.3G 98% /home
/dev/sda5 vfat 25G 18G 7.1G 72% /media/disk
/dev/sdb1 ext3 9.2G 5.3G 3.5G 61% /media/disk-1
/dev/sda1 vfat 15G 8.3G 6.4G 57% /media/disk-2
/dev/sda6 ext3 38G 3.9G 33G 11% /media/_home
[root@pc1 ~]# fdisk /dev/sdb

The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe2c5e2d5

Device Boot Start End Blocks Id System
/dev/sdb1 1 19457 156288321 83 Linux

Command (m for help): q

[root@pc1 ~]#
------------------------------------------------------------------


thanks,
zhu


What did you use to partition the drive? It might help to try and wipe
all the partition data and start over by repartitioning and reformatting
the drive...

Endy

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 01:42 AM
Tim
 
Default large disk space problem?

On Sat, 2007-12-08 at 18:23 -0700, Karl Larsen wrote:
> you must transfer some or all of your system to the new /dev/sdb hard
> drive.

Why do you say that? The original poster just said that they've added a
drive, they didn't mention anything about using it to replace their
existing system. They may well want something extra to their existing
drive space.

To the original poster, unless you do intend to use the new drive to
replace part or all of your existing drive, completely ignore what Karl
has just said.


--
(This computer runs FC7, my others run FC4, FC5 & FC6, in case that's
important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 01:51 AM
Tim
 
Default large disk space problem?

On Sun, 2007-12-09 at 09:14 +0800, zhu blue wrote:
> I recently added additional 160GB disk to my F8 system. and partitioned
> it as a single partition. but when I use "df" command to show my
> disk, it only show the size is 9.2G on my Desktop. GNOME it can show
> the disk as 149.0Gb correctly.
>
> [root@pc1 ~]# df
> Filesystem Type Size Used Avail Use% Mounted on
> /dev/sda7 ext3 38G 15G 22G 41% /
> tmpfs tmpfs 474M 12K 474M 1% /dev/shm
> /dev/sda9 ext3 66G 61G 1.3G 98% /home
> /dev/sda5 vfat 25G 18G 7.1G 72% /media/disk
> /dev/sdb1 ext3 9.2G 5.3G 3.5G 61% /media/disk-1
> /dev/sda1 vfat 15G 8.3G 6.4G 57% /media/disk-2
> /dev/sda6 ext3 38G 3.9G 33G 11% /media/_home

The above makes no mention of anything on /dev/sdb. So you haven't
mounted it, or it can't yet be mounted.

> [root@pc1 ~]# fdisk /dev/sdb
>
> The number of cylinders for this disk is set to 19457.
> There is nothing wrong with that, but this is larger than 1024,
> and could in certain setups cause problems with:
> 1) software that runs at boot time (e.g., old versions of LILO)
> 2) booting and partitioning software from other OSs
> (e.g., DOS FDISK, OS/2 FDISK)
>
> Command (m for help): p
>
> Disk /dev/sdb: 160.0 GB, 160041885696 bytes
> 255 heads, 63 sectors/track, 19457 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0xe2c5e2d5
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 1 19457 156288321 83 Linux

What steps have you gone through?

To make use of a drive, you partition it (even if that means using the
whole drive as one partition), fdisk is one tool that you can use. A
quick glance at the above looks like you've done that okay.

Then you format it with a file system (e.g. man mkfs.ext3).

Then you mount it (e.g. man fstab &/or man mount).

--
(This computer runs FC7, my others run FC4, FC5 & FC6, in case that's
important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 02:03 AM
"Mikkel L. Ellertson"
 
Default large disk space problem?

Tim wrote:
> On Sun, 2007-12-09 at 09:14 +0800, zhu blue wrote:
>> I recently added additional 160GB disk to my F8 system. and partitioned
>> it as a single partition. but when I use "df" command to show my
>> disk, it only show the size is 9.2G on my Desktop. GNOME it can show
>> the disk as 149.0Gb correctly.
>>
>> [root@pc1 ~]# df
>> Filesystem Type Size Used Avail Use% Mounted on
>> /dev/sda7 ext3 38G 15G 22G 41% /
>> tmpfs tmpfs 474M 12K 474M 1% /dev/shm
>> /dev/sda9 ext3 66G 61G 1.3G 98% /home
>> /dev/sda5 vfat 25G 18G 7.1G 72% /media/disk
>> /dev/sdb1 ext3 9.2G 5.3G 3.5G 61% /media/disk-1
^^^^^^^^^
>> /dev/sda1 vfat 15G 8.3G 6.4G 57% /media/disk-2
>> /dev/sda6 ext3 38G 3.9G 33G 11% /media/_home
>
> The above makes no mention of anything on /dev/sdb. So you haven't
> mounted it, or it can't yet be mounted.
>
>>
>> Disk /dev/sdb: 160.0 GB, 160041885696 bytes
>> 255 heads, 63 sectors/track, 19457 cylinders
>> Units = cylinders of 16065 * 512 = 8225280 bytes
>> Disk identifier: 0xe2c5e2d5
>>
>> Device Boot Start End Blocks Id System
>> /dev/sdb1 1 19457 156288321 83 Linux
>
> What steps have you gone through?
>
> To make use of a drive, you partition it (even if that means using the
> whole drive as one partition), fdisk is one tool that you can use. A
> quick glance at the above looks like you've done that okay.
>
> Then you format it with a file system (e.g. man mkfs.ext3).
>
> Then you mount it (e.g. man fstab &/or man mount).
>
It looks like the drive is already one big partition with an ext3
file system on it, but it is only shown as being 9.2G. It almost
looks like the partition was resized but the file system wasn't. If
it didn't already have 5.3G of data on it, it would be tempting to
delete and recreate the file system.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 02:22 AM
Tim
 
Default large disk space problem?

zhu blue:
>>> Disk /dev/sdb: 160.0 GB, 160041885696 bytes
>>> 255 heads, 63 sectors/track, 19457 cylinders
>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>> Disk identifier: 0xe2c5e2d5
>>>
>>> Device Boot Start End Blocks Id System
>>> /dev/sdb1 1 19457 156288321 83 Linux

Tim:
>> To make use of a drive, you partition it (even if that means using the
>> whole drive as one partition), fdisk is one tool that you can use. A
>> quick glance at the above looks like you've done that okay.

Mikkel L. Ellertson:
> It looks like the drive is already one big partition with an ext3
> file system on it, but it is only shown as being 9.2G. It almost
> looks like the partition was resized but the file system wasn't. If
> it didn't already have 5.3G of data on it, it would be tempting to
> delete and recreate the file system.

I was never too good at figuring out fdisk block counts, but I thought:

156288321 blocks times 512 byte blocks times two (to make it kilobytes)
gave 160,039,240,704 kilobytes (approx 160 GB).

How is it supposed to be worked out?

--
(This computer runs FC7, my others run FC4, FC5 & FC6, in case that's
important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 03:00 AM
"Mikkel L. Ellertson"
 
Default large disk space problem?

Tim wrote:
> zhu blue:
>>>> Disk /dev/sdb: 160.0 GB, 160041885696 bytes
>>>> 255 heads, 63 sectors/track, 19457 cylinders
>>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>>> Disk identifier: 0xe2c5e2d5
>>>>
>>>> Device Boot Start End Blocks Id System
>>>> /dev/sdb1 1 19457 156288321 83 Linux
>
> Tim:
>>> To make use of a drive, you partition it (even if that means using the
>>> whole drive as one partition), fdisk is one tool that you can use. A
>>> quick glance at the above looks like you've done that okay.
>
> Mikkel L. Ellertson:
>> It looks like the drive is already one big partition with an ext3
>> file system on it, but it is only shown as being 9.2G. It almost
>> looks like the partition was resized but the file system wasn't. If
>> it didn't already have 5.3G of data on it, it would be tempting to
>> delete and recreate the file system.
>
> I was never too good at figuring out fdisk block counts, but I thought:
>
> 156288321 blocks times 512 byte blocks times two (to make it kilobytes)
divided by 2
> gave 160,039,240,704 kilobytes (approx 160 GB).
>
> How is it supposed to be worked out?
>
You are assuming a block size of 512. You would get a better size
estimate by taking the number of cylinders (end + 1 - start) times
the bytes/cylinder. Then again, the fdisk man page says it does not
work well with large disks, and recommends using parted instead.

The partition is approx 160 GB, but from the output of df, the file
system is only 9.2 GB. So the file system is only a fraction of the
size of the partition. Unless there is a bug in df so that it is
mis-reporting the size of the file system, then the file system does
not fill the partition.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 04:09 AM
John Summerfield
 
Default large disk space problem?

Mikkel L. Ellertson wrote:

Tim wrote:

On Sun, 2007-12-09 at 09:14 +0800, zhu blue wrote:

I recently added additional 160GB disk to my F8 system. and partitioned
it as a single partition. but when I use "df" command to show my
disk, it only show the size is 9.2G on my Desktop. GNOME it can show
the disk as 149.0Gb correctly.

[root@pc1 ~]# df
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext3 38G 15G 22G 41% /
tmpfs tmpfs 474M 12K 474M 1% /dev/shm
/dev/sda9 ext3 66G 61G 1.3G 98% /home
/dev/sda5 vfat 25G 18G 7.1G 72% /media/disk
/dev/sdb1 ext3 9.2G 5.3G 3.5G 61% /media/disk-1

^^^^^^^^^

^^^^^^^^^^^^^^^
That's what you were supposed to see, Tim. That's the new drive.



--

Cheers
John

-- spambait
1aaaaaaa@coco.merseine.nu Z1aaaaaaa@coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-09-2007, 04:09 AM
Tim
 
Default large disk space problem?

On Sat, 2007-12-08 at 22:00 -0600, Mikkel L. Ellertson wrote:
> The partition is approx 160 GB, but from the output of df, the file
> system is only 9.2 GB. So the file system is only a fraction of the
> size of the partition. Unless there is a bug in df so that it is
> mis-reporting the size of the file system, then the file system does
> not fill the partition.

The original poster needs to step in here. But I'd be guessing that
they used dd to copy something over.

On F7, at least, df certainly works correctly with drives well above
160GB. For me, at least...

--
(This computer runs FC7, my others run FC4, FC5 & FC6, in case that's
important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 07:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org