LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 10.2 CD won't mount?! (https://www.linuxquestions.org/questions/slackware-14/slackware-10-2-cd-wont-mount-529095/)

Entheos 02-14-2007 04:10 PM

Slackware 10.2 CD won't mount?!
 
Hey guys,

After I input this into my boot CD
Code:

Sata.i root=/dev/sda2
After that I log into root I input this
Code:

mount /dev/hda
I can't seem to mount my cd ??? Im trying to copy the whole kernel of the 10.2 to recover some important files but it seems I can't mount my cd :( . Also my cdrom is
Code:

/dev/hda
Basically meaning I can't do this
Code:

cp /dev/hda/kernels/sata.i/config /usr/src/linux/.config
what should I do? I know what you guys are going to say edit the lilo files but for some strange reason I can't get into lilo, it keeps crashing 0.0

bathory 02-14-2007 04:47 PM

Perhaps it's already mounted. Else use the whole command to be sure:
Code:

mount -t iso9660 /dev/hda /mnt/cdrom
assuming that the directory /mnt/cdrom exists. If you don't succeed run "dmesg" and look for any errors.

Regards

Entheos 02-14-2007 05:18 PM

I did what you said Bathory and got /mnt/cdrom doesn't exist

did "dmesg" had some errors :(

sdb : Read capacity failed
sdb : I/O error : dev 08:10, sector 0
unable to read partition table

Dawm Kernel if only I could write in it but it keeps on failing :( Imma loose my valuable files :....-(

gbonvehi 02-14-2007 08:11 PM

Mmm one thing i don't get, your partition seems to be at sda, your cd-rom at hda, and in your log messages you get a complain about sdb?

Perhaps you could try booting using the CD's system (instead of setting root to the harddisk), and mount the partition from there to see what you get.

Entheos 02-14-2007 10:28 PM

Quote:

Originally Posted by gbonvehi
Mmm one thing i don't get, your partition seems to be at sda, your cd-rom at hda, and in your log messages you get a complain about sdb?

Perhaps you could try booting using the CD's system (instead of setting root to the harddisk), and mount the partition from there to see what you get.

So how do I tell linux to copy the kernel from the cd to the the partition? becuase now I am doing the opposite of the commands:scratch: or do I just go ahead to the same cp /mnt/cdrom/....etc etc

gbonvehi 02-15-2007 03:30 PM

I don't remember if it's on CD 1 or 2. If it's on CD 2, just boot with 1 and then replace the CD on the tray.
After that, if /mnt/cdrom doesn't exist, create it with:
Code:

mkdir /mnt/cdrom
Create a mount point for your disk too:
Code:

mkdir /mnt/hdd
Then:
Code:

mount /dev/hda /mnt/cdrom
mount /dev/sda1 /mnt/hdd
cp /mnt/cdrom/slackware/kernels/sata.i/config /mnt/hdd/usr/src/linux

You can also chroot into your system instead of setting root when booting with root=/dev/sda2. To do that, after you've mounted your root partition do:
Code:

chroot /mnt/hdd
I haven't tested this since I can't find my 10.2 cds, but they should work.

Entheos 02-17-2007 06:28 AM

Sorry for not responding I just recently been sick :( where were we ;

gbonvehi I did what you said but I got this trying to mount /dev/hda
Code:

block device /dev/hda is write-protected mounting read-only
Thus leading to this
Code:

cp /mnt/cdrom/slackware/kernel/sata.i/config: No such file or directory
what should we do :confused:

Nylex 02-17-2007 07:51 AM

CDs are always mounted read-only, so that's not a problem. Are you sure you're using the correct path to the file?

gbonvehi 02-17-2007 08:02 AM

Mmm I don't have the CDs right here, but I think kernels/ directory is not inside slackware/. Try browsing the directories until you find the config file. Basic *nix commands cd and ls should be enoguh.
cd - Get's into a directory, like cd /mnt/cdrom. cd .. (two dots) goes back one level.
ls - list files, i guess you understand it :)
With shift+pgup you'll be able to scroll the console if you need it.

Entheos 02-17-2007 03:12 PM

thanks guys for your help but to no avail has the kernel went back to its original form :(

Nylex 02-18-2007 01:54 AM

What do you mean?

Entheos 02-18-2007 08:24 AM

Quote:

Originally Posted by Nylex
What do you mean?

Well for starters I was trying to emulate
Chapter 19 : Slackware Basics ; Building A Kernel

but I can't go in and do Make menuconfig,bzImagemodules,modules_install,etc...
Code:

No such file or directory
and even if I wanted to I still have to go in and edit lilo but for some strange reason it keeps on crashing on me every time I go in and try to edit it with anything, now thinking about it, I wonder if all this crashing would be the result of installing lilo in the MBR?


All times are GMT -5. The time now is 05:49 AM.