Ubuntu on bootable thumbdrive


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Ubuntu on bootable thumbdrive
# 1  
Old 08-21-2011
Ubuntu on bootable thumbdrive

I have created a bootable thumbdrive containing Ubuntu 10.04. It works fine, but has one minor issue. When I boot a system, it writes a new fstab relevant to that system. That fstab persists, so that if I boot another system the "old" fstab is read and the O/S tries to mount filesystems that don't exist on the current system. Obviously I can just hit the "S" key at boot to skip that mounting, but I would like a more elegant solution. I think that executing a script to re-write my fstab with just a single line for to mount /proc will be fine. Currently, I do this manually just before shutting down. I have read about startup and shutdown scripts, but the literature that I have read indicates that those scripts are used for starting and stopping services. My questions are therefore:
Is is appropriate to use the shutdown scripts to execute a script for re-writing my fstab?
At what run-level shoud I run that script (runlevel 0?)
Should it be a K script or a S script?

Thanks in advance

Stumpy
# 2  
Old 08-21-2011
Look at PySDM, a PyGTK Storage Device Manager Maybe it is what you need.

But anyway, you can mount partitions by yourself without fstab. You can write scripts (or functions) for every system (or one script with options) - m1, m2, etc. See mount(8) for relevant mount options.
# 3  
Old 08-21-2011
There are a couple of ways of handing this issue. The easiest way if you do not need persistent information on your USB stick, assuming that you have a casper-based setup, is to simply modify syslinux.cfg to remove the persistent directive.
# 4  
Old 08-21-2011
Thanks for the replies, so far.

The problem isn't manually mounting partitions, the problem is the O/S reading the fstab at boot. I need the system to either stop reading the fstab at boot or re-write the fstab (with a single entry for /proc) at shutdown. I need the system to be persistent because I am constantly adding scripts to it. Any other suggestions gratefully received.

Stumpy
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Hardware

Bootable thumbdrive

Hi all! I trying to modify my bootable thumbdrive to be seen in window OS when i plug in. I did a FAT32 partition for it but it seem like! "windows only recognizes the first primary partition on a removable device" My 1st partition is my Ubuntu OS partition ext4, is there a way to go about... (4 Replies)
Discussion started by: GQiang
4 Replies

2. Solaris

unable to use thumbdrive in Solaris 10

hi friends, i had this problem in a Solaris 10 server when i inserted my thumbdrive, i can't find the device file containing usb. what should i do ? (2 Replies)
Discussion started by: Exposure
2 Replies

3. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

4. Ubuntu

rdiff-backup using escape codes on vfat thumbdrive

I thought it may be nice to use rdiff-backup to backup my websites to a thumb drive. But all the capital letters are substituted with octal escape codes. How can I over come this? There are no issues backing up to another ext3 drive. The source drive is ext3 the thumb drive is vfat mounted... (0 Replies)
Discussion started by: mikemc
0 Replies

5. UNIX for Dummies Questions & Answers

Mounting a ThumbDrive

When I try to mount a thumb drive on a Monta Vista Linux 3.1 Embedded System I get an Error. When I plug in the USB Drive I get this message: # hub.c: new USB device CYEZ-Host-1, assigned address 2 scsi0 : SCSI emulation for USB Mass Storage devices Vendor: Memorex Model: Mini TravelDrive... (2 Replies)
Discussion started by: NewLinuxUser33
2 Replies

6. Filesystems, Disks and Memory

Make non-bootable scsi drive, bootable

In our HP/Unix system, our master scsi drive was bootable and our mirrored drive was non-bootable. Are any of these alternatives possible: 1) Make the non-bootable scsi drive bootable? How? 2) Create a bootable scsi drive, then copy the mirrored data to the newly created scsi drive? I seek... (1 Reply)
Discussion started by: bfisk
1 Replies

7. UNIX for Dummies Questions & Answers

Can't detect usb thumbdrive anymore

hey everyone! i have a Solaris 8 box with me, and i had been using my usb thrumbdrive on it all the time. one day, i was in a rush and i pulled out the thumbdrive without ejecting it or anything. and now i can't detect any thumbdrives at all. i had tried using another thumbdrive, but with no... (2 Replies)
Discussion started by: feef
2 Replies
Login or Register to Ask a Question