Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Full system backup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
YoMo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2006
Posts: 112
Location: London, UK

PostPosted: Sun Jun 29, 2008 9:56 am    Post subject: Full system backup Reply with quote

Here is my current disk partitions:

Code:

/dev/hda1
/dev/hda2
/dev/hda3
/dev/hda4 - ext3 (root)
/dev/hda5 - ext2 (boot)
/dev/hda6 - swap


What I need is to backup hda4 and hda5 because I need to reinstall there gentoo 2008.0 and I would like to keep accessible my old system. So, what I did is to take an external USB drive and partition it in this way (like the gentoo handbook says):

Code:

/dev/sda1 - ext2 (boot)
/dev/sda2 - swap
/dev/sda3 - ext3 (root)


Then, from a livecd I copied hda4 into sda3 and hda5 into sda1. I added a new entry in grub.conf:

Code:

title=Gentoo Linux 2.6.22-r9
root (hd0,4)
kernel /boot/bzImage-2.6.22-gentoo-r9 root=/dev/hda4 vga=836 video=vesafb:ywrap,mtrr splash=verbose,theme:emergence quiet CONSOLE=/dev/tty1
initrd /boot/fbsplash-emergence-1400x1050

title=Gentoo Linux 2.6.22-r9 (external drive)
root (hd1,0)
kernel (hd1,0)/bzImage-2.6.22-gentoo-r9 root=/dev/sda3 vga=836 video=vesafb:ywrap,mtrr splash=verbose,theme:emergence quiet CONSOLE=/dev/tty1
initrd (hd1,0)/fbsplash-emergence-1400x1050


Obviously I changed the fstab on /dev/sda3. So, grub takes his config from /dev/hda5 but then boot a kernel residing in /dev/sda1.
Now, I know I did a brutal buckup :P so someone can help me to understand why I am getting this error when I boot the external drive grub entry?

Code:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


I am sure the kernel has the support to rw my ext drive, I mount/umount it all the time.

thanks
_________________
Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. (Andrew S. Tanenbaum)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Sun Jun 29, 2008 10:07 am    Post subject: Reply with quote

YoMo,

Mount/Unmount support is not enough to be able to boot from USB.
You need all the USB and SCSI modules built into the kernel, so it can read USB without loading any modules, which will be on the USB drive it needs to load them from.

You also need the kernel paramter rootdelay=<secs> where <secs> is between 10 and 30.
Normally, the kernel mounts root before it starts USB. This is a bad thing if root is on USB.
rootdelay tells the kernel to hold off mounting root and allows USB to get started.

If you have a Gentoo install today, you do not need the 2008.0 release. After
Code:
emerge --sync
emerge world -uDNav
etc-update
revdep-rebuild
you have todays Gentoo.

Gentoo does not have releases like binary distros, the 2008.0 refers only to the stage files and installer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
YoMo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2006
Posts: 112
Location: London, UK

PostPosted: Sun Jun 29, 2008 10:48 am    Post subject: Reply with quote

Thank you man for the fast reply ;)

NeddySeagoon wrote:
YoMo,

Mount/Unmount support is not enough to be able to boot from USB.
You need all the USB and SCSI modules built into the kernel, so it can read USB without loading any modules, which will be on the USB drive it needs to load them from.



So, in particular, which modules you think I need? When you say all you mean ALL the section Device Drivers->USB support/SCSI device support ? Or you can advise me some entry that for sure I need?

NeddySeagoon wrote:

If you have a Gentoo install today, you do not need the 2008.0 release. After
Code:
emerge --sync
emerge world -uDNav
etc-update
revdep-rebuild
you have todays Gentoo.

Gentoo does not have releases like binary distros, the 2008.0 refers only to the stage files and installer.


Yes I know that part, but I want to do it anyway to clean up my system and also to personally teach to a friend :)
_________________
Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. (Andrew S. Tanenbaum)
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Sun Jun 29, 2008 11:35 am    Post subject: Reply with quote

you need to statically include options in:

Device Drivers -> USB Support

You need to include the driver for your USB chipset on the motherboard. I ususally include all the HCD items and also the USB Mass Storage Support option.

And back in this section:

Device Drivers -> SCSI Device Support

activate SCSI disk support and SCSI generic support.

Once you do this your kernel will be able to use the usb interface while its booting. Currently having these options as modules stops this from happening.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum