SliTaz SliTaz Forum

You are not logged in.

#1 2012-11-21 06:45:53

mat619
Member
Registered: 2011-09-02
Posts: 7

Installer CD issue, and installation finishes but doesn't install grub

Hey there,

I tried to install 4.0 on my girlfriends' old crappy Gericom laptop (Celeron M, 512 MB RAM) from CD yesterday, since its BIOS can't boot from USB devices other than floppy, and encountered a number of problems:

First the installer comes as far as starting the installation process, but then complains after a few seconds that it couldn't mount /dev/cdrom (what exactly does it think it was loaded from?!). So far so bad, but I happened to have a 4.0 live stick around, so I used that as install source. That worked, the install completed, no errors - but I was left with an empty boot sector: Grub just didn't install, even though the box in the installer was checked and it reported success installing in the log!

Any hints how to fix that? My only idea would be that grub wasn't installed on /dev/hda (the IDE HDD) but rather on /dev/sda (the USB thumbdrive), but since you can't select where to put grub in the installer, I've no clue how to work around that if it really were the case.

Kind regards & thanks in advance,

Matt

Offline

#2 2012-11-21 07:17:26

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Installer CD issue, and installation finishes but doesn't install grub

Did you try "grub-install /dev/hda" (as root, of course)?

Offline

#3 2012-11-21 16:41:59

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Installer CD issue, and installation finishes but doesn't install grub

Did you format the drive to ext3?

Offline

#4 2012-11-22 06:41:52

mat619
Member
Registered: 2011-09-02
Posts: 7

Re: Installer CD issue, and installation finishes but doesn't install grub

To follow up on the CD issue: Yesterday suddenly installing from CD worked two times, then not for a few times again...

[c]Warning: /dev/cdrom: Mount failed
Error 3 Invalid source[/c]
@gdesilva:

Yes, I did. Resulted in:

[c]Could not find device for /boot: Not found or not a block device.[/c]

Just for fun I tried...

[c]grub-install --root-device /media/disk /dev/hda[/c]

... which resulted in "/boot: No such file or directory".

That made me curious, so I took a look into the mounted /dev/hda1, where I installed Slitaz on several times before, and what the heck:

[c]root@slitaz:/home/tux# ls -al /media/disk/
total 20
drwxr-xr-x   3 root   root   4096 Nov 21 21:51 .
drwxr-xr-x   6 root   root    160 Nov 22 06:39 ..
drwx------   2 root   root   16384 Nov 21 21:51 lost+found[/c]
Well how did that happen, several installation attempts in a row, and not a single file of Slitaz to be seen on the HDD?!

@Trixar_za:

First ext4, then tried ext3. Didn't lead to any different result.

Offline

#5 2012-11-22 11:24:58

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Installer CD issue, and installation finishes but doesn't install grub

@mat619, I had a similar experience with an old Toshiba laptop where I could not boot using LiveCD. Tried all sorts of things but nothing worked and then I used the proverbial sledge hammer approach - took the HDD out and installed Slitaz on it using another machine. This is of course slightly different to your situation but it is an option you may want to try.

If your machine will let you boot from LiveCD, then another option may be to download and install unetbootin (you need to install mtools and p7zip-full packages also) and try to install Slitaz using unetbootin.

Probably not the answer you are looking for but thought of mentioning this just in case.

Offline

#6 2012-11-22 11:33:52

mat619
Member
Registered: 2011-09-02
Posts: 7

Re: Installer CD issue, and installation finishes but doesn't install grub

@gdesilva: No, this is not really a possible solution for me, since I have no other laptop using IDE HDDs around at the moment and I want a regular, full install, not a live system put on the harddrive. But thanks for the input, if all else fails this will probably be the last straw.

Offline

#7 2012-11-23 16:45:56

Guest
Guest

Re: Installer CD issue, and installation finishes but doesn't install grub

Hi mat619

Judging by the specs, that machine will not read cdrw discs, if that is what you tried, best burn an ordinary cdrom. If it doesn't like your drives after trying that, I would remove & re insert the drives a couple of times to clean the contact areas, in case it's just old age & dirty contacts.

I'm new to this distro, (yesterday), but I burned to a dvd-r & used that to create a live pendrive, so I guess the distro works OK.

HTH

#8 2012-11-23 17:04:48

mat619
Member
Registered: 2011-09-02
Posts: 7

Re: Installer CD issue, and installation finishes but doesn't install grub

Hi HTH,

don't wanna be rude, but did you really read what I wrote in my original post? I mentioned the machine can't boot from USBs, and that I therefore burned a CD to start the installation process running it from that.

The problem regarding the CD that is mentioned in the thread title originated from the installer complaining it couldn't mount the CD - even though the whole system has been booted from that very CD.

No offense, really, I just don't like it if people only read the thread title, but not the post itself.

Matt

Offline

#9 2012-11-23 17:12:37

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Installer CD issue, and installation finishes but doesn't install grub

I always run Check media from orange menu to verify file integrity and ability of optical drive to read disc.

The issue is the installer is unable to mount the cd to SOURCE_ROOT which is /media/source

All operations as root user:

Make mount point directory for SOURCE_ROOT:

[c]mkdir -p /media/source[/c]

Find cdrom drive name with this command:

[c]cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3[/c]

[c]mount -t iso9660 /dev/[/c]drive name   [c]/media/source[/c]

Verify cdrom is mounted:

[c]ls /media/source[/c]

README      boot        index.html  md5sum      style.css

Rerun install.

If that fails copy iso to a flash drive,plug-in/mount flash drive with iso in laptop.

Provide full path to slitaz iso on mounted flash drive for install source.

Rerun install.

Offline

#10 2012-11-23 17:59:57

Guest
Guest

Re: Installer CD issue, and installation finishes but doesn't install grub

@mat619

Yes I read your post more than twice; not very clear what you did & what didn't work.

I'll try not to offer you my help in future.

#11 2012-11-23 19:47:47

mat619
Member
Registered: 2011-09-02
Posts: 7

Re: Installer CD issue, and installation finishes but doesn't install grub

@fatmac:

As I said, sorry, no offense intended, and I'm always glad for help but I thought my post was quite understandable:

I wrote "I tried to install 4.0 [...] from CD yesterday [...] and encountered a number of problems:

First the installer comes as far as starting the installation process [...]", which states clearly that I had the live system up and running since I was able to run the installer.

That's why I couldn't really understand why you thought the machine wouldn't even boot and were a little irritated.

@mojo:

That sounds promising, thanks, will try all of this. Do I have to redefine SOURCE_ROOT, or does it already point to /media/source?

Offline

#12 2012-11-23 21:19:50

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Installer CD issue, and installation finishes but doesn't install grub

@mat619

SOURCE_ROOT=/media/source is predefined in /usr/bin/tazinst

tazpanel/Installer is cgi front end for /usr/bin/tazinst

leafpad [c]which tazinst[/c]

Options/Line_Numbers

Line 30 => SOURCE_ROOT=/media/source

The instructions for mounting cdrom are from:

Line 382->385

Documentation for tazinst :

Offline:

Xsession

Applications/Documentation/TazInst Manual

Console

man tazinst

Online:

http://hg.slitaz.org/slitaz-tools/raw-file/bc51645286a4/doc/tazinst.en.html

Offline

#13 2013-04-14 10:40:45

Jan
Member
Registered: 2013-04-14
Posts: 2

Re: Installer CD issue, and installation finishes but doesn't install grub

Hi, same problem: Error 3 Invalid source when trying to install from CD room to HDD.

Tried to find the CD rom drive with (mojo advise):

cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3

hdd

Then with

mount -t iso9660 /dev/hdd/media/source

mount: can't find /dev/hdd/media/source in etc/fstab

Please note this is my first time install! I appreciate a step-by-step approach.

Thanks, Jan

Offline

#14 2013-04-14 12:19:08

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Installer CD issue, and installation finishes but doesn't install grub

Jan,

I can't help you more. Just see one error: you mixed up two paths into one:

[c]mount -t iso9660 /dev/hdd/media/source[/c]
Must be

[c]mount -t iso9660 /dev/hdd /media/source[/c]

Offline

#15 2013-04-20 14:31:40

Jan
Member
Registered: 2013-04-14
Posts: 2

Re: Installer CD issue, and installation finishes but doesn't install grub

Thanks, found the problem.

I have two cdroms, hdd did not work but hdc did work.

Jan

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]