Insomniactoo | 17 Jun 2012 05:32
X-Face
Favicon

Is this deletable...

Hi folks,

  Just piddling around, I came upon a 'file' in /dev called 'core'. It's of a 
type called 'program crash data'.

  The name seems familiar for some reason but what's got me puzzled is that it's 
1016MB in size.

  If this is 'crash data', do I absolutely need it on my system? Is there going 
to be bad things happen if I delete this thing?

  Thanks for any info and advice on this.

  JB

--

-- 
Powered by Slackware Linux 13.37
 22:29:42 up 5 days,  4:57,  2 users,  load average: 1.09, 1.04, 0.92

All that is necessary for the triumph of evil is that good men do nothing.
 -Edmund Burke

Registered Linux user #214117 at http://linuxcounter.net
Dimitris Tzemos | 17 Jun 2012 06:57
Picon
Favicon

Re: Is this deletable...

None of the files in /proc are really there--they're all, "pretend," 
files made up by the kernel, to give you information about the system 
and don't take up any hard disk space. 

/proc/kcore is like an "alias" for the memory in your computer. Its 
size is the same as the amount of RAM you have, and if you read it as 
a file, the kernel does memory reads. 

Στις Σαβ 16 Ιουν 2012 22:32:41 Insomniactoo έγραψε:
> Hi folks,
> 
>   Just piddling around, I came upon a 'file' in /dev called 'core'. It's of
> a type called 'program crash data'.
> 
>   The name seems familiar for some reason but what's got me puzzled is that
> it's 1016MB in size.
> 
>   If this is 'crash data', do I absolutely need it on my system? Is there
> going to be bad things happen if I delete this thing?
> 
>   Thanks for any info and advice on this.
> 
>   JB

_______________________________________________
slackware mailing list
slackware <at> mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/slackware
Insomniactoo | 17 Jun 2012 13:59
X-Face
Favicon

Re: Is this deletable...

On Saturday, 16 June 2012 23:57 Dimitris Tzemos wrote:

> None of the files in /proc are really there--they're all, "pretend,"
> files made up by the kernel, to give you information about the system
> and don't take up any hard disk space.
> 
> /proc/kcore is like an "alias" for the memory in your computer. Its
> size is the same as the amount of RAM you have, and if you read it as
> a file, the kernel does memory reads.
> 

  Aha! Very good. Thanks for that, Dmitris.

--

-- 
Powered by Slackware Linux 13.37
 06:58:47 up 5 days, 13:26,  2 users,  load average: 0.87, 0.81, 0.79

All that is necessary for the triumph of evil is that good men do nothing.
 -Edmund Burke

Registered Linux user #214117 at http://linuxcounter.net
John Honniball | 17 Jun 2012 14:23
Picon

Re: Is this deletable...

Dimitris Tzemos wrote:
> /proc/kcore is like an "alias" for the memory in your computer.

But he found the file in /dev, not /proc. If it's a real
core-dump file, dropped there by a crashing process, then the
'file' command will be able to say a bit more about it:

   $ file core

> Στις Σαβ 16 Ιουν 2012 22:32:41 Insomniactoo έγραψε:
>>  Just piddling around, I came upon a 'file' in /dev called 'core'. It's of
>>a type called 'program crash data'.

--

-- 
John Honniball
coredump <at> gifford.co.uk

_______________________________________________
slackware mailing list
slackware <at> mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/slackware
Insomniactoo | 17 Jun 2012 15:11
X-Face
Favicon

Re: Is this deletable...

On Sunday, 17 June 2012 07:23 John Honniball wrote:

> Dimitris Tzemos wrote:
> > /proc/kcore is like an "alias" for the memory in your computer.
> 
> But he found the file in /dev, not /proc. If it's a real
> core-dump file, dropped there by a crashing process, then the
> 'file' command will be able to say a bit more about it:
> 
>    $ file core
> 

  Okay, I went to /dev and did that and it's a sym link to /proc/kcore, which I 
suppose is the same thing since it's exactly the same size. It doesn't *seem* to 
actually be using a whole GB of space on the HDD, as Dmitris said, it's sorta 
just 'there' doing nothing, heh.

  JB

--

-- 
Powered by Slackware Linux 13.37
 08:08:32 up 5 days, 14:36,  3 users,  load average: 0.76, 0.76, 0.77

All that is necessary for the triumph of evil is that good men do nothing.
 -Edmund Burke

Registered Linux user #214117 at http://linuxcounter.net
Insomniactoo | 17 Jun 2012 15:18
X-Face
Favicon

Re: Is this deletable...

On Sunday, 17 June 2012 08:11 Insomniactoo wrote:

> On Sunday, 17 June 2012 07:23 John Honniball wrote:
> > Dimitris Tzemos wrote:
> > > /proc/kcore is like an "alias" for the memory in your computer.
> > 
> > But he found the file in /dev, not /proc. If it's a real
> > core-dump file, dropped there by a crashing process, then the
> > 
> > 'file' command will be able to say a bit more about it:
> >    $ file core
> 
>   Okay, I went to /dev and did that and it's a sym link to /proc/kcore,
> which I suppose is the same thing since it's exactly the same size. It
> doesn't *seem* to actually be using a whole GB of space on the HDD, as
> Dmitris said, it's sorta just 'there' doing nothing, heh.
> 

  file kcore had this to say:

kcore: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 
'BOOT_IMAGE=Linux ro root=812 vt.default_utf8=0'

  No clue if that's bad, good, end of the world, 6 Miss Universe contestants 
have fallen in love with me and are seeking me out at this very moment, 
whatever...

  JB

--

-- 
(Continue reading)

John Honniball | 17 Jun 2012 15:55
Picon

Re: Is this deletable...

Insomniactoo wrote:
>   file kcore had this to say:
> 
> kcore: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 
> 'BOOT_IMAGE=Linux ro root=812 vt.default_utf8=0'
> 
> 
>   No clue if that's bad, good, end of the world, 6 Miss Universe contestants 
> have fallen in love with me and are seeking me out at this very moment, 
> whatever...

That's absolutely normal and simply indicates the type of processor
that the kernel was compiled for.

Don't delete this file, or the link to it it /dev. Some
programs in the system will depend on them!

--

-- 
John Honniball
coredump <at> gifford.co.uk
Insomniactoo | 17 Jun 2012 16:15
X-Face
Favicon

Re: Is this deletable...

On Sunday, 17 June 2012 08:55 John Honniball wrote:

> Insomniactoo wrote:
> >   file kcore had this to say:
> > kcore: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV),
> > SVR4-style, from 'BOOT_IMAGE=Linux ro root=812 vt.default_utf8=0'
> > 
> >   No clue if that's bad, good, end of the world, 6 Miss Universe
> >   contestants
> > 
> > have fallen in love with me and are seeking me out at this very moment,
> > whatever...
> 
> That's absolutely normal and simply indicates the type of processor
> that the kernel was compiled for.
> 
> Don't delete this file, or the link to it it /dev. Some
> programs in the system will depend on them!

  Good deal. Thanks everyone!

--

-- 
Powered by Slackware Linux 13.37
 09:15:28 up 5 days, 15:43,  2 users,  load average: 0.85, 0.80, 0.78

All that is necessary for the triumph of evil is that good men do nothing.
 -Edmund Burke

Registered Linux user #214117 at http://linuxcounter.net
(Continue reading)

John Honniball | 17 Jun 2012 15:53
Picon

Re: Is this deletable...

Insomniactoo wrote:
> On Sunday, 17 June 2012 07:23 John Honniball wrote:
>>But he found the file in /dev, not /proc. If it's a real
>>core-dump file, dropped there by a crashing process, then the
>>'file' command will be able to say a bit more about it:
>>
>>   $ file core

>   Okay, I went to /dev and did that and it's a sym link to /proc/kcore, which I 
> suppose is the same thing since it's exactly the same size.

It's the same filesystem object, just pointed to by a different name.

> It doesn't *seem* to 
> actually be using a whole GB of space on the HDD, as Dmitris said, it's sorta 
> just 'there' doing nothing, heh.

Yes, it's a "pretend" file, made up by the OS kernel to represent
the kernel RAM in your system.

--

-- 
John Honniball
coredump <at> gifford.co.uk

Gmane