Re: [newbie] re: newbie df

2005-03-28 Thread Rosemary McGillicuddy
On Monday 28 Mar 2005 17:09, SnapafunFrank wrote:
 Rosemary McGillicuddy wrote:
 Warnings well heeded.  I am almost too scared to do anything in Mandrake
  now - no just kidding.
 
 
 [EMAIL PROTECTED] rosemary]# fdisk /dev/hda
 
 The number of cylinders for this disk is set to 4865.
 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/hda: 40.0 GB, 40020664320 bytes
 255 heads, 63 sectors/track, 4865 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Please understand my notes to your table here. Is this what you were
 after? Strictly your call here.

Device Boot  Start End  Blocks   Id  System
[ Franks approx partition sizes ] /dev/hda1   *   1
 236418988798+   7  HPFS/NTFS   [19gig ] /dev/hda2 
2423486519623397+   5  Extended [20gig ]
  /dev/hda524233186 6136798+  83  Linux
 [6gig] ~ [ This is your root partition ] /dev/hda64808
 4854  377496   83  Linux   [350MB ]
  /dev/hda748554865   88326   82  Linux swap   
[82MB ] /dev/hda831873326 1124518+  82 
  Linux swap  [1.1gig ] /dev/hda933274807   
  11896101   83  Linux [12gig - wow, wish I could
  afford this much] ~ [ This is your /home partition ]
 
 Partition table entries are not in disk order
 
 I can breathe now I am out of fdisk!
 
 regards
 Rosemary

 OK Rosemary, I need to study this a little but for now see what I see.

 You have a 40gig hard drive:

 You have 7 ( note ~ seven ) partitions:

 You have only 1 primary partition ~ you ought to have 3 but not
 essential: more about this later.

 You have only 1 ( one ) logic partition ~ you are allowed up to 16 last
 I heard:

 You therefore have 1 ( all you are allowed I believe ) extended
 partition ~ it is within this partition that you have your logic
 partitions:

 You have 2 swap partitions ~ no idea why you have two when one is enough
 especially when one of them appears huge.

 ( Don't mind me rambling on here ~ I'm working out loud.)

 Generally the rules here are:

 No more than 4 primary partitions with only one of them being made an
 extended partition in which you can have up to 16 logic ( LBA ) partitions.

 You can have as many swap partitions as you like though usually one is
 enough.

 Partition numbering is:
  primary 1 ~ 4 ( includes the extended partition )
  With LBA partitions numbering 5 ~ say 16

 The only partitions you have correct here are:

 /dev/hda1 *  [ Your WinXP partition and the * means it is bootable ]
 /dev/hda1 [ One of  your swap partitions and I say this is correct
 because it appears to be of the correct size ~ Usually no more than 1.5
 times your RAM size if it is under 512MB ]

 Now lets take your df printf: [ printf is syntax for echo or in other words
 ~ what you see returned to the screen when you issue a command seeking
 info. ]

 FilesystemSize  Used Avail Use% Mounted on

 /dev/hda5 5.8G  1.7G  3.9G  30% /[ My rough math for
 the above table isn't to far off here afterall.]

 /dev/hda9  12G  170M   12G   2% /home [ You must work out what
 you really will be using here because this is far to big at present  ~ 
 only 170MB of 12000MB used so far.]

 SO.

 Your WinXP partition does not get mounted when you boot up ~ you may prefer
 this but fstab has it entered.

 Your hda6 partition doesn't get mounted so we need to discover which
 directory this relates to. [ See below ]

 Your hda8, in my opinion is just wasted space at present.

 Please try this:

 Go KConfigure Your DesktopPartitions  and tell me what you see
 there. If there is more there than /dev/hda5 and /dev/hda9, ( should at
 least be /dev/hda7 and /dev/hda8 ),
   then please make a note of what partitions are there AND what there
 sizes are, ( Usually in megabytes ~ [ MB ] ), as this will save having
 to work out partition sizes using the
   number of blocks reported by the fdisk command. { Went back and did
 that anyway but am still curious ]

 Another thing to do is to mount that /dev/hda6 partition to find out
 what it is. So do as su:

 # mkdir /mnt/hda6
 # mount /dev/hda6 /mnt/hda6  [ If this gives you errors then stop here
 and let me know what those errors are. ]
 # cd /mnt/hda6
 # ls
 Look at any directories listed here ( other than lost  found ) and tell
 me what they are please.

 Not trying to crowd you so will stop here and await your replies.

Okay - first up:
during the install, I selected the partitions that Mandrake preselected - 
which is what I was advised 

Re: [newbie] re: newbie df

2005-03-28 Thread SnapafunFrank
Rosemary McGillicuddy wrote:
On Monday 28 Mar 2005 17:09, SnapafunFrank wrote:
 

Rosemary McGillicuddy wrote:
   

Warnings well heeded.  I am almost too scared to do anything in Mandrake
now - no just kidding.
[EMAIL PROTECTED] rosemary]# fdisk /dev/hda
The number of cylinders for this disk is set to 4865.
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/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 

Please understand my notes to your table here. Is this what you were
after? Strictly your call here.
   

 Device Boot  Start End  Blocks   Id  System
 [ Franks approx partition sizes ] /dev/hda1   *   1
  236418988798+   7  HPFS/NTFS   [19gig ] /dev/hda2 
 2423486519623397+   5  Extended [20gig ]
/dev/hda524233186 6136798+  83  Linux
  [6gig] ~ [ This is your root partition ] /dev/hda64808
  4854  377496   83  Linux   [350MB ]
/dev/hda748554865   88326   82  Linux swap   
 [82MB ] /dev/hda831873326 1124518+  82 
Linux swap  [1.1gig ] /dev/hda933274807   
11896101   83  Linux [12gig - wow, wish I could
afford this much] ~ [ This is your /home partition ]

Partition table entries are not in disk order
I can breathe now I am out of fdisk!
regards
Rosemary
 

OK Rosemary, I need to study this a little but for now see what I see.
You have a 40gig hard drive:
You have 7 ( note ~ seven ) partitions:
You have only 1 primary partition ~ you ought to have 3 but not
essential: more about this later.
You have only 1 ( one ) logic partition ~ you are allowed up to 16 last
I heard:
You therefore have 1 ( all you are allowed I believe ) extended
partition ~ it is within this partition that you have your logic
partitions:
You have 2 swap partitions ~ no idea why you have two when one is enough
especially when one of them appears huge.
( Don't mind me rambling on here ~ I'm working out loud.)
Generally the rules here are:
No more than 4 primary partitions with only one of them being made an
extended partition in which you can have up to 16 logic ( LBA ) partitions.
You can have as many swap partitions as you like though usually one is
enough.
Partition numbering is:
primary 1 ~ 4 ( includes the extended partition )
With LBA partitions numbering 5 ~ say 16
The only partitions you have correct here are:
/dev/hda1 *  [ Your WinXP partition and the * means it is bootable ]
/dev/hda1 [ One of  your swap partitions and I say this is correct
because it appears to be of the correct size ~ Usually no more than 1.5
times your RAM size if it is under 512MB ]
Now lets take your df printf: [ printf is syntax for echo or in other words
~ what you see returned to the screen when you issue a command seeking
info. ]
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 5.8G  1.7G  3.9G  30% /[ My rough math for
the above table isn't to far off here afterall.]
/dev/hda9  12G  170M   12G   2% /home [ You must work out what
you really will be using here because this is far to big at present  ~ 
only 170MB of 12000MB used so far.]

SO.
Your WinXP partition does not get mounted when you boot up ~ you may prefer
this but fstab has it entered.
Your hda6 partition doesn't get mounted so we need to discover which
directory this relates to. [ See below ]
Your hda8, in my opinion is just wasted space at present.
Please try this:
Go KConfigure Your DesktopPartitions  and tell me what you see
there. If there is more there than /dev/hda5 and /dev/hda9, ( should at
least be /dev/hda7 and /dev/hda8 ),
 then please make a note of what partitions are there AND what there
sizes are, ( Usually in megabytes ~ [ MB ] ), as this will save having
to work out partition sizes using the
 number of blocks reported by the fdisk command. { Went back and did
that anyway but am still curious ]
Another thing to do is to mount that /dev/hda6 partition to find out
what it is. So do as su:
# mkdir /mnt/hda6
# mount /dev/hda6 /mnt/hda6  [ If this gives you errors then stop here
and let me know what those errors are. ]
# cd /mnt/hda6
# ls
Look at any directories listed here ( other than lost  found ) and tell
me what they are please.
Not trying to crowd you so will stop here and await your replies.
   

Okay - first up:
during the install, I selected the partitions that Mandrake preselected - 
which is what I was advised to do, probably at linuxquestions or another 
forum, or possibly on the installation process itself.


Re: [newbie] re: newbie df

2005-03-28 Thread Mikkel L. Ellertson
SnapafunFrank wrote:
Rosemary McGillicuddy wrote:
Warnings well heeded.  I am almost too scared to do anything in 
Mandrake now - no just kidding.

[EMAIL PROTECTED] rosemary]# fdisk /dev/hda
The number of cylinders for this disk is set to 4865.
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/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 

Please understand my notes to your table here. Is this what you were 
after? Strictly your call here.

  Device Boot  Start End  Blocks   Id  
System   [ Franks approx partition sizes ]
/dev/hda1   *   1236418988798+   7  
HPFS/NTFS   [19gig ]
/dev/hda22423486519623397+   5  
Extended [20gig ]
/dev/hda524233186 6136798+  83  
Linux[6gig] ~ [ This is your root partition ]
/dev/hda648084854  377496   83  
Linux   [350MB ]
/dev/hda748554865   88326   82  Linux 
swap  [82MB ]
/dev/hda831873326 1124518+  82  Linux 
swap  [1.1gig ]
/dev/hda93327480711896101   83  
Linux [12gig - wow, wish I could afford this much] 
~ [ This is your /home partition ]

Partition table entries are not in disk order
I can breathe now I am out of fdisk!
regards
Rosemary
 

OK Rosemary, I need to study this a little but for now see what I see.
You have a 40gig hard drive:
You have 7 ( note ~ seven ) partitions:
You have only 1 primary partition ~ you ought to have 3 but not 
essential: more about this later.

Not realy. You can have up to 4, but if you use an extended partition, 
it uses 1 primary partition slot.

You have only 1 ( one ) logic partition ~ you are allowed up to 16 last 
I heard:

Each partition in the extended partition is a logical partition. This 
system has 5 logical partitions in the extended partition.
You therefore have 1 ( all you are allowed I believe ) extended 
partition ~ it is within this partition that you have your logic 
partitions:

You have 2 swap partitions ~ no idea why you have two when one is enough 
especially when one of them appears huge.

About the only reasion for the second swap partition would be if using 
Software Suspend. You need a swap partition a bit larger then your 
physical memory to hold the currend system state when you suspend to 
disk. But I don't think too many people are using it yet. But 1.1G does 
look a bit large. On the other hand, the 82MB swap partition is realy 
too small to be usefull...
Generally the rules here are:
No more than 4 primary partitions with only one of them being made an 
extended partition in which you can have up to 16 logic partitions.

You can have as many swap partitions as you like though usually one is 
enough.

Partition numbering is:
primary 1 ~ 4 ( includes the extended partition )
With LBA partitions numbering 5 ~ say 16

Logical partitions, not LBA. LBA is a way of accessing a hard drive, not 
a partition type. (Logical Block Allocation if I remember right...)
The only partitions you have correct here are:
/dev/hda1 *  [ Your WinXP partition and the * means it is bootable ]
/dev/hda1 [ One of  your swap partitions and I say this is correct 
because it appears to be of the correct size ~ Usually no more than 1.5 
times your RAM size if it is under 512MB ]

I think you mean dha8 here, and not hda1.
Now lets take your df printf: [ printf is syntax for echo or in other 
words ~ what you see returned to the screen when you issue a command 
seeking info. ]

FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 5.8G  1.7G  3.9G  30% /[ My rough math for 
the above table isn't to far off here afterall.]

/dev/hda9  12G  170M   12G   2% /home [ You must work out 
what you really will be using here because this is far to big at 
present  ~  only 170MB of 12000MB used so far.]

SO.
Your WinXP partition does not get mounted when you boot up ~ you may 
prefer this but fstab has it entered.

Your hda6 partition doesn't get mounted so we need to discover which 
directory this relates to. [ See below ]

This partition was being mounted on /mnt before we disabled it.
Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] re: newbie df

2005-03-28 Thread Mikkel L. Ellertson
Rosemary McGillicuddy wrote:
Okay - first up:
during the install, I selected the partitions that Mandrake preselected - 
which is what I was advised to do, probably at linuxquestions or another 
forum, or possibly on the installation process itself.

These were:
hda5 (5.8Gb, /, ext)
hda6 (368Mb, /mnt, ext3)
hda9 (11Gb, /home, ext 3)
If this was incorrect, then so be it - I was simply doing what I thought I had 
been advised to do.  There was also swap there somewhere.

I seriously wonder if all this questioning is worth it - your time, and my 
limited knowledge.  I simply want a system that works.  If I have made a 
mistake, okay, then fix it if can be fixed simply, or reinstall.  It seems 
the fix is not simple, and I believe it is time to reinstall.

I am sorry if this disappoints you ... and I am sorry if I have wasted your 
time.  I acknowledge that I probably stuffed up when I attempted to install 
the mouse, however, there were always problems with stalling, even at the 
first install attempt.  I see on other forums that Mandrake is reputed to 
have problems with USB devices.  That may be disputed here - I don't know.

I do know that I need to have a system that works, and if i don't fully 
understand why it didn't, then I can live with that.  I hope you can see my 
point.  I read recently - on the local LUG mailing list I think - that some 
prefer to wrestle with linux, than actually use their system  I *don't* fall 
into that category.

I really am deeply appreciative of your efforts to help, and of other listers 
- but am beginning to wonder if it is going anywhere.

Regards
Rosemary
Rosemary,
 While I would love to take this through to the end, in this case, you 
are probably right about a re-install being the best fix. If I were 
sitting in front of your box, I could probably get everything sorted out 
in less time then it would take to install. But doing it over the list, 
it will probably take at least a few days. I would enjoy the chalange, 
but it is probably not in your best interest. If you had more Linux 
experence, and wanted to learn system repair, that would be different.

 Now, when you re-install, you will want to save your /home partition, 
(hda9) and probably your extra data partition (hda6).

One thing I would do different - you will want hda6 to mount on /data or 
/mnt/data. You do NOT want it on /mnt. If you want, you can just tell 
the installer to leave it alone, and we can help you create a mount 
point for it later.

Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] re: newbie df

2005-03-28 Thread Rosemary McGillicuddy
On Tuesday 29 Mar 2005 04:49, Mikkel L. Ellertson wrote:
 SnapafunFrank wrote:
  Rosemary McGillicuddy wrote:
  Warnings well heeded.  I am almost too scared to do anything in
  Mandrake now - no just kidding.
 
 
  [EMAIL PROTECTED] rosemary]# fdisk /dev/hda
 
  The number of cylinders for this disk is set to 4865.
  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/hda: 40.0 GB, 40020664320 bytes
  255 heads, 63 sectors/track, 4865 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
 
  Please understand my notes to your table here. Is this what you were
  after? Strictly your call here.
 
Device Boot  Start End  Blocks   Id
  System   [ Franks approx partition sizes ]
  /dev/hda1   *   1236418988798+   7
  HPFS/NTFS   [19gig ]
  /dev/hda22423486519623397+   5
  Extended [20gig ]
  /dev/hda524233186 6136798+  83
  Linux[6gig] ~ [ This is your root partition ]
  /dev/hda648084854  377496   83
  Linux   [350MB ]
  /dev/hda748554865   88326   82  Linux
  swap  [82MB ]
  /dev/hda831873326 1124518+  82  Linux
  swap  [1.1gig ]
  /dev/hda93327480711896101   83
  Linux [12gig - wow, wish I could afford this much]
  ~ [ This is your /home partition ]
 
  Partition table entries are not in disk order
 
  I can breathe now I am out of fdisk!
 
  regards
  Rosemary
 
  OK Rosemary, I need to study this a little but for now see what I see.
 
  You have a 40gig hard drive:
 
  You have 7 ( note ~ seven ) partitions:
 
  You have only 1 primary partition ~ you ought to have 3 but not
  essential: more about this later.

 Not realy. You can have up to 4, but if you use an extended partition,
 it uses 1 primary partition slot.

  You have only 1 ( one ) logic partition ~ you are allowed up to 16 last
  I heard:

 Each partition in the extended partition is a logical partition. This
 system has 5 logical partitions in the extended partition.

  You therefore have 1 ( all you are allowed I believe ) extended
  partition ~ it is within this partition that you have your logic
  partitions:
 
  You have 2 swap partitions ~ no idea why you have two when one is enough
  especially when one of them appears huge.

 About the only reasion for the second swap partition would be if using
 Software Suspend. You need a swap partition a bit larger then your
 physical memory to hold the currend system state when you suspend to
 disk. But I don't think too many people are using it yet. But 1.1G does
 look a bit large. On the other hand, the 82MB swap partition is realy
 too small to be usefull...

I wonder if this happened at the attempt to get the mouse going ...  

  Generally the rules here are:
 
  No more than 4 primary partitions with only one of them being made an
  extended partition in which you can have up to 16 logic partitions.
 
  You can have as many swap partitions as you like though usually one is
  enough.
 
  Partition numbering is:
  primary 1 ~ 4 ( includes the extended partition )
  With LBA partitions numbering 5 ~ say 16

 Logical partitions, not LBA. LBA is a way of accessing a hard drive, not
 a partition type. (Logical Block Allocation if I remember right...)

  The only partitions you have correct here are:
 
  /dev/hda1 *  [ Your WinXP partition and the * means it is bootable ]
  /dev/hda1 [ One of  your swap partitions and I say this is correct
  because it appears to be of the correct size ~ Usually no more than 1.5
  times your RAM size if it is under 512MB ]

 I think you mean dha8 here, and not hda1.

  Now lets take your df printf: [ printf is syntax for echo or in other
  words ~ what you see returned to the screen when you issue a command
  seeking info. ]
 
  FilesystemSize  Used Avail Use% Mounted on
 
  /dev/hda5 5.8G  1.7G  3.9G  30% /[ My rough math for
  the above table isn't to far off here afterall.]
 
  /dev/hda9  12G  170M   12G   2% /home [ You must work out
  what you really will be using here because this is far to big at
  present  ~  only 170MB of 12000MB used so far.]
 
  SO.
  Your WinXP partition does not get mounted when you boot up ~ you may
  prefer this but fstab has it entered.
 
  Your hda6 partition doesn't get mounted so we need to discover which
  directory this relates to. [ See below ]

 This partition was being mounted on /mnt before we disabled it.

 Mikkel


Want to buy your Pack or Services from 

Re: [newbie] df table file

2005-03-27 Thread RickSisler
SnapafunFrank ([EMAIL PROTECTED]) wrote:
 When within my system I issue the following:

 [EMAIL PROTECTED] /]# df
 FilesystemSize  Used Avail Use% Mounted on
 /dev/hda5 966M  714M  203M  78% /
 /dev/hda1 966M   14M  903M   2% /boot
 /dev/hda6 9.4G  5.1G  4.0G  57% /usr
 /dev/hda8 9.4G  8.8G  693M  93% /home
 /dev/hda91020M  312M  656M  33% /var
 /dev/hda3  12G  2.0G  8.8G  19% /mnt/empty
 /dev/hda4 3.4G  2.7G  712M  80% /mnt/win_h
 /dev/hdb2  16M  2.3M   13M  16% /mnt/hdb2_boot
 /dev/hdb5  92M   55M   33M  63% /mnt/hdb5_root
 /dev/hdb6  92M   62M   25M  72% /mnt/hdb6_var
 /dev/hdb7 3.1G  1.9G  1.1G  64% /mnt/hdb7_usr
 /dev/hdb9 1.5G  1.4G  151M  91% /mnt/hdb9_home
 /dev/hdb1  14G   13G  1.2G  92% /mnt/win_c2

 I get a summary of all my partitions AND their names.

 However, I'm unable to do this when I'm NOT within the system:

 So, is there a file on the system that could simply give me this info by
 simply reading it ?
Hi,
the *df* command reports free disk space from all mounted file
systems. So take a look at /etc/mtab and /etc/fstab which will give you the
names and mount points your looking for.
For more info.. man mount, fstab and df 

Hopefully helpfull ..
-- 
RickS
gpg --recv-keys --keyserver www.keyserver.net 0x24AABE61

Science without religion is lame, religion without science
is blind.  --Albert Einstein


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



[newbie] df

2005-03-27 Thread Rosemary McGillicuddy
This is my df - quite different to what knoppix gave!
[EMAIL PROTECTED] rosemary]$ df
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 5.8G  1.7G  3.9G  30% /
/dev/hda9  12G  170M   12G   2% /home
[EMAIL PROTECTED] rosemary]$
It's the same when I am root.
Rosemary




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df table file

2005-03-27 Thread SnapafunFrank
RickSisler wrote:
SnapafunFrank ([EMAIL PROTECTED]) wrote:
 

When within my system I issue the following:
[EMAIL PROTECTED] /]# df
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 966M  714M  203M  78% /
/dev/hda1 966M   14M  903M   2% /boot
/dev/hda6 9.4G  5.1G  4.0G  57% /usr
/dev/hda8 9.4G  8.8G  693M  93% /home
/dev/hda91020M  312M  656M  33% /var
/dev/hda3  12G  2.0G  8.8G  19% /mnt/empty
/dev/hda4 3.4G  2.7G  712M  80% /mnt/win_h
/dev/hdb2  16M  2.3M   13M  16% /mnt/hdb2_boot
/dev/hdb5  92M   55M   33M  63% /mnt/hdb5_root
/dev/hdb6  92M   62M   25M  72% /mnt/hdb6_var
/dev/hdb7 3.1G  1.9G  1.1G  64% /mnt/hdb7_usr
/dev/hdb9 1.5G  1.4G  151M  91% /mnt/hdb9_home
/dev/hdb1  14G   13G  1.2G  92% /mnt/win_c2
I get a summary of all my partitions AND their names.
However, I'm unable to do this when I'm NOT within the system:
So, is there a file on the system that could simply give me this info by
simply reading it ?
   

Hi,
the *df* command reports free disk space from all mounted file
systems. So take a look at /etc/mtab and /etc/fstab which will give you the
names and mount points your looking for.
For more info.. man mount, fstab and df 
Hopefully helpfull ..
 

Thanks for that RickS but as I stated above, the fstab on the system I'm 
trying to recover is somewhat unreliable.

( It starts that its mount point for one partition is /mnt for example. )
At present I'm even unaware of how many partitions that system has.
There are long ways of finding out but you have given me another place 
to look before I go there with tomsrtbt.

Again, your input is greatly appreciated.
--
Newbie Seeking USER_FUNCTIONALITY always!
Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df

2005-03-27 Thread SnapafunFrank
Rosemary McGillicuddy wrote:
This is my df - quite different to what knoppix gave!
[EMAIL PROTECTED] rosemary]$ df
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 5.8G  1.7G  3.9G  30% /
/dev/hda9  12G  170M   12G   2% /home
[EMAIL PROTECTED] rosemary]$
It's the same when I am root.
Rosemary



There is something very wrong here when put with your fstab file I THINK!
WARNING: Do not muck about with the following  fdisk  command or you 
could corrupt your partition table and loose everything!

Please do as su :
$ su
password:
# fdisk/dev/hda  Enter
Type the letter ' p ' and Enter ( as always ~ Quotes not included )
Highlight the table output and  Right Click   Copy 
 Paste  into your reply email to me.
[ Once you have copied the printout and whilst still within konsole: ( 
or go back to konsole later if you wish ):
 type the letter ' q ' ( Q for quit ) and press Enter to get out of 
fdisk. ]
AND as stated above ~ don't go looking around with this command ~ it 
could land you in trouble.

If you are not happy with my warnings here then please call me.
--
Newbie Seeking USER_FUNCTIONALITY always!
Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



[newbie] re: newbie df

2005-03-27 Thread Rosemary McGillicuddy
Warnings well heeded.  I am almost too scared to do anything in Mandrake now - 
no just kidding.


[EMAIL PROTECTED] rosemary]# fdisk /dev/hda

The number of cylinders for this disk is set to 4865.
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/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/hda1   *   1236418988798+   7  HPFS/NTFS
/dev/hda22423486519623397+   5  Extended
/dev/hda524233186 6136798+  83  Linux
/dev/hda648084854  377496   83  Linux
/dev/hda748554865   88326   82  Linux swap
/dev/hda831873326 1124518+  82  Linux swap
/dev/hda93327480711896101   83  Linux

Partition table entries are not in disk order

I can breathe now I am out of fdisk!

regards
Rosemary



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df table file

2005-03-27 Thread Mikkel L. Ellertson
SnapafunFrank wrote:
RickSisler wrote:
SnapafunFrank ([EMAIL PROTECTED]) wrote:
 

When within my system I issue the following:
[EMAIL PROTECTED] /]# df
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 966M  714M  203M  78% /
/dev/hda1 966M   14M  903M   2% /boot
/dev/hda6 9.4G  5.1G  4.0G  57% /usr
/dev/hda8 9.4G  8.8G  693M  93% /home
/dev/hda91020M  312M  656M  33% /var
/dev/hda3  12G  2.0G  8.8G  19% /mnt/empty
/dev/hda4 3.4G  2.7G  712M  80% /mnt/win_h
/dev/hdb2  16M  2.3M   13M  16% /mnt/hdb2_boot
/dev/hdb5  92M   55M   33M  63% /mnt/hdb5_root
/dev/hdb6  92M   62M   25M  72% /mnt/hdb6_var
/dev/hdb7 3.1G  1.9G  1.1G  64% /mnt/hdb7_usr
/dev/hdb9 1.5G  1.4G  151M  91% /mnt/hdb9_home
/dev/hdb1  14G   13G  1.2G  92% /mnt/win_c2
I get a summary of all my partitions AND their names.
However, I'm unable to do this when I'm NOT within the system:
So, is there a file on the system that could simply give me this info by
simply reading it ?
  
Hi,
the *df* command reports free disk space from all mounted file
systems. So take a look at /etc/mtab and /etc/fstab which will give 
you the
names and mount points your looking for.
For more info.. man mount, fstab and df 

Hopefully helpfull ..
 

Thanks for that RickS but as I stated above, the fstab on the system I'm 
trying to recover is somewhat unreliable.

( It starts that its mount point for one partition is /mnt for example. )
At present I'm even unaware of how many partitions that system has.
There are long ways of finding out but you have given me another place 
to look before I go there with tomsrtbt.

Again, your input is greatly appreciated.
The names are generated by whare they are mounted. This is controlled by 
/etc/mtab in the root partition, and is also reflected in /proc/mounts. 
The names will be different if you boot from a CD, and mount them, or if 
you move the drive to a different system. On a working system, the space 
information is calculated by the kernel.

You can get where things would normaly be mounted by looking in 
/etc/fstab on the root partition. If you had booted from a CD, and 
/dev/hda5 were mounted on /mnt, then the file would be /mnt/etc/fstab. 
(The rescue mode of the install cd has the option of mounting all the 
partition on /mnt, so that what would normaly be mounted on /mnt/empty 
would end up mounted on /mnt/mnt/empty, and so forth.

Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df table file

2005-03-27 Thread SnapafunFrank
Mikkel L. Ellertson wrote:
SnapafunFrank wrote:
RickSisler wrote:
SnapafunFrank ([EMAIL PROTECTED]) wrote:
 

When within my system I issue the following:
[EMAIL PROTECTED] /]# df
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 966M  714M  203M  78% /
/dev/hda1 966M   14M  903M   2% /boot
/dev/hda6 9.4G  5.1G  4.0G  57% /usr
/dev/hda8 9.4G  8.8G  693M  93% /home
/dev/hda91020M  312M  656M  33% /var
/dev/hda3  12G  2.0G  8.8G  19% /mnt/empty
/dev/hda4 3.4G  2.7G  712M  80% /mnt/win_h
/dev/hdb2  16M  2.3M   13M  16% /mnt/hdb2_boot
/dev/hdb5  92M   55M   33M  63% /mnt/hdb5_root
/dev/hdb6  92M   62M   25M  72% /mnt/hdb6_var
/dev/hdb7 3.1G  1.9G  1.1G  64% /mnt/hdb7_usr
/dev/hdb9 1.5G  1.4G  151M  91% /mnt/hdb9_home
/dev/hdb1  14G   13G  1.2G  92% /mnt/win_c2
I get a summary of all my partitions AND their names.
However, I'm unable to do this when I'm NOT within the system:
So, is there a file on the system that could simply give me this 
info by
simply reading it ?
  

Hi,
the *df* command reports free disk space from all mounted file
systems. So take a look at /etc/mtab and /etc/fstab which will give 
you the
names and mount points your looking for.
For more info.. man mount, fstab and df 

Hopefully helpfull ..
 

Thanks for that RickS but as I stated above, the fstab on the system 
I'm trying to recover is somewhat unreliable.

( It starts that its mount point for one partition is /mnt for 
example. )

At present I'm even unaware of how many partitions that system has.
There are long ways of finding out but you have given me another 
place to look before I go there with tomsrtbt.

Again, your input is greatly appreciated.
The names are generated by whare they are mounted. This is controlled 
by /etc/mtab in the root partition, and is also reflected in 
/proc/mounts. The names will be different if you boot from a CD, and 
mount them, or if you move the drive to a different system. On a 
working system, the space information is calculated by the kernel.

You can get where things would normaly be mounted by looking in 
/etc/fstab on the root partition. If you had booted from a CD, and 
/dev/hda5 were mounted on /mnt, then the file would be /mnt/etc/fstab. 
(The rescue mode of the install cd has the option of mounting all the 
partition on /mnt, so that what would normaly be mounted on /mnt/empty 
would end up mounted on /mnt/mnt/empty, and so forth.

Mikkel
Thanks Mikkel ~ got all that and I now know that getting the names of 
the partitions that a system users has various ways of finding them out ~
but that no one file that relates specifically
to this is available to see from using another system to look in. Worth 
a try though.
--

Newbie Seeking USER_FUNCTIONALITY always!
Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] re: newbie df

2005-03-27 Thread SnapafunFrank
Rosemary McGillicuddy wrote:
Warnings well heeded.  I am almost too scared to do anything in Mandrake now - 
no just kidding.

[EMAIL PROTECTED] rosemary]# fdisk /dev/hda
The number of cylinders for this disk is set to 4865.
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/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 

Please understand my notes to your table here. Is this what you were 
after? Strictly your call here.

  Device Boot  Start End  Blocks   Id  System   
[ Franks approx partition sizes ]
/dev/hda1   *   1236418988798+   7  HPFS/NTFS   
[19gig ]
/dev/hda22423486519623397+   5  Extended 
[20gig ]
/dev/hda524233186 6136798+  83  Linux   
 [6gig] ~ [ This is your root partition ]
/dev/hda648084854  377496   83  Linux   
[350MB ]
/dev/hda748554865   88326   82  Linux swap  
[82MB ]
/dev/hda831873326 1124518+  82  Linux swap  
[1.1gig ]
/dev/hda93327480711896101   83  Linux   
  [12gig - wow, wish I could afford this much] ~ [ This is your /home partition 
]
Partition table entries are not in disk order
I can breathe now I am out of fdisk!
regards
Rosemary
 

OK Rosemary, I need to study this a little but for now see what I see.
You have a 40gig hard drive:
You have 7 ( note ~ seven ) partitions:
You have only 1 primary partition ~ you ought to have 3 but not 
essential: more about this later.

You have only 1 ( one ) logic partition ~ you are allowed up to 16 last 
I heard:

You therefore have 1 ( all you are allowed I believe ) extended 
partition ~ it is within this partition that you have your logic partitions:

You have 2 swap partitions ~ no idea why you have two when one is enough 
especially when one of them appears huge.

( Don't mind me rambling on here ~ I'm working out loud.)
Generally the rules here are:
No more than 4 primary partitions with only one of them being made an 
extended partition in which you can have up to 16 logic ( LBA ) partitions.

You can have as many swap partitions as you like though usually one is 
enough.

Partition numbering is:
primary 1 ~ 4 ( includes the extended partition )
With LBA partitions numbering 5 ~ say 16
The only partitions you have correct here are:
/dev/hda1 *  [ Your WinXP partition and the * means it is bootable ]
/dev/hda1 [ One of  your swap partitions and I say this is correct because 
it appears to be of the correct size ~ Usually no more than 1.5 times your RAM 
size if it is under 512MB ]
Now lets take your df printf: [ printf is syntax for echo or in other words ~ 
what you see returned to the screen when you issue a command seeking info. ]
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 5.8G  1.7G  3.9G  30% /[ My rough math for the 
above table isn't to far off here afterall.]
/dev/hda9  12G  170M   12G   2% /home [ You must work out what you 
really will be using here because this is far to big at present  ~  only 170MB 
of 12000MB used so far.]
SO. 

Your WinXP partition does not get mounted when you boot up ~ you may prefer 
this but fstab has it entered.
Your hda6 partition doesn't get mounted so we need to discover which directory 
this relates to. [ See below ]
Your hda8, in my opinion is just wasted space at present.
Please try this:
Go KConfigure Your DesktopPartitions  and tell me what you see 
there. If there is more there than /dev/hda5 and /dev/hda9, ( should at 
least be /dev/hda7 and /dev/hda8 ),
 then please make a note of what partitions are there AND what there 
sizes are, ( Usually in megabytes ~ [ MB ] ), as this will save having 
to work out partition sizes using the
 number of blocks reported by the fdisk command. { Went back and did 
that anyway but am still curious ]

Another thing to do is to mount that /dev/hda6 partition to find out 
what it is. So do as su:

# mkdir /mnt/hda6
# mount /dev/hda6 /mnt/hda6  [ If this gives you errors then stop here 
and let me know what those errors are. ]
# cd /mnt/hda6
# ls   
Look at any directories listed here ( other than lost  found ) and tell 
me what they are please.

Not trying to crowd you so will stop here and await your replies.
--
Newbie Seeking USER_FUNCTIONALITY always!
Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213 



Want to buy your Pack or Services from 

[newbie] df table file

2005-03-26 Thread SnapafunFrank
When within my system I issue the following:
[EMAIL PROTECTED] /]# df
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 966M  714M  203M  78% /
/dev/hda1 966M   14M  903M   2% /boot
/dev/hda6 9.4G  5.1G  4.0G  57% /usr
/dev/hda8 9.4G  8.8G  693M  93% /home
/dev/hda91020M  312M  656M  33% /var
/dev/hda3  12G  2.0G  8.8G  19% /mnt/empty
/dev/hda4 3.4G  2.7G  712M  80% /mnt/win_h
/dev/hdb2  16M  2.3M   13M  16% /mnt/hdb2_boot
/dev/hdb5  92M   55M   33M  63% /mnt/hdb5_root
/dev/hdb6  92M   62M   25M  72% /mnt/hdb6_var
/dev/hdb7 3.1G  1.9G  1.1G  64% /mnt/hdb7_usr
/dev/hdb9 1.5G  1.4G  151M  91% /mnt/hdb9_home
/dev/hdb1  14G   13G  1.2G  92% /mnt/win_c2
I get a summary of all my partitions AND their names.
However, I'm unable to do this when I'm NOT within the system:
So, is there a file on the system that could simply give me this info by 
simply reading it ?

--
Newbie Seeking USER_FUNCTIONALITY always!
Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df table file

2005-03-26 Thread mike
SnapafunFrank wrote:
 When within my system I issue the following:
 
 [EMAIL PROTECTED] /]# df
 FilesystemSize  Used Avail Use% Mounted on
 /dev/hda5 966M  714M  203M  78% /
 /dev/hda1 966M   14M  903M   2% /boot
 /dev/hda6 9.4G  5.1G  4.0G  57% /usr
 /dev/hda8 9.4G  8.8G  693M  93% /home
 /dev/hda91020M  312M  656M  33% /var
 /dev/hda3  12G  2.0G  8.8G  19% /mnt/empty
 /dev/hda4 3.4G  2.7G  712M  80% /mnt/win_h
 /dev/hdb2  16M  2.3M   13M  16% /mnt/hdb2_boot
 /dev/hdb5  92M   55M   33M  63% /mnt/hdb5_root
 /dev/hdb6  92M   62M   25M  72% /mnt/hdb6_var
 /dev/hdb7 3.1G  1.9G  1.1G  64% /mnt/hdb7_usr
 /dev/hdb9 1.5G  1.4G  151M  91% /mnt/hdb9_home
 /dev/hdb1  14G   13G  1.2G  92% /mnt/win_c2
 
 I get a summary of all my partitions AND their names.
 
 However, I'm unable to do this when I'm NOT within the system:
 
 So, is there a file on the system that could simply give me this info by
 simply reading it ?
 

Probably /etc/fstab and /proc/partitions would give you some info.

(on the system in question)
You could make a simple one line script like df  diskfree.txt
and make a cron job to run it. Then read the diskfree.txt file.

Mike




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df table file

2005-03-26 Thread SnapafunFrank
mike wrote:
SnapafunFrank wrote:
 

When within my system I issue the following:
[EMAIL PROTECTED] /]# df
FilesystemSize  Used Avail Use% Mounted on
/dev/hda5 966M  714M  203M  78% /
/dev/hda1 966M   14M  903M   2% /boot
/dev/hda6 9.4G  5.1G  4.0G  57% /usr
/dev/hda8 9.4G  8.8G  693M  93% /home
/dev/hda91020M  312M  656M  33% /var
/dev/hda3  12G  2.0G  8.8G  19% /mnt/empty
/dev/hda4 3.4G  2.7G  712M  80% /mnt/win_h
/dev/hdb2  16M  2.3M   13M  16% /mnt/hdb2_boot
/dev/hdb5  92M   55M   33M  63% /mnt/hdb5_root
/dev/hdb6  92M   62M   25M  72% /mnt/hdb6_var
/dev/hdb7 3.1G  1.9G  1.1G  64% /mnt/hdb7_usr
/dev/hdb9 1.5G  1.4G  151M  91% /mnt/hdb9_home
/dev/hdb1  14G   13G  1.2G  92% /mnt/win_c2
I get a summary of all my partitions AND their names.
However, I'm unable to do this when I'm NOT within the system:
So, is there a file on the system that could simply give me this info by
simply reading it ?
   

Probably /etc/fstab and /proc/partitions would give you some info.
(on the system in question)
You could make a simple one line script like df  diskfree.txt
and make a cron job to run it. Then read the diskfree.txt file.
Mike

 

Thanks Mike, and I have somewhere else to look, but the system I need 
this info from cannot be booted into right now because I believe 
/etc/fstab is mucked up a little.
To that end I'm prepared to use tomsrtbt to look in on the system and 
that is why I'm trying to find out how I can glean this info.
tomsrtbt has fdisk but that doesn't tell me the 'names' of the 
partitions on the system I'm trying to restore. Still, there are ways, I 
just wondered if the info was recorded
to make my task a little easier.

Again, greatly appreciate your input.
--
Newbie Seeking USER_FUNCTIONALITY always!
Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



[newbie] df is bs

2005-01-20 Thread Miark
A df displays this for my fat32-formatted external
USB 2 drive:

  /dev/sdb1  56G -256Z   58G 101% /mnt/removable2

but cd'ing to it and doing a du -sh shows that 11GB 
are used. What's going on?

Miark


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df is bs

2005-01-20 Thread Anne Wilson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday 20 Jan 2005 22:08, Miark wrote:
 A df displays this for my fat32-formatted external
 USB 2 drive:

   /dev/sdb1  56G -256Z   58G 101% /mnt/removable2

 but cd'ing to it and doing a du -sh shows that 11GB
 are used. What's going on?

Dunno, but I got a similarly ridiculous answer when I tried it on a usb 128MB 
disk.

Anne
- -- 
Registered Linux User No.293302 (http://counter.li.org/)
Have you visited http://twiki.mdklinuxfaq.org yet?  Mandrake at all levels
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFB8CydkFAvMr/nNX8RAmRpAKCW1Cl04QecAlGy4bLFJB9mOJ32HACfX4oM
8YdXzfkRybK6mdGm6E59Y9I=
=riA1
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] df command output

2003-10-30 Thread Paul Kaplan
But these are symlinks in 9.1 as well...so what is different about df in 9.1 
and 9.2 and how does one get the old behavior back?
P

On Wednesday 29 October 2003 01:19 pm, Richard Urwin wrote:
 On Wednesday 29 Oct 2003 4:57 pm, Tom Brinkman wrote:
  On Wednesday 29 October 2003 10:05 am, Eric Huff wrote:
   [snip]
 
  tom $ df -h -x supermount
  FilesystemSize  Used Avail Use% Mounted on
  /dev/ide/host0/bus0/target0/lun0/part6
8.5G  1.7G  6.9G  20% /
  /dev/ide/host0/bus0/target0/lun0/part5
 46M  9.3M   34M  22% /boot
  /dev/ide/host0/bus0/target0/lun0/part7
 12G  4.3G  7.6G  36% /home
  /dev/ide/host0/bus0/target1/lun0/part5
 25G   11G   15G  44% /stor
  /dev/ide/host0/bus0/target0/lun0/part8
 56G   46G   11G  82% /stor2
  /dev/ide/host0/bus0/target1/lun0/part1
 13G  8.5G  4.0G  69% /stor3
 
 So that doesn't clean it up. IIRC, this 'new' output from df
  appeared early in 9.2 development (maybe sooner). I believe it was
  explained on the cooker list as being due to changes, improvements
  in devfs.

 Since /dev/hda1 is a symbolic link to /dev/blah/blah it should be possible
 to write a script to convert the output. Who wants to learn bash/cut/sed
 etc. and wants an interesting and rewarding project?

 (or maybe just perl)


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] df command output

2003-10-30 Thread Eric Huff
 [sorry, I hate top-posting in situations like this.]

You shouldn't be sorry *unless* you are top posting.  :)

eric

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] df command output

2003-10-29 Thread Paul Kaplan
In every other distro I've used, the df command returns the free disk space on 
each device attached to the system and lists the file systems as /dev/hda1, 
dev/sda1, etc.  In 9.2 the file systems are listed as 
/dev/ide/host0/bus0/target0/lun0/disc/part1 or something related.  My 
computer may be a P4, but my brain is only an i386 and I just can't process 
that much info.  How can I get df to output the old style device file name?
TIA
Paul


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [newbie] df command output

2003-10-29 Thread Tony S. Sykes


-Original Message-
From: Paul Kaplan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 11:14 AM
To: [EMAIL PROTECTED]
Subject: [newbie] df command output


In every other distro I've used, the df command returns the free disk
space on 
each device attached to the system and lists the file systems as
/dev/hda1, 
dev/sda1, etc.  In 9.2 the file systems are listed as 
/dev/ide/host0/bus0/target0/lun0/disc/part1 or something related.  My 
computer may be a P4, but my brain is only an i386 and I just can't
process 
that much info.  How can I get df to output the old style device file
name?
TIA
Paul


Paul,

man df and it will give you the options. You can change it in your
aliases to do it all the time for you so you don't have to type it all
in all the time.

Tony.
  

-+-+-+-+-+-+-+- Business Computer Projects - Disclaimer -+-+-+-+-+-+-+-

This message, and any associated attachment is confidential. If you have
received it in error, please delete it from your system, do not use or
disclose the information in any way, and notify either Tony S. Sykes
or the postmaster mailto:[EMAIL PROTECTED]  immediately.

The contents of this message may contain personal views which are not
necessarily the views of Business Computer Projects Ltd., unless
specifically stated.  

Whilst every effort has been made to ensure that emails and their
attachments are virus free, it is the responsibility of the recipient(s)
to verify the integrity of such emails.

 
Business Computer Projects Ltd
BCP House
151 Charles Street
Stockport
Cheshire
SK1 3JY
 
Tel: +44 (0)161 355-3000
Fax: +44 (0)161 355-3001
Web: http://www.bcpsoftware.com http://www.bcpsoftware.com/ 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] df command output

2003-10-29 Thread Paul Kaplan
it isn't obvious to me what switch changes the way fs's are listed.
Any ideas?
P
On Wednesday 29 October 2003 06:33 am, Tony S. Sykes wrote:
 -Original Message-
 From: Paul Kaplan [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 29, 2003 11:14 AM
 To: [EMAIL PROTECTED]
 Subject: [newbie] df command output


 In every other distro I've used, the df command returns the free disk
 space on
 each device attached to the system and lists the file systems as
 /dev/hda1,
 dev/sda1, etc.  In 9.2 the file systems are listed as
 /dev/ide/host0/bus0/target0/lun0/disc/part1 or something related.  My
 computer may be a P4, but my brain is only an i386 and I just can't
 process
 that much info.  How can I get df to output the old style device file
 name?
 TIA
 Paul


 Paul,

 man df and it will give you the options. You can change it in your
 aliases to do it all the time for you so you don't have to type it all
 in all the time.

 Tony.


 -+-+-+-+-+-+-+- Business Computer Projects - Disclaimer -+-+-+-+-+-+-+-

 This message, and any associated attachment is confidential. If you have
 received it in error, please delete it from your system, do not use or
 disclose the information in any way, and notify either Tony S. Sykes
 or the postmaster mailto:[EMAIL PROTECTED]  immediately.

 The contents of this message may contain personal views which are not
 necessarily the views of Business Computer Projects Ltd., unless
 specifically stated.

 Whilst every effort has been made to ensure that emails and their
 attachments are virus free, it is the responsibility of the recipient(s)
 to verify the integrity of such emails.


 Business Computer Projects Ltd
 BCP House
 151 Charles Street
 Stockport
 Cheshire
 SK1 3JY

 Tel: +44 (0)161 355-3000
 Fax: +44 (0)161 355-3001
 Web: http://www.bcpsoftware.com http://www.bcpsoftware.com/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] df command output

2003-10-29 Thread Tomas Rett
df -h -x

Tom

Dne st 29. jna 2003 13:07 Paul Kaplan napsal(a):
 it isn't obvious to me what switch changes the way fs's are listed.
 Any ideas?
 P

 On Wednesday 29 October 2003 06:33 am, Tony S. Sykes wrote:
  -Original Message-
  From: Paul Kaplan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 29, 2003 11:14 AM
  To: [EMAIL PROTECTED]
  Subject: [newbie] df command output
 
 
  In every other distro I've used, the df command returns the free
  disk space on
  each device attached to the system and lists the file systems as
  /dev/hda1,
  dev/sda1, etc.  In 9.2 the file systems are listed as
  /dev/ide/host0/bus0/target0/lun0/disc/part1 or something related. 
  My computer may be a P4, but my brain is only an i386 and I just
  can't process
  that much info.  How can I get df to output the old style device
  file name?
  TIA
  Paul
 
 
  Paul,
 
  man df and it will give you the options. You can change it in your
  aliases to do it all the time for you so you don't have to type it
  all in all the time.
 
  Tony.
 
 
  -+-+-+-+-+-+-+- Business Computer Projects - Disclaimer
  -+-+-+-+-+-+-+-
 
  This message, and any associated attachment is confidential. If you
  have received it in error, please delete it from your system, do
  not use or disclose the information in any way, and notify either
  Tony S. Sykes or the postmaster
  mailto:[EMAIL PROTECTED]  immediately.
 
  The contents of this message may contain personal views which are
  not necessarily the views of Business Computer Projects Ltd.,
  unless specifically stated.
 
  Whilst every effort has been made to ensure that emails and their
  attachments are virus free, it is the responsibility of the
  recipient(s) to verify the integrity of such emails.
 
 
  Business Computer Projects Ltd
  BCP House
  151 Charles Street
  Stockport
  Cheshire
  SK1 3JY
 
  Tel: +44 (0)161 355-3000
  Fax: +44 (0)161 355-3001
  Web: http://www.bcpsoftware.com http://www.bcpsoftware.com/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] df command output

2003-10-29 Thread Tom Brinkman
On Wednesday 29 October 2003 10:05 am, Eric Huff wrote:
 alias df='df -h -x supermount'

 the -x needs to know what to exclude.

 Paul, does this fix your file name problem?

 When i unaliased it, the -h just affected size of files.  Didn't
 seem to affect the way dirs were listed... (i'm still on 9.1
 though).

 eric

tom $ df -h -x supermount
FilesystemSize  Used Avail Use% Mounted on
/dev/ide/host0/bus0/target0/lun0/part6
  8.5G  1.7G  6.9G  20% /
/dev/ide/host0/bus0/target0/lun0/part5
   46M  9.3M   34M  22% /boot
/dev/ide/host0/bus0/target0/lun0/part7
   12G  4.3G  7.6G  36% /home
/dev/ide/host0/bus0/target1/lun0/part5
   25G   11G   15G  44% /stor
/dev/ide/host0/bus0/target0/lun0/part8
   56G   46G   11G  82% /stor2
/dev/ide/host0/bus0/target1/lun0/part1
   13G  8.5G  4.0G  69% /stor3

   So that doesn't clean it up. IIRC, this 'new' output from df 
appeared early in 9.2 development (maybe sooner). I believe it was 
explained on the cooker list as being due to changes, improvements 
in devfs.
-- 
Tom Brinkman  Corpus Christi, Texas


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] df command output

2003-10-29 Thread Richard Urwin
On Wednesday 29 Oct 2003 4:57 pm, Tom Brinkman wrote:
 On Wednesday 29 October 2003 10:05 am, Eric Huff wrote:
  [snip]

 tom $ df -h -x supermount
 FilesystemSize  Used Avail Use% Mounted on
 /dev/ide/host0/bus0/target0/lun0/part6
   8.5G  1.7G  6.9G  20% /
 /dev/ide/host0/bus0/target0/lun0/part5
46M  9.3M   34M  22% /boot
 /dev/ide/host0/bus0/target0/lun0/part7
12G  4.3G  7.6G  36% /home
 /dev/ide/host0/bus0/target1/lun0/part5
25G   11G   15G  44% /stor
 /dev/ide/host0/bus0/target0/lun0/part8
56G   46G   11G  82% /stor2
 /dev/ide/host0/bus0/target1/lun0/part1
13G  8.5G  4.0G  69% /stor3

So that doesn't clean it up. IIRC, this 'new' output from df
 appeared early in 9.2 development (maybe sooner). I believe it was
 explained on the cooker list as being due to changes, improvements
 in devfs.

Since /dev/hda1 is a symbolic link to /dev/blah/blah it should be possible to 
write a script to convert the output. Who wants to learn bash/cut/sed etc. 
and wants an interesting and rewarding project?

(or maybe just perl)

-- 
Richard Urwin

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com