LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2004, 12:00 PM   #1
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Rep: Reputation: 30
Backing up /etc on floppy


Hi. I am trying to back up the /etc directory to a floppy. I figured that I have managed to mount the floppy, but have failed with the rest. Can anyone help? I type the following

[root@spc1-seve2-5-0-cust105 /]# mount /dev/fd0/mnt/floppy
mount: can't find /dev/fd0/mnt/floppy in /etc/fstab or /etc/mtab
[root@spc1-seve2-5-0-cust105 /]# mount /mnt/floppy
[root@spc1-seve2-5-0-cust105 /]# tar cvfz /mnt/floppy/etc.tgz/etc
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.
[root@spc1-seve2-5-0-cust105 /]#
 
Old 05-13-2004, 12:06 PM   #2
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
Re: Backing up /etc on floppy

Quote:
Originally posted by HadesThunder

[root@spc1-seve2-5-0-cust105 /]# mount /dev/fd0/mnt/floppy
mount: can't find /dev/fd0/mnt/floppy in /etc/fstab or /etc/mtab
You didn't manage to mount the floppy. Try:
Code:
mount /dev/fd0 /mnt/floppy
with the emphasis on the space in-between the device and the mount point.
 
Old 05-13-2004, 01:09 PM   #3
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Original Poster
Rep: Reputation: 30
I have tried this and it tells me that it is already mounted or busy.

[root@spc1-seve2-5-0-cust105 /]# mount /dev/fd0 /mnt/floppy
mount: /dev/fd0 already mounted or /mnt/floppy busy
mount: according to mtab, none is already mounted on /mnt/floppy
[root@spc1-seve2-5-0-cust105 /]#
 
Old 05-13-2004, 01:17 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Your terminal session may be in /mnt/floppy or you may have a window open on that directory, which is what is making it "busy". Close any windows that are accessing it, then try this:

1. Move to another directory: cd /home/<user> (where <user> is your regular username)
2. As root, unmount it: umount /mnt/floppy
3. Remount it: mount /dev/fd0 /mnt/floppy
4. Copy /etc: cp /etc /mnt/floppy
5. Unmount: umount /mnt/floppy

That should do it. -- J.W.
 
Old 05-13-2004, 02:13 PM   #5
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Re: Backing up /etc on floppy

Quote:
Originally posted by HadesThunder
[root@spc1-seve2-5-0-cust105 /]# tar cvfz /mnt/floppy/etc.tgz/etc
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.
[root@spc1-seve2-5-0-cust105 /]#
The problem with this is a space as well; "/mnt/floppy/etc.tgz" and "/etc" need to be seperated.
 
Old 05-13-2004, 04:10 PM   #6
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Original Poster
Rep: Reputation: 30
J.W. I tried
cp /etc /mnt/floppy
and got this
cp /etc /mnt/floppy
cp: omitting directory `/etc'

Poetics I tried whats and got a tar error and result told me I had a broken pipe

tar cvfz /mnt/floppy/etc.tgz /etc
tar: Removing leading `/' from member names
etc/
etc/profile.d/
etc/profile.d/ssh-client.sh
etc/profile.d/alias.sh
etc/profile.d/xhost.csh
etc/profile.d/xhost.sh
etc/profile.d/10lang.csh
etc/profile.d/10lang.sh
etc/profile.d/inputrc.csh
etc/profile.d/inputrc.sh
etc/profile.d/tmpdir.csh
etc/profile.d/tmpdir.sh
etc/profile.d/glib20.csh
etc/profile.d/glib20.sh
etc/profile.d/msec.csh
etc/profile.d/msec.sh
etc/profile.d/configure_keyboard.sh
etc/profile.d/gtk2.csh
etc/profile.d/gtk2.sh
etc/profile.d/kde3.sh
etc/profile.d/alias.csh
etc/profile.d/proxy.sh
etc/profile.d/numlock.sh
etc/profile.d/screen.sh
etc/profile.d/proxy.csh
etc/rpm/
etc/rpm/macros
etc/rpm/macros.cdb
etc/sysconfig/
etc/sysconfig/console/
etc/sysconfig/console/consolefonts/
etc/sysconfig/console/consolefonts/lat0-16.psf.gz
etc/sysconfig/console/consoletrans/
etc/sysconfig/console/consoletrans/iso15.acm.gz
etc/sysconfig/console/consoletrans/iso15.sfm.gz
etc/sysconfig/console/default.kmap
etc/sysconfig/network-scripts/
etc/sysconfig/network-scripts/ifdown-aliases
etc/sysconfig/network-scripts/ifcfg-lo
etc/sysconfig/network-scripts/ifdown
etc/sysconfig/network-scripts/ifdown.d/
etc/sysconfig/network-scripts/ifup
etc/sysconfig/network-scripts/ifdown-ipv6
tar (child): /mnt/floppy/etc.tgz: Cannot open: Input/output error
tar (child): Error is not recoverable: exiting now
etc/sysconfig/network-scripts/ifdown-post
etc/sysconfig/network-scripts/ifdown-ppp
etc/sysconfig/network-scripts/ifdown-sit
etc/sysconfig/network-scripts/ifdown-sl
etc/sysconfig/network-scripts/ifup.d/
etc/sysconfig/network-scripts/ifup-aliases
etc/sysconfig/network-scripts/ifup-ipv6
etc/sysconfig/network-scripts/ifup-ipx
etc/sysconfig/network-scripts/ifup-plip
etc/sysconfig/network-scripts/ifup-plusb
etc/sysconfig/network-scripts/ifup-post
Broken pipe
 
Old 05-13-2004, 06:07 PM   #7
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
here is exactly what I did to do this.
Code:
[root@Tux root]# tar -cf etc.tar /etc
tar: Removing leading `/' from member names
Code:
[root@Tux root]# gzip etc.tar
Code:
[root@Tux root]# mount /dev/fd0 /mnt/floppy
Code:
[root@Tux root]# cp etc.tar.gz /mnt/floppy
But I would like to point this out...


Code:
[root@Tux root]# ls -alh etc.tar.gz 
-rw-r--r--    1 root     root         2.7M May 13 16:08 etc.tar.gz
Its too big for a floppy disk. I would think yours might be too.
 
Old 05-13-2004, 06:25 PM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Well you can try: cp -R /etc /mnt/floppy

That will recursively copy /etc and all its subcontents. -- J.W.
 
Old 05-13-2004, 07:34 PM   #9
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
"du -k" in /etc will show you how big it is.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Just installed Fedora, fatal error when it looks for floppy, i have no floppy Zieroth Linux - Software 18 07-19-2004 06:42 PM
backing-up? jamaso Slackware 5 06-16-2004 08:03 AM
Debian Woody floppy install problems with ATAPI floppy jturnicate Linux - Newbie 0 02-17-2004 09:45 AM
Backing up Cichlid Linux - General 1 12-16-2002 10:03 PM
backing up dilberim82 Linux - General 6 10-30-2001 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration