l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social Gathering
Next Installfest:
Sat. Sept. 27, 10am-6pm
Latest News:
Aug. 30: September Installfest scheduled
Page last updated:
2004 Jan 05 13:40
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] install with /usr on external HD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] install with /usr on external HD



I'd like to share how I've recently installed Linux on a laptop with /usr, /opt, and /home mounted on an external Firewire drive. This was necessary because of the extremely limited space on the dual boot internal drive of the laptop.

The distribution is Gentoo, but I'm sure the concepts will work with most distributions. During the install you must have the external drive attached and visible. Firewire drives show as scsi devices (e.g. /dev/sda). I installed /, swap, and /boot as separate partitions on the internal drive (hda), and /usr, /opt, and /home as separate partitions on the external drive (sda). I put them all as standard entries in /etc/fstab.

I made sure that all the firewire support I needed was compiled in the kernel, or as modules. The key step is bringing up the firewire drive early in the boot sequence. With Gentoo, you can have arbitrary kernel modules loaded early in the boot sequence, which I did with ieee1394, ohci1394, and spb2. Then I had the script "rescan-scsi-bus.sh" (http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh) run from within the /etc/init.d/checkfs and /etc/init.d/localmount scripts. This scans and detects the firewire drive before fsck or mounting is attempted. rescan-scsi-bus.sh needs the executables seq, tail, and pr. I moved these from /usr/bin to /bin since /usr/bin isn't initially available. Once the firewire drive is detected, the partitions can be fscked and mounted as normal!

I tried to create a separte /etc/init.d script to scan for the firewire drive, but I was unable to make it run early enough (i.e. before checkfs and localmount). Anyway, hacking checkfs and localmount works just fine.

Maybe this helps someone. I remember seeing interest about doing something like this in the past.

Regards,
Jonathan

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

CD Burns Wanted!

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Z-World
Who has helped LUGOD immensely!