* Re: Re: [gentoo-user] How to shred without deleting /dev/*
@ 2005-08-29 12:59 Michael Kintzios
2005-08-29 13:09 ` Sergio Polini
0 siblings, 1 reply; 6+ messages in thread
From: Michael Kintzios @ 2005-08-29 12:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 951 bytes --]
> From:: Renat Golubchyk <ragermany@gmx.net>
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] How to shred without deleting /dev/*
> Date: Mon, 29 Aug 2005 14:35:28 +0200
>
> Why was it deleted? Did you run the command as root?
Well, yes because when I run it as a plain user I am denied access:
====================
$ shred -u -v /dev/fd0
shred: /dev/fd0: Permission denied
====================
> What's wrong with good old dd? How about
> $ dd if=/dev/zero of=/dev/fd0
> You can also use /dev/random if it has to be more secure. For even more
> security run it multiple times in a loop.
There's nothing wrong with dd, but I see no reason to create my own script to extend the basic dd functionality. I would rather use shred which does everything I want it to do - if only I can avoid the deletion if the device node itself.
--
Regards,
Mick
Lycos email has now 300 Megabytes of free storage... Get it now at mail.lycos.co.uk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to shred without deleting /dev/*
2005-08-29 12:59 Re: [gentoo-user] How to shred without deleting /dev/* Michael Kintzios
@ 2005-08-29 13:09 ` Sergio Polini
0 siblings, 0 replies; 6+ messages in thread
From: Sergio Polini @ 2005-08-29 13:09 UTC (permalink / raw
To: gentoo-user
Michael Kintzios:
> There's nothing wrong with dd, but I see no reason to create my own
> script to extend the basic dd functionality. I would rather use
> shred which does everything I want it to do - if only I can avoid
> the deletion if the device node itself.
Why -u?
>From the man page:
========
Delete FILE(s) if --remove (-u) is specified. The default is not to
remove the files because it is common to operate on device files
like /dev/hda, and those files usually should not be removed.
========
BTW, which is your filesystem? From the man page again:
========
CAUTION: Note that shred relies on a very important assumption:
that the filesystem overwrites data in place. This is the traditional
way to do things, but many modern filesystem designs do not
satisfy this assumption. The following are examples of
filesystems on which shred is not effective:
* log-structured or journaled filesystems, such as those
supplied with AIX and Solaris (and JFS, ReiserFS, XFS, Ext3, etc.)
========
HTH
Sergio
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] How to shred without deleting /dev/*
@ 2005-08-29 12:01 Michael Kintzios
2005-08-29 12:35 ` Renat Golubchyk
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Michael Kintzios @ 2005-08-29 12:01 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 794 bytes --]
Hi All,
I was blanking a floppy but when I ran:
====================
$ shred -u -v /dev/fd0
====================
/dev/fd0 was dully deleted after the shred operation finished. Rebooting the machine relaunched udev which recreated fd0 (is there another way to avoid having to reboot)?
On the second floppy I thought of avoiding unwittingly deleting the fd0 node so I tried:
====================
$ shred -u -v /dev/fd0/
shred: /dev/fd0/: Not a directory
====================
Or:
====================
$ shred -u -v /dev/fd0/
shred: /dev/fd0/*: Not a directory
====================
Is there a way of shredding a complete floppy (not just a file at a time) without removing the /dev/fd0 node?
--
Regards,
Mick
Lycos email has now 300 Megabytes of free storage... Get it now at mail.lycos.co.uk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to shred without deleting /dev/*
2005-08-29 12:01 Michael Kintzios
@ 2005-08-29 12:35 ` Renat Golubchyk
2005-08-29 14:12 ` Jason Cooper
2005-08-30 4:23 ` Chris Cox
2 siblings, 0 replies; 6+ messages in thread
From: Renat Golubchyk @ 2005-08-29 12:35 UTC (permalink / raw
To: gentoo-user
Hi!
On Mon, 29 Aug 2005 12:01:07 +0000 (GMT) "Michael Kintzios"
<michaelkintzios@lycos.co.uk> wrote:
> I was blanking a floppy but when I ran:
> ====================
> $ shred -u -v /dev/fd0
> ====================
> /dev/fd0 was dully deleted after the shred operation finished.
> Rebooting the machine relaunched udev which recreated fd0 (is there
> another way to avoid having to reboot)?
Why was it deleted? Did you run the command as root?
> Is there a way of shredding a complete floppy (not just a file at a
> time) without removing the /dev/fd0 node? --
What's wrong with good old dd? How about
$ dd if=/dev/zero of=/dev/fd0
You can also use /dev/random if it has to be more secure. For even more
security run it multiple times in a loop.
Cheers,
Renat
--
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
(Einstein)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to shred without deleting /dev/*
2005-08-29 12:01 Michael Kintzios
2005-08-29 12:35 ` Renat Golubchyk
@ 2005-08-29 14:12 ` Jason Cooper
2005-08-30 4:23 ` Chris Cox
2 siblings, 0 replies; 6+ messages in thread
From: Jason Cooper @ 2005-08-29 14:12 UTC (permalink / raw
To: gentoo-user
Michael Kintzios (michaelkintzios@lycos.co.uk) scribbled:
> I was blanking a floppy but when I ran:
> ====================
> $ shred -u -v /dev/fd0
> ====================
> /dev/fd0 was dully deleted after the shred operation finished. Rebooting the machine relaunched udev which recreated fd0 (is there another way to avoid having to reboot)?
>
> On the second floppy I thought of avoiding unwittingly deleting the fd0 node so I tried:
> ====================
> $ shred -u -v /dev/fd0/
> shred: /dev/fd0/: Not a directory
> ====================
> Or:
> ====================
> $ shred -u -v /dev/fd0/
> shred: /dev/fd0/*: Not a directory
> ====================
>
> Is there a way of shredding a complete floppy (not just a file at a time) without removing the /dev/fd0 node?
# man shred
[snip]
-u, --remove
truncate and remove file after overwriting
-v, --verbose
show progress
-x, --exact
do not round file sizes up to the next full block;
this is the default for non-regular files
-z, --zero
add a final overwrite with zeros to hide shredding
[snip]
don't use '-u' on devices.
hth,
cooper.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to shred without deleting /dev/*
2005-08-29 12:01 Michael Kintzios
2005-08-29 12:35 ` Renat Golubchyk
2005-08-29 14:12 ` Jason Cooper
@ 2005-08-30 4:23 ` Chris Cox
2 siblings, 0 replies; 6+ messages in thread
From: Chris Cox @ 2005-08-30 4:23 UTC (permalink / raw
To: gentoo-user
On Monday 29 August 2005 07:01 am, Michael Kintzios wrote:
> Hi All,
>
> I was blanking a floppy but when I ran:
> ====================
> $ shred -u -v /dev/fd0
> ====================
> /dev/fd0 was dully deleted after the shred operation finished. Rebooting
> the machine relaunched udev which recreated fd0 (is there another way to
> avoid having to reboot)?
>
Very seldom is a reboot requried in Linux. You can always run /sbin/udevstart
as root which will recreate the device nodes.
> On the second floppy I thought of avoiding unwittingly deleting the fd0
> node so I tried: ====================
> $ shred -u -v /dev/fd0/
> shred: /dev/fd0/: Not a directory
> ====================
> Or:
> ====================
> $ shred -u -v /dev/fd0/
> shred: /dev/fd0/*: Not a directory
> ====================
>
> Is there a way of shredding a complete floppy (not just a file at a time)
> without removing the /dev/fd0 node?
As for your original question about shred I can't really help since I don't
use it. And have no need for floppies anymore either. Try man shred and see
what the man pages say.
--
Chris
Linux 2.6.12-gentoo-r9 i686 AMD Athlon(tm) XP
23:19:33 up 4:38, 5 users, load average: 1.76, 1.50, 1.46
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-08-30 4:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-29 12:59 Re: [gentoo-user] How to shred without deleting /dev/* Michael Kintzios
2005-08-29 13:09 ` Sergio Polini
-- strict thread matches above, loose matches on Subject: below --
2005-08-29 12:01 Michael Kintzios
2005-08-29 12:35 ` Renat Golubchyk
2005-08-29 14:12 ` Jason Cooper
2005-08-30 4:23 ` Chris Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox