You are not logged in.
Hi,
i'm going to install arch linux on an old Netbook, without much space.
I want to use an external HHD to make space for my file and application, so i'm gonna move /home and all possible folder on the external hard disk.
but sometimes i need to hang around with this netbook, so i want the system to be completely independent from the external hard disk.
basically this is the idea:
1. basic installation of full system on the netbook
2. low level copy of some folder (/home, /var and so on)
3(plan a). a special "fstab" or "/boot" will try to mount filesystem from external HHD, if fail it will load from intenal HHD
3(plan b). a script that will check presence of the HHD, unmont local FS and mount external FS (i like this because with the script and some UDEV rule i can fallback to internal HHD when external HHD is requested to be unmount, so i can unmount external HHD "on the fly")
There is something like this, maybe a plan c?
if something like this doesn't exist, then it has to be done!
Maybe will be possible to swap not only data, but entire OS between different PC with the same base installation and architecture
think at work, on the machines will be installed only the basic OS just to use the PC in case of "emergency" like basic connectivity (browser, text editor), and when needed you can mount your personal HHD with your file AND your program
Last edited by lesto (2012-11-24 16:52:38)
Offline
Why not just link directories from the home directory on your internal drive e.g. a link to a folder Data on the external? Then your basic config files will always be available.
Just not sure why you want to do it in a way which sounds complex and error-prone. (But maybe that's just me.)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Plan C, just create two user accounts - one with a home directory on the external drive, and another "minimal" user account on the internal drive.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
nope, also program (/var, /usr etc..) is different, not only home folder
Why not just link directories from the home directory on your internal drive e.g. a link to a folder Data on the external?
i like this, but i have to merge the contents of the folder...
Offline
So, you want different home directories and different usr directories? What do you want shared, as this makes two very different systems. Would you share var? If so your logs would quickly get all messed up as they would not be logging the system you were actually using as soon as you changed out /home and /usr.
Why not just have independent systems on each drive?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Just for one thing, updates are going to completely screw your system if you do this.
I second Trilby's suggestion: just have independent systems.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Yeah, you know that Arch takes up bery little space as a base install. I think what you actually want are two very minimal systems that share the same home folder... or something. I am still kind of confused, but I think that is what you are after.
Offline
nope, also program (/var, /usr etc..) is different, not only home folder
Ya, you can not do this.... well I mean you 'Could' but it would be all wacky and prone to problems.
The best thing to do would be to add a line to fstab.
/dev/sdb1 /home/user/Data ext4 rw,nosuid,noexec,noatime,errors=remount-ro 0 2
OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec
Offline