LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-28-2008, 02:26 PM   #1
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Rep: Reputation: 15
Huge server crash. Very old linux distro


Red hat 3.2 crashed at my workplace. There are backups on the server that i need access to. I am still able to putty into the system but ftp'ing out of the system causes CRC errors, i'm guessing the network is in shambles and needs to be reworked. Is there a bootable linux cd (SUSE, REDHAT, MANDRAKE) that can access the linux filesystem files on the server and also detect an external usb backup device so that i can transfer over the files? This would save us alot of heartache.
 
Old 11-28-2008, 02:52 PM   #2
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
You should be able to boot any Live CD distribution of Linux to recover and backup the files. It will be somewhat slow but reliable to attach a USB hard disk to the system and mount it. You can then copy the files off of the damaged drives to the external USB hard drives. I have done this with Xubuntu Live CD to recover files from Gentoo, Red Hat, Slackware and other systems. I use Xubuntu because it does not require too much video power which is common in servers.
 
Old 11-28-2008, 03:10 PM   #3
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
Ubuntu comes with all necessary tools to do what you want. Try to keep the server connected to the internet while booting off the live CD because live CD will let you install additional packages using apt-get if you needed any.

to check on available storage devices on your system type: fdisk -ul
this will show output like /dev/sda1 or /dev/hda1
hda1 represents the first IDE drive ... sda1 represents the first SCSI device ( i'm asuming that you have only one drive in the server so you might see hda1 , hda2, sda1, sda2 ....etc)
you will need to create a mount point then mount device listed from fdisk to mount point you just created. Something like:
Code:
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
you can create mount points anywhere you want on the file system but it is the tradition to keep mount points within /mnt directory.
If the file system is ext2 or ext3 (which will most likely will be) then the command above will mount the drive ...
also note that the USB device you intended to attach will show up as a scsi disk from fdisk output. so if you had a scsi hard drive in the server you will see two scsi devices sda1 and sda2 .....

Ubuntu is usually pretty good in mounting USB devices by itself and it should show on the desktop as soon as you attach it so after that you'll be able to use graphical interface to copy from /mnt/sda1 to USB drive.

Cheers

Last edited by waelaltaqi; 11-28-2008 at 03:14 PM.
 
Old 11-28-2008, 03:32 PM   #4
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Original Poster
Rep: Reputation: 15
does ubuntu live cds allow me to transfer from a file system such as ext2 or riserfs to an NTFS external? or would i have to convert or partition on the the external usb drive?
 
Old 11-28-2008, 03:40 PM   #5
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
If I were you I would concentrate on salvaging your information first. You can easily copy the information from any native Linux filesystem such as ext2, ext3, reiserfs, etc. NTFS is not a native Linux filesystem and will require that you install ntfs3g in order to create a filesystem readable and writeable by Linux. Save your data first and then think about converting it later.
 
Old 11-28-2008, 03:41 PM   #6
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
I'm not up to date on Ubuntu completely but i'm sure that i supports reading NTFS ... i think the newest version of Ubuntu supports write as well but i'm not sure .. but if it doesn't , it's really easy to get it to write to ntfs
http://www.howtoforge.com/ntfs_3g_ubuntu_feisty
 
Old 11-28-2008, 04:02 PM   #7
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
If ownership and permissions are important for the data you are trying to salvage,(and they likely are) then stick with a native linux format on the external usb hd. Like it has already been mentioned, rescue the data first. Worry about transferring to MS later. If it is essential to be able to read and write the usb drive from both XP/Vista and linux, then use vfat (FAT32) format on the usb drive. Both windows and linux can handle vfat. But own and perm will be lost. One workaround for this is to use tar with the right switches to preserve owns and perms, make a tarball and then store the tarball on the vfat usb drive.
 
Old 11-29-2008, 12:47 PM   #8
jedilost1
Member
 
Registered: Oct 2008
Posts: 45

Original Poster
Rep: Reputation: 15
what i mean about it being transferred to a NTFS drive was that the external device has already been formatted using the NTFS format. Do you think this will be an issue?
 
Old 11-29-2008, 04:05 PM   #9
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Well since you have ssh running you would always download winscp if you are using a windows desktop to transfer all the files off or you could rsync the files to another drive. No it should not be a problem with the drive being NTFS. You will just need to make sure that the server has I think ntfs3 installed. Just make sure to mount the drive with the cifs filesystem.
 
Old 11-29-2008, 04:59 PM   #10
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Quote:
Originally Posted by jedilost1 View Post
what i mean about it being transferred to a NTFS drive was that the external device has already been formatted using the NTFS format. Do you think this will be an issue?
No the latest ubuntu 8.10 live cd has the ntfs-3g drivers loaded on it.
 
  


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
LXer: This new small Linux distro could be huge LXer Syndicated Linux News 0 04-03-2008 07:50 AM
linux server crash lost hard disk and firewall cyberfruits Linux - Server 1 03-11-2008 10:36 AM
Linux server crash! Carlows Linux - Software 2 12-09-2004 07:19 PM


All times are GMT -5. The time now is 08:17 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration