sysresccd-usbstick and USB HDD

All other questions
Post Reply
hecaka
Posts: 4
Joined: 15 Jun 2010, 04:24

sysresccd-usbstick and USB HDD

Post by hecaka » 15 Jun 2010, 04:42

Hello,

I would like to install SystemRescueCd 1.5.5 on a USB hard disk (320GB), so I can boot my PC from this device instead of using the CD.
I tried to use sysresccd-usbstick to do it, but I get the following error:

%sysresccd-usbstick dialog
No valid USB-stick has been detected

The USB HDD is recognized by SystemRescueCd, as dmesg shows it as /dev/sdb when I plug it, and also I have been able to mount it (as vfat)

Is it not possible to sysresccd-usbstick in this case? Is there any alternative?
I took a look at "Easy install SystemRescueCd on harddisk" but I think it assumes the HDD has already other OS previously installed (the USB HDD is empty) .


Thank you,
Hector

Luc
Posts: 17
Joined: 25 May 2010, 21:52

Re: sysresccd-usbstick and USB HDD

Post by Luc » 15 Jun 2010, 05:15

Is that hard disk partitioned? Sorry if it's a stupid question, but I do notice that you don't mention any partitions. Did you try to instal SRCD on /dev/sdb1, or what?

hecaka
Posts: 4
Joined: 15 Jun 2010, 04:24

Re: sysresccd-usbstick and USB HDD

Post by hecaka » 15 Jun 2010, 12:46

Yes, the USB HDD has one FAT32 partition. According to the manual (Chapter 10: How to install SystemRescueCd on an USB-stick) it should be automatically detected, but it doesn't happen.

gernot
Posts: 1131
Joined: 07 Apr 2010, 16:19

Re: sysresccd-usbstick and USB HDD

Post by gernot » 15 Jun 2010, 14:39

If your harddisc has a FAT-32 partition you can do some steps manual:

# assumed this Partition ist sdb1
# use an partitionmanager like fdisk or gparted to set "boot" avtive

#write an syslinux MBR
ms-sys -s /dev/sdb

#copy files
sysresccd-usbstick copyfiles /dev/sdb1

#make it bootable

sysresccd-usbstick syslinux /dev/sdb1

hecaka
Posts: 4
Joined: 15 Jun 2010, 04:24

Re: sysresccd-usbstick and USB HDD

Post by hecaka » 18 Jun 2010, 02:00

Hi Gernot,
Thank you for your help. I am trying to proceed according to the steps you gave:

1) use fdisk to set "boot" active -> this is OK
fdisk information for my drive is:
device boot start end blocks Id System
/dev/sdb1 * 1 122504 312568924+ b W95 FAT32

2) write an syslinux MBR
ms-sys -s /dev/sdb -> this is OK

3) copy files
sysresccd-usbstick copyfiles /dev/sdb1 -> this fails

I get the following error:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error

and dmesg shows the following error:
FAT: bogus number of reserved sectors
VFS: can't find a valid FAT filesystem on dev sdb1

Would changing the partition type (to ext2) would help?

Thank you,
Hector

gernot
Posts: 1131
Joined: 07 Apr 2010, 16:19

Re: sysresccd-usbstick and USB HDD

Post by gernot » 18 Jun 2010, 07:41

Looks like there is not a FAT32 system on the harddisk.

try "mount /dev/sdb1 /mnt/custom"
if that gives no error type "mount" to check what filesysten is on the disk.
Now "umount /mnt/custom"

you can format the drive with "mkdosfs -F32 /dev/sdb1"
Be carefuel not to delete your other data.
Now do the syslinux part again.

Gernot

hecaka
Posts: 4
Joined: 15 Jun 2010, 04:24

Re: sysresccd-usbstick and USB HDD

Post by hecaka » 22 Jun 2010, 01:51

Hi Gernot,
Thank you! It worked. I'm now able to boot SystemRescueCD from the USB HDD.
What I would like to do next is to customize the system (add some scripts, etc).
I think that if I do any modification now (for example add some files to the home directory)
it is only stored in RAM and everything will be gone after a reboot. Is there any way
I can permanently add files?
Thanks

gernot
Posts: 1131
Joined: 07 Apr 2010, 16:19

Re: sysresccd-usbstick and USB HDD

Post by gernot » 22 Jun 2010, 17:44

You can use sysresccd-custom to modify sysrcd.dat,

You can also use sysresccd-backstore to make a backstorefile.
In this file is a filesystem which holds all changes of files for the next reboot.
If the filename ist sysrcd.bs in a Rootdirectory this file is automatic mounted.

Gernot

Post Reply