LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-10-2012, 10:42 AM   #16
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled

First things first. I can connect with my wired ethernet at home, but when I bring my laptop to work it hangs at "resolving host" when I try to use my browser. I tried the sudo if up eth0 command, but it says eth0 already configured. The routers at both my home and work are password protected, but at home I was never prompted for a password. What next?
 
Old 01-10-2012, 10:50 AM   #17
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
The reason I want to back up is because I tend to be cautious to a fault. I would prefer to be comfortable with a worst case scenario procedure where I can get back to square one. I've learned that I'm capable of irrevocable destruction where computers are involved. =-)
 
Old 01-10-2012, 11:05 AM   #18
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
Never mind on the wired Ethernet connection problem at work. I reseated the cables and it works now. I'm digesting the information I've been given right now. Will post when I have more time. I'm leaning towards the manual clonezilla plan. One thing I don't understand is if I should be able to boot from a USB flash drive AND access my USB external drive at the same time. If not then that is a show-stopper, because I can't boot from a cd, and I'll require an external drive for storing the backup.
 
Old 01-10-2012, 12:52 PM   #19
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,397

Rep: Reputation: 101Reputation: 101
I was not allowed to connect a personal PC at work. IT security had a couple of ex-college linebackers as enforcers. Tiny (6foot 4 about 240 lbs) and his bigger brother. But they were really nice folks. When things got serious they had an ex-Green Beret Captain. 5'6, wiry and MEAN! But I digress...

Backup to be safe. I completely agree. I would recommend backing up any data files (office documents, web browser and email profiles etc.) separately from the image. A LOT easier to restore a file by copying it as opposed to pulling it from an image. I am not sure if Clonezilla has a feature to restore file by file but I do not use Clonezilla - it might.

As to Clonezilla manual install. Here is what I might add...

Use "sudo fdisk -l" rather than demsg to look see where the flash drive is mounted. Or, use System; Administration; Disk Utility from the Ubuntu menu. demsg produces a LOT of stuff to look through.

Run "ls /media" to learn where the flash drive is mounted. Mine is /media/KINGSTON1 as that is what I had named if when I formatted it long ago.

Click (or double click) on the Clonezilla zip file. The Ubuntu archive tool, File Roller, will unzip the file. It will allow you to navigate to your flash drive.

As to making the flash drive bootable... A good time to exercise tab completion in the bash shell. Open a terminal (which is bash by default) and navigate to the flash drive. In my case I enter:
Quote:
cd /m[tab]K[tab]utab]l[tab][Enter] which takes me to /media/KINGSTON1/utils/linux/
ls shows what is there
Quote:
ken@taylor12:/media/KINGSTON1/utils/linux$ ls
makeboot.sh syslinux VERSION.txt
We now need to execute makeboot.sh and here comes another Unix/Linux artifact. For reasons only known to the original developers of Unix, one is not allowed to execute a script or other executable file by typing its name when the working directory (try "pwd" to find out where your bash shell is sitting) is where the file is located. So... we type ./makeboot.sh /dev/sd(something)1 [Enter]. You need to replace (something) with the letter determined from inspecting the output of "sudo fdisk -l". This of course will NOT work because doing things like making a device bootable are reserved for the superuser (or root on Red Hat and similar Linux varieties). So the real command on my PC would be
Quote:
sudo ./makeboot.sh /dev/sdg1
The script nicely asks me to confirm where it is about to install things and then to confirm each item as it is installed.

When complete I right click on the Desktop icon for the flash drive. I placed it in my Dell netbook, powered it on, pressed F12 to select the boot device, chose the USB drive and it booted to the Clonezilla screen

Quote:
One thing I don't understand is if I should be able to boot from a USB flash drive AND access my USB external drive at the same time. If not then that is a show-stopper, because I can't boot from a cd, and I'll require an external drive for storing the backup.
You said that you have 2 USB ports on the laptop. If you connect the bootable flash drive and a USB hard drive (which is probably NOT bootable) the machine should boot from the flash drive and automatically mount the hard drive. I believe the hard drive will show up in the Clonezilla menus when you are asked to select the target for the image.

Ken

It could be worse. We could be writing JCL. I have only known two people who could write JCL from scratch and only one who WOULD write JCL from scratch. I could not write JCL from scratch or otherwise. But I could CLONE it and tweak it. At the end of my last project I had over 4,000 lines in my library but I did not write a single one
 
Old 01-10-2012, 05:18 PM   #20
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I just made an interesting discovery. The test I used to determine if my two usb wireless network adapters were working was faulty. I thought the test machine was connected wirelessly, but it turns out it had a wireless adapter plus it was hard-wired. I didn't realize this until today when I tested my adapters again, and both are broken. I have two identical Linksys adapters that used to work just fine, and as far as I can tell, the only reason they don't work anymore is because they were plugged into my laptop. Is that even possible? I'm sure they didn't suffer any trauma, because I'm the only one that uses them. One day the first adapter just stopped working, so I plugged in a second one and that stopped working too.
 
Old 01-10-2012, 07:15 PM   #21
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,397

Rep: Reputation: 101Reputation: 101
Sounds like you need to do a BIG reboot

What exactly is your network/Internet configuration hardware wise. I am guessing it is something like:

Internet--->DSL or Cable--->[Modem]--->[Linksys]---wired--->[laptop]

And secondly, how is the iPad connecting to the Internet? Is it on a strictly wireless signal (4G or whatever it is called) from your provider or does it share the connection used by the laptop? Do you have an iPad docking thing to allow an Ethernet connection to the iPad? If so it might be able to test the Linksys from the iPad (just guessing).

How are the Linksys units not working? Wired and wireless or just wireless? I do not see how just plugging the laptop into the Linksys could do anything serious. Without knowing more details I would recommend trying:

- Disconnect everything from the modem
- Power the DSL or Cable modem off and back on - see if the appropriate lights come on (except for the Ethernet light if it has one)
- Connect a Linksys alone to the Modem and power on the Linksys. See if the appropriate lights come on. The Ethernet light on the modem should come on. If not, try pressing the reset button on the Linksys (I am guessing it has one). Hold it for 15 seconds and release.

If the above steps seem successful connect the laptop to the Linksys with an Ethernet cable. Boot the laptop. There is probably a light on the Linksys to show that the connection is good. If the connection is not good, try another port or another cable.

On the laptop open a terminal and execute ifconfig to see if it obtained an IP address from the Linksys. If so, try and access a web site with Firefox.

Please let me know what you find and I will do some more thinking.

Ken
 
Old 01-10-2012, 10:57 PM   #22
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,028

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i would look into dd for image backups.

this works for me to back up my xbmc-live usb drive:
Code:
dd bs=8192 if=/dev/sdd | bzip2 > xbmc-01.05.2011.iso.bz2 # to create the image
bunzip2 -c ./xbmc-01.05.2011.iso.bz2 | dd bs=8192 of=/dev/sdd # to restore the image
the bzip and bs parameters are optional. be very, very careful you are restoring to the correct device or you will irreversibly overwrite data.

Last edited by schneidz; 01-10-2012 at 10:59 PM.
 
Old 01-11-2012, 11:04 AM   #23
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I'm sure that both my wireless adapters are not working. I have a third adapter, identical to the other two which works fine. When I swap the other two in place of the working adapter, they both fail. I don't understand why two adapters failed at the same time for no apparent reason, and I am very reluctant to plug in another wireless adapter in the laptop that may be killing them. For now, I'm happy to have the wired connection working on this machine. Maybe there are some diagnostics I can do to possibly pinpoint the wireless problem. Maybe an upgrade of Ubuntu will fix the problem. Maybe it is just a coincidental double hardware failure. The first thing I need to do is the Clonezilla thing. I haven't had any time to look at it yet. Maybe later tonight. As usual, thanks for all your support in this forum!
 
Old 01-11-2012, 09:55 PM   #24
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I'm missing something as usual. Using gparted I created a new fat32 partition on my flash drive with only minor difficulties. I extracted the clonezilla zip files into that new partition which happens to be called 5875-500B, and fdisk lists it as sdb2. So it should be a simple matter of making that partition bootable following the instructions which seem to state that I need to change the working directory to the one with the clonezilla files and then execute a makeboot command. Here is what happens:

tom@latitude:/media/5875-500B$ ls
Clonezilla-Live-Version COPYING EFI home isolinux live syslinux utils
tom@latitude:/media/5875-500B$ sudo ./makeboot.sh /dev/sdb2
sudo: ./makeboot.sh: command not found


I'm guessing that I need to enter the full path and name of the makeboot command, but I can't find it anywhere when I search the files.

I'm making more progress than I expected though.
 
Old 01-12-2012, 08:04 AM   #25
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
Never mind. I was thinking that makeboot.sh was a Linux command. Now I realize it is part of the clonezilla download. Ok. My flash drive boots to clonezilla. My external hard drive is at work, so I won't be able to actually clone a partition until later today. The next big question is whether I can boot from the flash drive and see my external hard drive. I am a "glass is completely empty" kind of guy. I suspect a little more drama before I hit the inevitable brick wall that seems to follow me around. :~]
 
Old 01-12-2012, 09:36 AM   #26
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,397

Rep: Reputation: 101Reputation: 101
Sounds like you are making great progress!

As to
Quote:
The next big question is whether I can boot from the flash drive and see my external hard drive.
The answer has to be YES. Booting from a flash drive for the purpose of cloning the PC's internal drive requires some place to write the image to. Most people do not have multiple drives in their PCs nor a server on their network available to accept the image. The Clonezilla boot process should pickup your external USB hard drive.

Ken
 
Old 01-12-2012, 12:33 PM   #27
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
The image is cloning right now!

One thing I failed to mention is the reason my cd drive doesn't work. I almost forgot that when I purchased the laptop, the first thing I did, as always, was to repartition the drive to keep my data separate from the system partition which happened to be Windows xp. Using Partition Magic which I have used hundreds of times for that purpose, I was in the middle of the system partition resizing when I lost power to the laptop. At that point I had a vegetable. The cd drive wouldn't work so I couldn't reinstall from cd. It wouldn't boot to the internal hard disk. I thought all was lost. Then my Linux friend came to the rescue. He told me he would install Ubuntu from a flash drive and would help me with any Linux problems, but he absolutely refused to even consider any Windows questions. Of course I was thrilled to have a laptop instead of a vegetable. I've kind of lost touch with him since, hence my needs for this forum. Actually, losing my cd drive was good luck, because I was introduced to Linux as a result, and I rarely if ever need my cd drive.

Given that information, I don't think its inconceivable that you guys can help me to get my cd drive working again. There was no physical damage, and it worked fine til I interrupted the partition magic while it was disemboweling stuff. I'm guessing that some internal table got hosed, and with all of your incredible knowledge, you can figure out how to diagnose and fix the problem.
 
Old 01-12-2012, 12:50 PM   #28
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,397

Rep: Reputation: 101Reputation: 101
Quote:
when I purchased the laptop, the first thing I did
Just how long ago did you purchase this thing? Is it still under warranty? That said, loosing power during a disk write can corrupt the hard disk media. As the CD media is not writable I do not see how a loss of power could effect the CD drive. You indicated earlier that the wired network card was disabled in BIOS. Perhaps the CD drive is a similar situation?

I have had BIOS "confusion" issues with Dell desktops. My solution is to disconnect the power and network cables and then pop the button battery which maintains BIOS configuration. This puts the machine back to scratch and it discovers its hardware when first powered on. You might be able to do something similar to the laptop. If there is not a button battery there might be a reset option in the bootup BIOS screens.

Ken
 
Old 01-12-2012, 01:24 PM   #29
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I will explore for bios reset after my clone finishes. It's taking a really long time, but I don't care as long as it works.

The next step is to do a restore. I need some help planning for a worst case scenario. Maybe I'd be better off making a flash drive Ubuntu installer. Can you help me with that? Sorry to be so needy. I'll back up my data so that the worst case is to reinstall from flash drive. Without that fallback I'm reluctant to test the restore function. Can I use the same flash drive with a different partition for Ubuntu?
 
Old 01-12-2012, 03:01 PM   #30
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,397

Rep: Reputation: 101Reputation: 101
Quote:
I'll back up my data...
I agree 100%. Before doing the restore which would really be an academic exercise as the current install is not working with all of your hardware and 9.10 is beyond end of life (no more security updates)...

I would

1 - smack the BIOS around and see if it will recognize all of your hardware
2 - create a "Live" flash drive of a more recent version of Ubuntu and see if it detects the wireless card in the laptop.
3 - if that works and you have your data files properly backed up - play with the restore and then install the more current version of Ubuntu, restore your data and go forth and prosper

As to what version of Ubuntu to use...

10.04 is the current "Long Term Support" release. It is supported until April 2013 and is quite stable. I looks like Ubuntu should look.

11.10 is the most recent version. It has the Unity interface which looks like an oversized smart phone. If you are used to the iPad you might like Unity. I will not comment further

As to making the bootable live flash drive... Ubuntu 10.04 and later have an app called "Startup Disk Creator" which will do the deed almost effortlessly (at least it claims it will, I am about to try). Well, it seems to be working. Will test in a minute.

Look under System; Administration and see if "Startup Disk Creator" is present. If it is you will need a 2 GB or larger flash drive WHICH WILL BE ERASED!!! The process I just followed is:

Download the iso file for the desired version
Launch "Startup Disk Creator"
point to the iso file
point to the flash drive
click [Make Startup Disk] and enter you password to perform privileged actions as requested
wait a little bit while it installs Ubuntu on the flash drive
eject the flash drive and it is ready

I just booted my netbook from the flash drive and it allows me to Try or Install. I selected Try and it is continuing to load. Slow from the old, obsolescent Kingston flash drive. And Unity has loaded. {start of rant} If Unity was my only GUI interface choice I would go back to CP/M or blow my brains out. {end of rant} You can tweak 11.10 to make the interface more more like a computer than a smart phone if you like.

I am stalling until my download of 9.10 completes. I will build a quick virtual machine with VMWare and see if "Startup Disk Creator" is present...

Good news! The program is present. It is called "USB Startup Disk Creator" but it looks the same.

Ken
 
  


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
Full hard drive tape backup using cpio dsraju Red Hat 6 07-05-2011 01:09 AM
Cant restore my hard drive disk properly DuarteSilva Linux - Desktop 11 10-15-2010 04:30 AM
Linux full Hard disk backup or mirror charlestsai4001 Linux - Newbie 4 07-08-2010 07:54 PM
backup the RHEL5 server with Cpanel and create full system restore disk zaki Linux - Newbie 1 08-31-2009 12:59 PM
Backup/restore and/or cloning of a hard drive Ubuntu 7.10 taylorkh Ubuntu 3 02-02-2008 08:47 PM


All times are GMT -5. The time now is 02:16 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