PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > with udev's secret mounts
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

with udev's secret mounts

Réponse
 
LinkBack Outils de la discussion
Vieux 24/02/2007, 04h10   #1
rir
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut with udev's secret mounts

Udev's secret remounting of /dev at /dev/.static/dev gives me pause.
How IS that done, anyway?

I am interested in using find and cpio to make a root filesystem
backup. How should I handle the /dev tree? If I just grab the
run-time /dev it will become the boot-time /dev of my restored
system. I don't understand if this has any ramifications or what
they are.

I can back up my root by booting into another linux, but that is
inconvenient.

It seems that I could just set udev_root to something like "/udev"
in /etc/udev.conf and that would work. That doesn't appeal because
of decades of finger memory for "/dev".

Thanks.

Be well,
Rob


Script started on Fri Feb 23 22:04:38 2007

vaph:/# uname -a
Linux vaph.private 2.6.8-2-686-smp #1 SMP Thu May 19 17:27:55 JST 2005 i686 GNU/Linux


vaph:/# cd /dev/.static


vaph:/dev/.static# find . -print
..
../dev
../dev/hdd
../dev/mem
../dev/hdd1
../dev/kmem
../dev/hdd2
../dev/null
../dev/hdd3
../dev/port
../dev/hdd4
../dev/zero

[ deletia ]

../dev/log
../dev/apm_bios
../dev/raw1394


vaph:/dev/.static# find . -xdev -print
..
../dev


vaph:/dev/.static# mount ############ no /dev/.static/dev listed
/dev/sda3 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda9 on /usr type ext3 (rw,noatime)
/dev/sda6 on /var type ext3 (rw,noatime)
/dev/sda7 on /tmp type ext3 (rw,noatime)
/dev/sda10 on /home type ext3 (rw,noatime)
/dev/sda12 on /priv type ext3 (rw,noatime)
/dev/sda13 on /pub type ext3 (rw,noatime)
tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
/dev/sdb3 on /mnt type ext3 (rw)


vaph:/dev/.static# exit
exit

Script done on Fri Feb 23 22:05:18 2007


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 24/02/2007, 09h20   #2
pinniped
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut dev


Just make sure you have the (empty) directories /dev and /dev/pts. The system DOES need a few devices before udev does its magic - for those create the device nodes the usual way. (have a look at the makedevices script for clues) I remember reading instructions on this months ago but can't recall the link - google will probably dig it up for you.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 24/02/2007, 22h00   #3
rir
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut udev issues backing up /dev

On Sat, Feb 24, 2007 at 09:59:35AM +0100, pinniped wrote:
>
> Just make sure you have the (empty) directories /dev and /dev/pts. The
> system DOES need a few devices before udev does its magic - for those
> create the device nodes the usual way. (have a look at the makedevices
> script for clues) I remember reading instructions on this months ago but
> can't recall the link - google will probably dig it up for you.


MAKEDEV is not going to . I am trying to backup a system. If the
backup is not bootable, MAKEDEV is not usable. Aside from that, the
idea is to save the devices that are there; it is possible that some
package or person could add a special node. If that happens, a backup
should catch it.

The hiding of a mounted filesystem seems very broken to my sysadmin
side.

Be well,
rir


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 25/02/2007, 15h40   #4
Matus UHLAR - fantomas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: udev issues backing up /dev

> On Sat, Feb 24, 2007 at 09:59:35AM +0100, pinniped wrote:
> > Just make sure you have the (empty) directories /dev and /dev/pts. The
> > system DOES need a few devices before udev does its magic - for those
> > create the device nodes the usual way. (have a look at the makedevices
> > script for clues) I remember reading instructions on this months ago but
> > can't recall the link - google will probably dig it up for you.


On 24.02.07 16:52, rir wrote:
> MAKEDEV is not going to . I am trying to backup a system. If the
> backup is not bootable, MAKEDEV is not usable. Aside from that, the
> idea is to save the devices that are there; it is possible that some
> package or person could add a special node. If that happens, a backup
> should catch it.
>
> The hiding of a mounted filesystem seems very broken to my sysadmin
> side.


backup using dump/restore - it backs up whole filesystem (unless you
exclude/include only some files), even the "hidden" part.

however, udev remounts the original /dev to /dev/.static, with a small
hacks, you can mount that too.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
He who laughs last thinks slowest.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 25/02/2007, 22h20   #5
rir
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: udev issues backing up /dev

On Sun, Feb 25, 2007 at 04:36:56PM +0100, Matus UHLAR - fantomas wrote:

> backup using dump/restore - it backs up whole filesystem (unless you
> exclude/include only some files), even the "hidden" part.


> however, udev remounts the original /dev to /dev/.static, with a small
> hacks, you can mount that too.


My question is what should I be backing up regarding udev?
You imply that, on a running system, /dev/.static/dev should be backed
up as /dev.

I don't have a problem with how to do this; I'll archive the dev stuff
along with other meta-data and stick it at the head of my archive, like:

cd /dev/.static && \
find ./dev -xdev -depth -print \
| $CPIO > $TMPDIR/dev.cpio

cd / && \
find ./$TMPDIR/README ./$TMPDIR/ARCHIVE_DATE ./$TMPDIR / \
-xdev -depth -print \
| $CPIO | $MEDIA_WRITER

Dump/restore is slick but I see it as only good for supporting a system.
I like my backups to also be suitable for use as a information archive.
I've settled on cpio archives for portability. It is bad enough trying to
find a working 5-1/4 drive or a 60meg 1/4 inch tape drive, without trying
to find an operating system that has a filesystem and version of restore that
match some 15 year-old archive.

Thanks for the reply; I didn't realize that about dump.

Be well,
rir


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 26/02/2007, 17h00   #6
Bob McGowan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: udev issues backing up /dev

rir wrote:
> On Sun, Feb 25, 2007 at 04:36:56PM +0100, Matus UHLAR - fantomas wrote:
>
>> backup using dump/restore - it backs up whole filesystem (unless you
>> exclude/include only some files), even the "hidden" part.

>
>> however, udev remounts the original /dev to /dev/.static, with a small
>> hacks, you can mount that too.

>
> My question is what should I be backing up regarding udev?
> You imply that, on a running system, /dev/.static/dev should be backed
> up as /dev.
>
> I don't have a problem with how to do this; I'll archive the dev stuff
> along with other meta-data and stick it at the head of my archive, like:
>
> cd /dev/.static && \
> find ./dev -xdev -depth -print \
> | $CPIO > $TMPDIR/dev.cpio
>
> cd / && \
> find ./$TMPDIR/README ./$TMPDIR/ARCHIVE_DATE ./$TMPDIR / \
> -xdev -depth -print \
> | $CPIO | $MEDIA_WRITER
>
> Dump/restore is slick but I see it as only good for supporting a system.
> I like my backups to also be suitable for use as a information archive.
> I've settled on cpio archives for portability. It is bad enough trying to
> find a working 5-1/4 drive or a 60meg 1/4 inch tape drive, without trying
> to find an operating system that has a filesystem and version of restore that
> match some 15 year-old archive.
>
> Thanks for the reply; I didn't realize that about dump.
>
> Be well,
> rir
>
>


I can't add anything to the discussion re. /dev, but am curious about
your reference to "a working 5-1/4 drive or a 60meg 1/4 inch tape drive,".

Since most hard disks are now less than 5-1/4 inches, are you referring
to floppy disks? And that tape size is ancient, I think.

If you have access to either a CD or DVD burner, you might want to look
into cdbackup/cdrestore (package name is cdbackup, IIRC). From the man
page:

DESCRIPTION
cdbackup is a utility to make streaming backups to
CD-R(W)/DVD-R(W) disks. It’s designed to work with any backup
tool which writes the backup to stdout (like tar/cpio/afio).

Bob

  Réponse avec citation
Vieux 27/02/2007, 19h50   #7
rir
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: udev issues backing up /dev

On Mon, Feb 26, 2007 at 08:56:32AM -0800, Bob McGowan wrote:
> rir wrote:
> >My question is what should I be backing up regarding udev?
> >You imply that, on a running system, /dev/.static/dev should be backed
> >up as /dev.


> I can't add anything to the discussion re. /dev, but am curious about
> your reference to "a working 5-1/4 drive or a 60meg 1/4 inch tape drive,".
>
> Since most hard disks are now less than 5-1/4 inches, are you referring
> to floppy disks? And that tape size is ancient, I think.


You are right. I have had rare occasion to look for stuff that is on
10 and 15 year old backups from my home systems.

> If you have access to either a CD or DVD burner, you might want to look
> into cdbackup/cdrestore (package name is cdbackup, IIRC). From the man


I do use CD- and DVD-RWs for backups these days. So far, I have most
of my partitions at under 3.5 gigs and so don't have to chunk things to
fit on DVDs. Well, I do have /pub and /priv filesystems that are large,
but these are pretty static and mostly replaceable. I suspect I'll move
to blue-ray discs within a few years before I feel a need for a chunker
like cdbackup, but I'm am glad to have the reference.

My comment about 60-meg QIC tapes was forward looking; I imagine that in
15 years I'll have the same problems with CDs.

Be well,
rir


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h04.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,19170 seconds with 15 queries