26

Re: Booting fom Live CD

Hi Larry
any further ideas for me ...
should I try your latest beta
or am I fighting a losing battle

Have much appreciated your help so far

27

Re: Booting fom Live CD

I knew I could use the same technique as creating a bootable CD for creating a bootable USB stick, but DOS won't do it and the Linux partition isn't on this PC.

I don't understand this ! You have the cdrom, right ? So go to My computer, then browse your media device, then copy needed files , then put them on usb key ! no need to have any linux installation. Then reboot your pc and ...
I must misunderstand something. (It is late, and i gonna sleep :-p)

If it takes time to scan this may come from fat32 file system. I can't guess with absolutely no information :-/ : how many partitions, which file system, amoung of data in partitions ?
BTW notice that the version you are talkin about is only 0.3.4-x.
Pick a test : open a Terminal (third icon from the left), then type :# parted -l  (l like in Larry),and hit enter. It returns info immediatly....

I don't understand this sentence :

1. This is the only bootable CD I have made which does NOT offer the option to boot from CD/DVD as the "other" option - the default being to boot from hard disk.

It *only* boots from cd/dvd, so .... I am a bit suprised ...
Maybe you mean that after you boot off the GParted-livecd, you say :" Oh, no, i don't wanna boot GParted " big_smile. Is it that ? and then you wanna boot your hard drive ?
Then i must admit i didn't mind this :-). but it should be easy to add this option, but surely not as default.

I wonder if you though what this tool is. I mean that common users don't play with partitions all the day. When they have to make some changes on Hard drives, they try to find the lower cost tool, cross fingers, take some aspirin, and.... wait till all is done.
If this is right (i can easily forget something), people who needs this tool are kind of administrators, and have some idea of what is partition.
I thing this is the difference between commercial product and free one. But one more time,  maybe  i am mistaken.

What is sure is that there is a very big hole between win users and OSS users (OSS means Open source software...). I am not sure i am the right man to fill this hole...

Any way. Good night. And hope you'll enjoy this livecd .

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

28

Re: Booting fom Live CD

LarryT wrote:

I knew I could use the same technique as creating a bootable CD for creating a bootable USB stick, but DOS won't do it and the Linux partition isn't on this PC.

I don't understand this ! You have the cdrom, right ? So go to My computer, then browse your media device, then copy needed files , then put them on usb key ! no need to have any linux installation. Then reboot your pc and ...
I must misunderstand something. (It is late, and i gonna sleep :-p)

OK simply this - when you boot from a device, you are booting into an operating system. In this case, the stick boots into DOS. Unless you have some clever DOS program in there which somehow emulates the CD boot into Linux which GParted needs, it will simply boot into DOS and stop there. And of course, it being the wrong operating system, you can't actually run any of the software copied because it is the wrong operating system.

Larry, don't worry about it. I have read the instructions on the LiveCD from Bootable USB Stick forum  and they make perfect sense. But to put the OS onto the stick, I need to be in Linux and that PC is busy for some days lol This isn't a LiveCD issue - you can't create a bootable "anything" without a basic operating system to create it!

LarryT wrote:

If it takes time to scan this may come from fat32 file system. I can't guess with absolutely no information :-/ : how many partitions, which file system, amoung of data in partitions ?

OK. The partitions which are showing to LiveCD version on this particular PC are (figures from WinXPPro Disk Manager):

HD0 (200GB)
--------------
1. NTFS Vista Ultimate Partition. 61.38GB (Free 52.1GB - I haven't migrated yet)
2. FAT32 WinXP Pro "clone" (it was empty space when I made that first test - I just created it from LiveCD 0.3.4-2 smile see below) 61.38GB (37.7GB free)
3. 63.53GB Unallocated
4. FAT16 DOS 8MB (5.5MB free)

HD1 (80GB)
--------------
1. FAT32 WinXP Pro (the one I cloned) 38.15GB (free 4.92GB)
2. FAT32 Win98SE 3.82GB (free 3.31GB)
3. 30.86GB Unallocated
4. FAT32 Win98SE 3.82GB (free 3.12GB) (this was a clone test in RPM some days ago)
5. FAT16 DOS 30MB (free 27.5MB)

My point about speed was that Linux showed it's true form in booting so quickly from that CD but then the scanning of the partitions etc took a long time (15 minutes or so) compared ONLY with RPM which takes a few microseconds. On the other hand, I am assuming that the GParted scanning does some checks when RPM does little except read the partition table, MBR etc so my comment was probably misleading.

As far as speed is concerned, the 38.15GB FAT32 WinXP Pro partition which I cloned/resized was completed in MINUTES compared with RPM cloning the same partition from HD1 to HD0 (same copy destination etc) a few days ago which took HOURS. AND GParted increased the size in that time. So VERY good on speed for the actions!

So first test is great - booted provided I set VESA manually and don't accept default boot.

Cloning of a large partition from one hard disk to another and increasing size done quickly and, as far as I can tell accurately.

Of course, it being WinXP, it won't boot despite all the tricks you (and others) suggest including the registry branch delete.

There is one other problem which makes no sense so I have to study it. After the copy was made to an increased size partition on the other disk, if I boot into DOS and inspect the partitions with RPM, they are great including the new one. And I can boot normally into WinXP on the old partition - again no problem. And all my partitions are there.

However, when I boot into DOS from a CD, I now can't get either of the FAT32 partitions to show up. C: is accepted but I can't VOL or DIR it without an error. The partition is correct, but GParted did something unknown to my partition table or something. It doesn't stop me using the partitions, but I can't access them in DOS now! I am working on finding out what it has done - any ideas would help, but remember I have to work in DOS, Windows or the LiveCD for now. My first try will be to check thoroughly if there is any change showing in RPM.

LarryT wrote:

BTW notice that the version you are talkin about is only 0.3.4-x.

"Only"? This from sourceforge:

Package Release (date)  Filename Size (bytes)  Downloads Architecture Type
gparted-livecd 
Latest
gparted-livecd-0.3.4-2 (2007-03-12 16:24)   gparted-livecd-0.3.4-2.iso  Mirror  52662272 4890 i386 .iso

LarryT wrote:

Pick a test : open a Terminal (third icon from the left), then type :# parted -l  (l like in Larry),and hit enter. It returns info immediatly....

What am I testing for? I can't get info out of GParted yet because I don't know how to direct a file to save - when I tried to save the Report at the end of cloning, it would only let me see the CD sad (yeah, and I don't know Linux yet neutral )

LarryT wrote:

I don't understand this sentence :

1. This is the only bootable CD I have made which does NOT offer the option to boot from CD/DVD as the "other" option - the default being to boot from hard disk.

It *only* boots from cd/dvd, so .... I am a bit suprised ...

Well, if you have a Vista or WindowsXP install CD handy, when you boot from them, the line comes up something like "Boot from CD/DVD...." and the ... grows for 5 seconds. If you don't hit a key in that time, the boot goes to the next item in BIOS to boot.

Again, when I create bootable CDs, I put in a Boot Menu which REPLACES the BIOS prompt completely but shows a timed menu, for example:

1. Boot from Hard Disk.
2. Boot from CD.

If you hit nothing, after the timeout, it goes to hard disk and boots normally. If you hit 2 or arrow down and hit Enter, it boots from CD where there is often another menu for different options.

Whichever is the Default, my point was only that it is "better" (opinion lol) if users can leave the CD in the drive and, if they do an unattended boot, their normal boot will take place. Think about it. Even if you disagree, it is better to let the user choose instead of having to pop the CD in and out!

LarryT wrote:

I wonder if you though what this tool is. I mean that common users don't play with partitions all the day. When they have to make some changes on Hard drives, they try to find the lower cost tool, cross fingers, take some aspirin, and.... wait till all is done.

If they don't know what partitions are, then aspirion won't do it cos they are going to think they need a new computer afterwards big_smile No, seriously, the thing is that when I DO work on partitions, I work on them a lot for some days often. But in between times, I want to use the PC normally. I leave the CD in through that time.

You might remember that, with a Vista installation or when migrating to bigger/newer hard disks, even some of the ordinary users (who never knew what a partition is) are going  to try to follow a step-by-step way to "move" their operating systems. If you don't believe me, scan through some C-net forums and see the advice being given! But not all of them are going to pay $100 or so for a partition manager (which often won't work anyway) so they come to GParted or RPM  etc.

LarryT wrote:

What is sure is that there is a very big hole between win users and OSS users (OSS means Open source software...). I am not sure i am the right man to fill this hole...

No. Maybe I am jumping in at the wrong time testing this. But look, today I burned my first LiveCD CD and I already cloned and grew a partition from one physical device to another! You already filled some of that gap and made me hungry to learn more about how to do the other things!

And yes, it's already enjoyable. It did a great job. Now I need to understand what else it did - but if I didn't want to work at it on my own, I wouldn't have got this far!

By the way - now I have found the way to boot, maybe after you note that I had to F2 and type vesa rather than let it default, I think the rest of this is on the wrong forum thread sad

29

Re: Booting fom Live CD

So, you are a kind of DOS programmer I now guess. I am not a linux programmer neither dev ! I have a literary background, and guess what : when i was 30 I didn't know how to switch of the first win98 pc I was using. I just powered it off, so I get a bar graph when powering on big_smile !
It is ten years since this day :-p
But that is another story, and nothing to do here, like you mentioned it!

See you...

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

30

Re: Booting fom Live CD

OK Congratulations GParted teams!

gparted-livecd-0.3.4-2.iso successfully booted (F2, selected vesa then keymap/language defaults).

Successfully cloned WinXPPro 38.15GB partition from FIRST partition on SECOND hard disk (HD1) to SECOND partition on FIRST hard disk (HD0) and resized it to 61.38GB. Then succeeded in getting WinXP Pro booting from there - in other words, moved the OS partition leaving the original as a full backup.

The method relies heavily on the fact that I use XOSL exclusively as my boot loader - it allows activating partitions on the fly and also allows "Swap Disks" which all means that I can always have my currently loaded OS on C: and it can be on the second hard disk or any other device and still load any OS. (It can also selectively hide OS partitions on boot.)

Thanks Larry. Two things that might need to be added to the Windows Informations (sic) notes in the Info page (useful reading while cloning but a little late as I had not caught up with the documentation!):

1. In addition to the Windows Registry fix, the Boot.ini file will need changing if the partition you are moving XP to is not the same as the other one (for instance, I needed to edit (1) to (2) to make it work in this instance).

2. After cloning was completed, I rebooted to DOS to check the partitions before allowing Windows to get its hands on things. The partitions were all present but the new cloned WinXP Pro on C: produced a filesystem error. Studying things after I cloned again, I noticed that although the original partition was boot (active), LBA, the copy was only boot (active). By setting the LBA flag in GParted, I solved the problem. Thanks. Strange thing was that RPM had identified it correctly as FAT32 LBA the first time I cloned it!

Incidentally - well, not so incidentally when I think about it! - speeds are wonderful.

Once the LiveCD boot completed to GParted, I timed it at 3 minutes to do the "scanning devices". This might seem long and it does it at other stages like on completion of regrowing etc. However, if that scanning is the reason why the copying/resizing is fast, it is excellent coding! The 38.15GB partition cloned in 21 minutes (amazingly fast!). It then took only 6 minutes to grow it to 61.38GB.

I don't know if it was longer when it went to unallocated space as the second time I left the target partition in place.

In any case, GPArted LiveCD is definitely in my arsenal for keeps and now it gets me working on getting Linux partitions on ALL the PCs here.

Thanks.

31

Re: Booting fom Live CD

Briton, like you mention it it is sometime useful to change boot.ini.
Personally I always make this change after i install any Win w2K/XP. Adding the three lines, so it can boot partition if number has changed.

You would be very kind to write what you said ; I think you are the right man to do this, if you have the free time I have not !
All the cloning steps are mentioned here : http://www.dominok.net/en/it/en.it.clonexp.html
And some useful tips may be found there : http://www.bellamyjc.org/fr/pratiquemultiboot.html but this is in french.
Then I can add somewhere here : http://gparted.sourceforge.net/documentation.php
It would be really nice, if you have time.

It is up to you.

have a nice day.

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

32

Re: Booting fom Live CD

LarryT wrote:

So, you are a kind of DOS programmer I now guess.

"Some kind of" is good. I am self-taught and my work is elsewhere. But starting with an AppleIIe when they first came out, through Basic programming on that, I now write C++ Windows Programs in my spare time for fun :$ Most of what I do technically around partitions etc is solving problems for a network of people/small businesses and testing things which come up - this which all forces me to be very Windows oriented. I have been promising myself for years to get around to doing something more with Linux than have it one of the boxes when we test to see what interactions there are, but you may have noticed - no-one ever sends you a Christmas or birthday gift consisting of more time! big_smile

LarryT wrote:

I didn't know how to switch of the first win98 pc I was using. I just powered it off

Funny that - many people have trouble getting Win98 to close down even now neutral

LarryT wrote:

You would be very kind to write what you said ; I think you are the right man to do this, if you have the free time I have not !

Well, I don't either. I was only testing  GParted because we have so many people who want to migrate their WinXP systems to a new disk, larger disk, different partition etc. Also now, they want to have their new Vista upgrade side-by-side with their old WinXP.

If you mean writing a step-by-step instruction how to do it, I will work on that when the immediate pressure to complete the remainder of the testing lets up! I'll post a link to it wherever I can find the problem being posted including your links.

The problem I have found with many of the forums is that there are people saying "it can't be done" and the discussion (and further trying) was stifled and then the trolls move in or something. There was a logical argument that Microsoft made it that way with Windows XP because otherwise you could easily produce an ISO of a partition with instructions how to put it in a partition the same size and then move/resize it and have a working Windows. That's dumb as there are so many slipstreamed pirate copies of the OS out there which would be an easier way to get a new partition for most people! It is interesting (if I understand it correctly) that when you move a WinXP partition as I did, you have to activate the product but if you move a pirate WinXP partition, it just moves! (I'll have to try it sometime when there is a LOT more time, just for interest because I have a feeling that before Vista, Microsoft made it EASIER for the pirates rather than harder!)

The other problem is that the forums tend to point at very expensive software which, as far as I have tested, doesn't actually solve the problem! But people who have paid a lot of money for software which they like start defending it and the logic of the discussion/advice gets lost somewhere.

Have you tried/studied/used RPM (Ranish Partition Manager) and XOSL? You would be interested I am certain! Strange how the BEST software is often free. Maybe it is simply because the authors and others care more about it!

Now, one final thing. Do you know why the LBA flag was removed from the copy of the partition? Is that a bug which needs reporting or did I misunderstand something about GParted? It REALLY messed things up and for a user who was not so sure that he wasn't really breaking anything, it would have meant it was all a waste of time - possibly having to restore a complete backup of two OS partitions! (I knew nothing had really been lost as is the case with a lot of partition work!)

Thanks "pour encourager les autres" especially me smile

33

Re: Booting fom Live CD

you may file a bug or question about this LBA. Maybe Plors could give you a good answer.
good luck.

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

34

Re: Booting fom Live CD

Let me know whether that LBA flag thing is a bug and if so I'll report it.

Oh! But I had one other question for you:

If I understand the setup of the LiveCD, once GParted starts, I can open a "Terminal" window and then I am in a Linux Command window - something like a DOS command window? If that is right, surely I could use that to put the Linux system onto the USB stick. I mean GParted shows that the USB stick is accessible and the Live CD has installed a basic version of Linux.

If I am right, this would mean that people WITHOUT ANY LINUX partition could create the LiveUSB-stick from the LiveCD alone.

If you feel like saving me some time (because I don't have enough to study up Linux for the moment), could you start me off how, from inside GParted in the Terminal (I assume that is also the BASH I get into), I can switch away from /root (which is either RAM or the CD or I don't understand enough how Linux works yet lol) to be able to give the commands needed (in your step-by-step how-to about USB stick) to create the system on the USB stick. If I do that, I can easily come up with the step-by-step for people who do NOT have Linux to create a GParted Live-USB stick. Let me know if you can, otherwise it will have to wait until I am able to spend a night or two reading about Linux commands.

35

Re: Booting fom Live CD

Briton, you have just learnt me something : the livecd is not accessible from within Windows ! I never heard of this !
So listen :
-1- Open a terminal
-2- run # fdisk -l , one time and keep the out put in mind : the important thing is to see the difference when your usb key is plugged in.
( open a second terminal if you want , to keep the first value in eyes)
-3- plug your usb key
-4- run again fdisk : # fdisk -l , till you see your new device : would be sda1 or sdb1 or sdc1 or sdX1 ......
-5- mount this device to make it available : # mount /dev/sdX1 /mnt/usb (where X is the letter you saw during the previous step).
-6- change directory to /mnt/cdrom : # cd /mnt/cdrom
(if you need type tab-key twice and shows you the possible commands)
-6b- verify you are in the right place :# pwd (it must returned /mnt/cdrom)
-7- list the contains of the directory : # ls
-8- It shows : two directories and one file : isolinux/ syslinux/ gparted.dat (dir are  blue and files green)
-9- copy the contains of both directory and gparted.dat to your usb key : # cp -r isolinux/* syslinux/* gparted /mnt/usb
(this means : copy recursively files contained in the isolinux directory and syslinux directory and also gparted.dat file, to /mnt/usb
-10-when you get the hand back, you may have a look at the files in your usb key :# ls /mnt/usb
-11- Now leave the usb key : this is called "umount" : # umount  /mnt/usb
-12- unplug it Or let it plugged and reboot your computer : bios must be set to boot off usb, ... but this ... I bet you know big_smile
(I assume you have set your usb key to be bootable using syslinux from within win$)

Then, you should win smile

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

36 (edited by briton 2007-03-16 01:13:32)

Re: Booting fom Live CD

LarryT wrote:

the livecd is not accessible from within Windows !

That depends what you mean by "accessible". In Windows (or DOS), I can see, copy etc the files on the CD. I don't even need the CD - if I simply take any ISO, I can see, copy etc ALL the files in Windows using Nero (or similar) and with Isobuster (or similar) I can see all the files including those in the boot cat.

So I can copy all the files onto a USB stick any time I like. But that will not make the stick bootable into Linux.

Thanks for the rest. I won't do anything with a command called "fdisk" until I have read it up, which I have started doing. If you know anything about DOS fdisk, you will understand why! If you partitioned your hard disks manually from Ranish, you will understand why TWICE! big_smile

I nearly have enough to try that. One quick question though about the access to the disks other than "root". If I understand this so far, when I am in LiveCD version of GParted, I am working in a Linux environment (in a BASH shell) . That environment came from the CD so I am assuming for the moment that the "root" is the root of the CD (or does "root" mean something entirely different in Windows and Linux?). That means that when I have completed a GParted action and I have the option to save the log file, I need to save it somewhere OTHER than root because the CD is of course read-only (naturally, this will NOT apply when I get my US stick up and running as that is not read-only and it has plenty of space).

So when a user gets to the end of the action(s) in GParted, and he clicks to browse to another location to save the file, how does he get to somewhere on one of the hard disk partitions from that "Save" and then "Browse" dialog?

Meanwhile, I am coming up with a "Linux-less" method of creating the Live-USB GParted. I know that any of you Linux users will already know how to do it, but it helps to get some step-by-step instructions for non-Linux users which will encourage them (me! lol) to become Linux users.

Back to your instructions, Larry....

LarryT wrote:

I assume you have set your usb key to be bootable using syslinux from within win$

Nope. You are still misunderstanding. Any DOS user can create a bootable USB stick (if their BIOS allows it or if they can boot it using a loader like XOSL) by formatting a partition on the stick with FAT system and with the paramaters to "transfer the system files" to the disk. Just as you have a command "syslinux", DOS users can use "format g: /s" (if the USB is drive G: for instance) where the "/s" paramater tells the format program to transfer the DOS system files to the stick (which is what makes it bootable). They could also include the parameter "/V:PARTNAME" which would make that partition have a name "PARTNAME".

Now if you do it in Windows, it will depend VERY much which Windows version you are using as each of them 98SE, Me, XP etc has a different variation of the way it handles DOS. But in all case, Windows has access to its own DOS system files. It does NOT have access to the commands which you use like "syslinux" and even if you tried to use one in Windows or DOS it would simply fail to recognise it.

That is why it is called an Operating System. Without a VERY unusual software shell, one operating system cannot render a partition bootable in another operating system (yes, I know someone will probably shout that I am wrong, but I am talking about the average mortal, not the specialist!)

So my aim is simply to use the LiveCD boot into BASH, then use the Terminal window, which being run under the Linux operating system, can now use Linux commands like "syslinux".

I _think_ you have given me enough to get me to operate that on my USB stick, but I am reading it up as I don't want to have to do yet another backup/restore because I made my Vista partition bootable into Linux without realising it! big_smile

We'll unwin yet tongue I shall send a bugzilla report about the LBA mode flag.

Someone, please let me know if you have an answer to the question I have made bold above. Thanks.

37 (edited by briton 2007-03-16 05:27:31)

Re: Booting fom Live CD

If I understand this correctly, to boot from a DOS system partition on a USB stick, I will need a DOS program like loadlin which I can run from an autoexec.bat file to start the linux package. I have loadlin, I have the package, trouble is, being a newbie, I can't find what parameters to stick in the loadlin command to point it to the package to load. Any ideas anyone?

It would be much easier to create an ext2 partition on the stick and put the linux boot on it, but that didn't work either sad Any ideas on that one anyone?

Finally, I opened up the BootCatalog.cat and BootImage.img files to see what you had in them. Nothing much big_smile When I create a bootable CD, it has a BUNCH of stuff in there which, if I want it to boot to a DOS command line as well as some other operating system (in case of needing to fix errors etc), I put that as an option in the boot menu I mentioned and it uses the contents of that BootImage.img as the A: drive and treats it like a read-only floppy.

Now really, Linux guys, I have been all over the web about "booting Linux from a DOS disk" and read about 10 billion words. It CANNOT be this hard.

Three instant ways to do it:

1. Boot the GParted LiveCD files "all on the root directory" of the USBstick where the root directory is on a DOS system FAT partition using an AUTOEXEC.BAT line which points at loadlin or some other "start a linux load from a minimal DOS command" utility;

OR

2. Boot the GParted LiveCD files "all on the root directory" of the USBstick using an ext2 partition with something which points to the Linux system to get it rolling;

OR

3. Boot the GParted LiveCD files "all on the root directory" of the USBstick using a FAT partition, but knowing how the El Torito CD boot system is pointing at the Linux boot - meaning ALL the files are already on the CD.

I really don't mind trying them all, but I am still lacking information past the forum detailed instructions in Boot gparted-livecd- off usbstick which only tell me how to copy everything to the root of that USB partition, which I can do in Windows (any variety), DOS and now, from those instructions, from a Terminal window from the LiveCD boot.

Yep, the files are all there. The partition is bootable, but there is no connection between the boot and the OS you want running. Any thoughts?

Added later - what loadlin needs is the kernel image file. I tried what I thought that might be - all of them. The only one that works at all tries to go through the same progress as I get from the LiveCD boot but without the driver loading and then gets into an endless loop preceded by a Kernel Panic. (Repeated error messages refer to attempts to access hardware directly). The answer is somewhere close. Kernel image file anyone?

38

Re: Booting fom Live CD

Too long Brtion, I will read one next day wink

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)