LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-01-2007, 02:51 AM   #1
elie nasrani
LQ Newbie
 
Registered: Jul 2007
Posts: 11

Rep: Reputation: 0
Mount a usb flash during linux rescue


I'm trying to create a disaster recovery for my servers, all i need is to install a service on the server in able to connect the server to the tape library in case of a system failure for a system recovery, when using the linux rescue command from the installation cd, i don't know why i can't mount the usb disk (or probaby don't know how to), so any help on how to mount a usb flash disk while on linux rescue mode (or linux rescue nomount mode)

regards,
 
Old 10-01-2007, 03:15 AM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
what are the commands you are trying(to give me a better idea of what your trying to do)
 
Old 10-01-2007, 07:14 AM   #3
elie nasrani
LQ Newbie
 
Registered: Jul 2007
Posts: 11

Original Poster
Rep: Reputation: 0
i'm trying to install a Disk Agent on the server so it will talk to the tape library server, this installation is necessary in case of system die. usually when i add my usb i find an entry for it in the /dev folder
but here
 
Old 10-01-2007, 07:28 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I think the problem is more to do with the age of the kernel in the rescue disk.

A modern kernel scans the USb ports regularly in the same way as a M$ system would do and so should allow a user to mount the SUB device, almost as soon as one is inserted.

My approach is issue this command before and after the USB device is inserted
Code:
fdisk -l
I find newer Linux will add the new device and mount it as soon as I have inserted the USB device (like Ubuntu).

For what you are doing a Linux Live CD should do just the same thing. The rescue mode amounts to giving you just a kernel possible the exact one as the installed Linux but in usage any kernel will do. A newer kernel may even be more capable in dealing with the hardware.
 
Old 10-01-2007, 08:18 AM   #5
elie nasrani
LQ Newbie
 
Registered: Jul 2007
Posts: 11

Original Poster
Rep: Reputation: 0
ok, the usb part worked for me, but i'm stuck in another place so the usb solution is not applicable anymore, can anyone plz tell me how can i make a small os with some services installed and put it on a cd?
 
Old 10-01-2007, 08:42 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
There is a Linux terminal command called "mkisofs" with which you can turn a root filing system into an iso that can be burn into a CD or DVD.

Some simple steps of how to use it is available in Chapter 3.4 of Grub Manual for burning just one Grub file into a CD.

It may be relevant to read this thread in which I burn DSL as one of the 7 distros into a rewritable DVD. The use mkisofs command is also provided in Step 5 of this thread.

To boot a CD one must use a special boot loader that can read iso9660 file format (El Torito bootable CD standard) from a CD or a DVD. This can be either Isolinux or Grub. My example is based on Grub which has a devoted file called stage2_eltorito to do just that.

Just checked my installed DSL V3.4 on 2.4.34 kernel with Grub 0.91. It has no stage2_eltorito so you must source this file from another distro. Grub 0.91 is oldest Grub I have come across. It is persisted by DSL because it probably has the smallest footprint. Current Grub is 0.97 and not many distros still use 2.4 kernels, as kernel 2.6.22 is now stable.

Last edited by saikee; 10-01-2007 at 09:06 AM.
 
Old 06-14-2009, 09:30 PM   #7
daniel.chu
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Wink

Quote:
Originally Posted by elie nasrani View Post
I'm trying to create a disaster recovery for my servers, all i need is to install a service on the server in able to connect the server to the tape library in case of a system failure for a system recovery, when using the linux rescue command from the installation cd, i don't know why i can't mount the usb disk (or probaby don't know how to), so any help on how to mount a usb flash disk while on linux rescue mode (or linux rescue nomount mode)

regards,
OK!linux rescue mode can mount usb devices. you can plug in USB storage disk before starting your server. the linux loader will be find usb storage device.enter the system.
type command:
#fdisk -l
if you find this message
/dev/sdaX "X maybe 0,1,2,3,etc"
this means usb module started,you can type command:
#mount /dev/sdaX /mnt/usb "Dont use -v fat parameter"
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM
USB Floppy mount after linux rescue temm Linux - Hardware 0 10-12-2005 08:31 AM
Mount USB mp3 flash drive in linux houler Linux - Hardware 3 04-09-2005 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration