-
Kernel panic not syncing VFS: Error during booting remastered CD
I have remastered a Live CD by adding some executable and using this script:
#! /bin/sh
# krhowto_4
# Path to partition you will work on
PFAD="/media/sda1"
START=$(date +'%s')
# Disable screensaver
xscreensaver-command -exit
# Build new inital RAM-disk
cd $PFAD/knx/minirt/minirtdir/
find . | cpio -oH newc | gzip -9 > ../minirt.gz
cp $PFAD/knx/minirt/minirt.gz $PFAD/knx/master/boot/isolinux/
# Make the big compressed filesystem KNOPPIX
genisoimage -input-charset ISO-8859-15 -R -l -D -V KNOPPIX_FS -quiet \
-no-split-symlink-components -no-split-symlink-fields \
-hide-rr-moved -cache-inodes $PFAD/knx/source/KNOPPIX \
| /usr/sbin/create_compressed_fs -q -B 65536 -t 8 -L -1 \
-f $PFAD/knx/isotemp - $PFAD/knx/master/KNOPPIX/KNOPPIX
# Update the file hashes used by the "testcd" boot option
cd $PFAD/knx/master ; find -type f -not -name \
sha1sums -not -name boot.cat -not \
-name isolinux.bin -exec sha1sum '{}' \; > KNOPPIX/sha1sums
# Create new Knoppix ISO
genisoimage -l -r -J -V "KNOPPIX" \
-b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \
-boot-info-table -c boot/isolinux/boot.cat \
-o $PFAD/knx/remasterd.iso $PFAD/knx/master
# Enable screensaver
su knoppix -c "xscreensaver -nosplash &"
echo -e "\nFinished! Used time: $(expr $(expr $(date +'%s') - $START) / 60) min. \
and $(expr $(expr $(date +'%s') - $START) % 60) sec. \
\n\nThe new ISO is stored in '$PFAD/knx/remastered.iso' "[/COLOR]
My knoppix version is 6.7.1.
When I run the iso which is 725 mb it boots up, shows logo, and boot.. if i let it continue it shows this:
Decompressing Linux... Parsing ELF.... done
Booting the kernel..
[ 3.171152] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)....
I have tried it many times but get the same result. I am using VMWare 8.0.6 to do all this.
-
Did you get an error message booting your remastered version with cheatcode
knoppix testcd
-
I do not know how to use cheatcode. But I have tried
kvm -m 512 -cdrom $PFAD/knx/remastered.iso
It showed the logo, boot: and then the same messages
Decompressing Linux... Parsing ELF.... done
Booting the kernel..
[ 3.171152] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)....
-
-
If I type knoppix testcd, I get same error
-
I tried all the cheatcodes including 'knoppix debug' This gave me more detailed information that was:
[ 3.317878] VFS: Cannot open root device "(null)" or unknown-block(8,1)
[3.317944] Please append a correct "root=" boot option; here are the available partitions:
[ 3.318010] 0b00 1048575 sr0 driver:sr
[ 3.318076] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
[ 3.318142] Pid: 1. comm: swapper Tainted:G W 3.0.4 #12 etc.
Where do I start checking?
-
I have remastered a Live CD
by adding some executable and using this script
Your remaster by itself is wrong. The sripts of Remaster HowTo I've tested many times.
-
Of course my remaster is wrong. and I have also tested it many times before. But this time it does not work. I have also given the script I have used for remaster. I have used only two major steps for remastering that could affect the final result:
1. ran the following:
#! /bin/sh
# krhowto_1
# Path to partition you will work on
PFAD="/media/sda1"
START=$(date +'%s')
# Disable screensaver
xscreensaver-command -exit
# One sub-directory will be used for the Master-CD
mkdir -p $PFAD/knx/master
cd $PFAD/knx
# You will need a swapfile
dd if=/dev/zero of=swapfile bs=1M count=500
mkswap swapfile ; swapon swapfile
# Make a sub-directory for the source
mkdir -p $PFAD/knx/source/KNOPPIX
echo "Copy the KNOPPIX files to your source directory."
echo "This will take a long time!"
cp -rp /KNOPPIX/* $PFAD/knx/source/KNOPPIX
# Additionally, copy the files to build the ISO later
rsync -aH --exclude="KNOPPIX/KNOPPIX*" /mnt-system/* $PFAD/knx/master
# gunzip inital RAM-disk
mkdir -p $PFAD/knx/minirt/minirtdir
cp $PFAD/knx/master/boot/isolinux/minirt.gz $PFAD/knx/minirt/
cd $PFAD/knx/minirt/
gunzip minirt.gz
cd minirtdir
cpio -imd --no-absolute-filenames < ../minirt
# Enable screensaver
su knoppix -c "xscreensaver -nosplash &"
echo -e "\nFinished! Used time: $(expr $(expr $(date +'%s') - $START) / 60) min. \
and $(expr $(expr $(date +'%s') - $START) % 60) sec."
2. copied my executables
3. Did the following:
Create the autostart parameters as below.
Created a file called myprog.desktop in /media/sda3/knx/source/KNOPPIX/home/knoppix/.config/autostart folder with the following contents:cd us
[Desktop Entry]
Type=Application
Name=myprog
Exec=sudo /usr/loca/bin/myprog.sh &
Terminal=false
X-GENOME-Autostart-enabled=true
B. Create a file in /usr/local/bin/myprog.sh with exec permission with contents:
#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
/bin/myprog
3. Executed Bash remaster.sh which created the .iso
So, where I am going wrong.
-
# Path to partition you will work on
PFAD="/media/sda1"
You have to declare the value of "PFAD" as you need it within all the four scriptparts of the HowTo.
Created a file called myprog.desktop in /media/sda3/knx/source/KNOPPIX/home/knoppix/.config/autostart folder with the following contents:cd us
/sda3 or /sda1? And what about "cd us"?
Create a file in /usr/local/bin/myprog.sh with exec permission with contents:
#!/bin/sh
At this point are you working within the chroot or after leaving it?
But as I can see it, this is not the reason for the unbootable remastered version.
-
Sure I changed all the PFAD to proper sda or sdb as the case may be. I did not use chroot but copied the files in the proper path. As the system anyway booted and came upto boot: , I also think this is not the reason. So, what is the reason? Firstly what is the error? And how do I get rid of it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard picture](/store/img/g/oXIAAOSwCn1k30lD/s-l225/ASRock-B550M-Pro-SE-AM4-DDR4-SATA-6Gb-s-1-PCIe-4-0.jpg)
ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard
$84.99
![Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th) picture](/store/img/g/QrkAAOSwMGNmLxf0/s-l225/Gigabyte-Z370P-D3-ATX-Z370-LGA1151-Motherboard-Sup.jpg)
Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th)
$59.99
![ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield picture](/store/img/g/FhQAAOSwzL9iDqc3/s-l225/ASUS-H110M-R-Motherboard-Intel-6th-7th-Gen-LGA1151.jpg)
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
![Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3 picture](/store/img/g/CZ4AAOSwg8pmYirU/s-l225/Asus-H81M-C-Intel-LGA1150-DDR3-Desktop-Motherboard.jpg)
Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3
$23.99
![Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard picture](/store/img/g/ld0AAOSw7q5mV2ql/s-l225/Asus-Prime-H310M-A-R2-0-Intel-LGA-1151-DDR4-Deskto.jpg)
Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard
$54.99
![MSI H81I LGA1150 MINI-ITX DDR3 Desktop Motherboard With I/O Shield picture](/store/img/g/TGIAAOSwpzNiJ8-i/s-l225/MSI-H81I-LGA1150-MINI-ITX-DDR3-Desktop-Motherboard.jpg)
MSI H81I LGA1150 MINI-ITX DDR3 Desktop Motherboard With I/O Shield
$32.99
![ASRock H170 Pro4S Motherboard ATX Intel H170 LGA1151 DDR4 SATA3 HDMI picture](/store/img/g/guoAAOSwk7lmex9j/s-l225/ASRock-H170-Pro4S-Motherboard-ATX-Intel-H170-LGA11.jpg)
ASRock H170 Pro4S Motherboard ATX Intel H170 LGA1151 DDR4 SATA3 HDMI
$39.99
![MSI H110M pro-vd 6th/7th Gen Intel DDR4 MATX Motherboard NO I/O SHIELD picture](/store/img/g/jNYAAOSwCJdmeF7y/s-l225/MSI-H110M-pro-vd-6th-7th-Gen-Intel-DDR4-MATX-Mothe.jpg)
MSI H110M pro-vd 6th/7th Gen Intel DDR4 MATX Motherboard NO I/O SHIELD
$35.00
![Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM picture](/store/img/g/CCsAAOSw9mtkQuoe/s-l225/Gigabyte-M-ATX-motherboard-with-Intel-Core-i3-8100.jpg)
Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM
$84.00
![ASUS PRIME Z690-P WIFI D4 ATX Motherboard Intel LGA1700 DDR4 HDMI picture](/store/img/g/gR8AAOSwhlJkracH/s-l225/ASUS-PRIME-Z690-P-WIFI-D4-ATX-Motherboard-Intel-LG.jpg)
ASUS PRIME Z690-P WIFI D4 ATX Motherboard Intel LGA1700 DDR4 HDMI
$99.99