PDA

View Full Version : [ubuntu] PLEASE HELP! - Need simple mount/copy commands



M4D88
August 11th, 2009, 08:38 AM
Hey Guys,

Ive made a custom live-cd that runs off a USB stick, Using "Reconstructor" ( a simple program that lets you edit the ISO then recompile it again with your own custom settings).

All i need this boot stick to do is...

Copy files from the FAT32 partition of the USB stick (thats already automaticly mounted) to the ext3 partition on the local drive. (not mounted)

I'm in the process of editing the ISO now, and i need to know what commands to add in /etc/init.d/rc.local in order to mount the ext3 drive and copy the files. (if thats what needs to be done)

once this is done i need the machine to shutdown (the PC's I'll be using this USB stick on have no screens/keyboards, just set to boot from USB in BIOS, so its need to be fully automated.

One last thing, the files that are being copyed already exsist in the target folder, so they need to be overwritten.

Can anyone help me please, I've been pulling my hair out on this one. LOL

slakkie
August 11th, 2009, 09:01 AM
I suppose the livecd has a fstab entry somewhere?

M4D88
August 11th, 2009, 09:18 AM
umm yeah I'd say so, Im a bit of a Linux n00b so i dont know all the paths.

Its just a default Ubuntu 8.10 live CD, so i dunno where its located on the filesystem.

pastalavista
August 11th, 2009, 09:40 AM
...never mind

slakkie
August 11th, 2009, 09:47 AM
umm yeah I'd say so, Im a bit of a Linux n00b so i dont know all the paths.

Its just a default Ubuntu 8.10 live CD, so i dunno where its located on the filesystem.

fstab is found in /etc