19.04.2024, 10:57 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
2radical
Titel: correct device path for backup  BeitragVerfasst am: 07.07.2006, 19:30 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
I noticed when I inserted a blank dvd/rw & hovered the mouse over the icon on the desktop it showed Device Node: /dev/hdd (?) yet my fstab line shows:
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
I want to create a directory 'backup' on this disc because I want to backup /home
rsync -avxH --delete /home/joyboy /my/backup/dir (I don't know if '--delete' is necessary for an initial backup). I tried different mount commands:

root@WorldsEnd:~# mount /dev/cdrom
mount: No medium found
root@WorldsEnd:~# mount /media/cdrom0
mount: No medium found
root@WorldsEnd:~# mount /dev/hdd
mount: can't find /dev/hdd in /etc/fstab or /etc/mtab

I made a directory /media/cdrom0/backup, but I don't want to backup /home to my HD--I want to backup to CD. I've since deleted that directory. For some reason my device naming & paths don't seem right. I have a recent install of Easter RC4 with no upgrades.
What the heck is goin on? All I wanna do is a (simple) /home backup. My apologies if this sounds like a dumb question to you.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 07.07.2006, 20:21 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
Well first of all you do not need to mount a dvd+rw to write to it. Winken
Just use growisofs like so:
Code:
growisofs -Z /dev/hdd -R -J /home/joyboy

This will write the directory /home/joyboy to the dvd+rw just as it is on your hdd. Now, if you mount the DVD+RW you will see /mount/point/home/joyboy.

To mount the dvd+rw you need to specify the proper device and a mount point. If a mount point is already defined in fstab then
Code:
mount /dev/blah
will work. If you do not have a proper line is fstab you must specify the mount point as well.
Code:
mount /dev/hdd /media/cdrom
.

Udev is supposed to provide the symlinks like /dev/cdrom and so on that point to your actual devices. Test the symlinks like so:
Code:
$ la /dev/cdrom
lrwxrwxrwx 1 root root 3 Jul  5 04:51 /dev/cdrom -> hdd


This is what a symlink looks like. As you can see the symlink /dev/cdrom points to the actual device /dev/hdd. Symlinks are not a requirement and there is nothing wrong with using the actual device name however most Linux applications expect to find your cdrom &/or dvd drives labled as /dev/cdrom or /dev/dvd.

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 07.07.2006, 21:31 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
Thanks a lot--that is great information. Sorry to sound like such a dunce, but the way things are listed aren't what I would call intuitive, but then again it ain't windows, eh? Thanks again--kurt

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 08.07.2006, 00:43 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
I successfully did
growisofs -Z /dev/hdd -R -J /home/joyboy
to a dvd/rw disc but I would like to do incremental backups using rsync.
I tried to create a directory named 'backup' on the disc to mv (/home) files to because rsync freaks out without one.

root@WorldsEnd:/home/joyboy# cd /media/cdrom0
root@WorldsEnd:/media/cdrom0# ls
Desktop documents downloads none tmp wallpaper
root@WorldsEnd:/media/cdrom0# mkdir backup
mkdir: cannot create directory `backup': Read-only file system

Read-only file system? This is a DVD-RW disc. How can I write to it? Can I use rsync? In Konqueror, media:/hdd shows my home folder

rsync -avxH /home/joyboy /media/cdrom0 fails with a bunch of 'No such file or directory' messages.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
schnorrer
Titel:   BeitragVerfasst am: 08.07.2006, 01:28 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

no not possible, because insertion of this DVD-RW, the Auto-mounter handles it like a finalized DVD. RO
Use k3b to load this type and k3b can do the backup.

From the commandline(init-2) dvd+rw_tools should do what you want.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 08.07.2006, 02:13 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
Zitat:
Use k3b to load this type and k3b can do the backup.
From the commandline(init-2) dvd+rw_tools should do what you want.


Man, It's hard to believe that a simple backup should involve so much. Mine is a stock install of Easter with fstab being messed up with funny paths to cd device. Weird...

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 10.07.2006, 22:12 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
2radical hat folgendes geschrieben::
Zitat:
Use k3b to load this type and k3b can do the backup.
From the commandline(init-2) dvd+rw_tools should do what you want.


Man, It's hard to believe that a simple backup should involve so much. Mine is a stock install of Easter with fstab being messed up with funny paths to cd device. Weird...


Well you are trying to do something w/ dvd+rw-tools that it is not meant to do by itself. Perhaps you will find dkop more to your liking.

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 10.07.2006, 22:44 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
I successfully used cp to backup / and /home to a separate partition, but that dkop site looks interesting, so I will give that a try as well. I got the paths correct for making backups (finally). I've been told that dvd/rw discs aren't totally reliable so that's why I went to another partition. It may be overkill to have a disc as well, but I've screwed up so many times in the past (mostly my fault except for cupsys) that I want to be as prepared as I can be. Thanks for the reply & link.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 10.07.2006, 23:09 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
2radical hat folgendes geschrieben::
I've been told that dvd/rw discs aren't totally reliable


Well the worst enemies of DVD media are seperating layers, (possible if you use those cases that lock the dvd in place and then flex the disc to remove it), and time. DVD media doesn't last forever but neither does an hdd.

You were trying to use rsync to media that is not mounted as a writable disc. You must make an iso filesystem to write to dvd media. There is of course packet writing but I'm unsure if it works at all under Linux.

If you mounted a USB flash drive you could use rsync or any other drive that gets mounted as a writable medium.

I ran dkop like this:
Code:
mkdir DKOP
cd DKOP
wget http://kornelix.squarespace.com/storage/dkop/dkop.007.tar.gz
unp dkop.007.tar.gz
./dkop.x


You can install it if you like or just run it from that directory.

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
devil
Titel:   BeitragVerfasst am: 10.07.2006, 23:22 Uhr
Team Member
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
dvd-ram would be a solution as well, if your dvd-drive supports it

greetz
devil

_________________
<<We are Xorg - resistance is futile - you will be axximilated>>

Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 11.07.2006, 18:32 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
Thanks--I tried following the install suggestions on the dkop site but got a lot of errors wit the suggestion that I add directory containing gthread-2.0.pc and gtk+-2.0.pc to PKG_CONFIG_PATH environment variable. When I tried it the way you posted I got this message.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(dkop.x:26727): Gtk-WARNING **: cannot open display:
I've seen similar messages in the past when I didn't have a proper key or some such thing.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 11.07.2006, 19:00 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
2radical hat folgendes geschrieben::
Thanks--I tried following the install suggestions on the dkop site but got a lot of errors wit the suggestion that I add directory containing gthread-2.0.pc and gtk+-2.0.pc to PKG_CONFIG_PATH environment variable. When I tried it the way you posted I got this message.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(dkop.x:26727): Gtk-WARNING **: cannot open display:
I've seen similar messages in the past when I didn't have a proper key or some such thing.


As user not root. Winken

You don't need to follow those directions on the site since the binary has already been built for you. Just execute it.

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 11.07.2006, 19:07 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
DOH! er-ah-um yeah, I knew that...

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 11.07.2006, 21:47 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
mzilikazi: OK I ran a backup with dkop--a little convoluted as far as instructions go, but it seemed to do the job. I backed up /home/joyboy to dvd. Now I'm beginning to feel more secure--I've got / & /home on separate partition as well as /home on dvd--a double backup, heeheehee. Now I can commit all sorts of atrocious blunders to my main install as long as I remember the backup commands, LOL!! Thanks again, amigo--kurt

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.