Search : in
By :

Mounting /usr/local in a /dev/sdb partiti

Last answer on Aug 6, 2009 5:37:09 pm BST manolo, on Jun 22, 2009 9:09:54 pm BST 
 Report this message to moderators

Hello,
I have an Eee ASUS which comes with two ssd disks
I have installed Ubuntu 9.04 in the small one (8 Gb) but I keep the big one (30 Gb) empty, formated in ext3 under /dev/sdb.
Could it be possible to dedicate this device to the /usr/local?
Is it possible or feasible to split the filesystem between two different physical disks and runing smoothly (eg one with the /,/etc/, /bin, /sbin .. and the other with the /home, /usr, /lib ...) ?
Thanks

Configuration: Linux
Firefox 3.0.11

Best answers for « Mounting /usr/local in a /dev/sdb partiti » in :
How to mount an ISO image on Linux? Show How to mount an ISO image on Linux? With Linux you can easily mount an ISO image as any storage device. To mount an ISO image, it sufit the device mounted as local loop (loopback), provided they have this option compiled into the...
Mounting a partition Windows (VFAT/FAT32). Show Mounting a partition Windows (VFAT/FAT32) The following command enables you to mount a VFAT partition (file system in Windows 95): mount-t vfat / dev/hda1 / mnt/win95
Mounting a partition FAT-16(MS-DOS) Show Mounting a partition FAT-16(MS-DOS) To mount a partition as from FAT 16, you just have to type the following: mount -t msdos /dev/hda1 /mnt/hdd The file system ms-dos (FAT-16) must be installed in the Kernel in filesystems...
[MacOSX] Mounting NFS resources Show[MacOSX] Mounting NFS resources Once you succeeded to export your NFS resources Learn more:Exporting NFS resources for Mac clients Opening each time a shell to mount a resource can quickly become tiresome. As the niload command,...
Lock the Windows XP session :go instantly to login screen ShowLock the Windows XP session :go instantly to login screen Under Windows XP, it is possible to quickly lock the current session by pressing the keys simultaneously on Windows + L! This will bring you back to your login screen (better have...
The Fn key is locked ShowThe Fn key is locked If you're writing numbers instead of letters when you press the keyboard of your laptop and you must hold down the Function key (Fn) to write normally. This is due to the fact that the digital lock is activated. To...
Download Locked Files Wizard (ex CopyLock) ShowA program, a folder or a fil used by a process can't be moved or erased. Locked Files Wizard (LFW) is a wizard allowing to move, delete or rename a file or a folder, even if it's used by a process. This program also allows to stop running process...
Download LocalCooling ShowLocalCooling is a tool of automatic management for the optimization of your energy consumption. Program introduces you directly details on your consumption on your PC. According to your shape, LocalCooling will put out your screen or your hard disk...
Creating a local area network ShowWhy set up a local area network? When you have several computers, it can be convenient to connect them to each other to create a local area network (LAN). Setting up such a network costs very little, contrary to what people may think. Here are a...
Local area networks ShowWhat is a local area network? A local area network (LAN) is a network used for connecting a business or organisation's computers to one another. With a LAN, a concept that goes back to 1970, a company's employees can: Exchange...
ADSL - Local loop unbundling ShowIntroduction to local loop unbundling The part of the telephone line arriving at the subscriber is called the "local loop". In order to use high speed internet (ADSL), Internet Service Providers (ISP) must install connection hardware to their...

1

Tom6, on Aug 6, 2009 5:01:47 pm BST

Yes but it's easier to set this up at install to save having to mess around in the scary /etc/fstab.

Fstab can make things go badly wrong very easily if you don't know exactly what you are doing. I would advise having an Ubuntu (or any other linux distro's) Cd easily at hand ready to boot up into a LiveCd session via the "Try Ubuntu without making changes to this machine" option. If you don't want to try a sneaky reinstall the i would recommend backing up fstab as follows. On a command line

Applications - Accessories - Terminal

type in

cd /etc
ls fstab
ls fstab.*
sudo cp fstab fstab.060809
ls fstab
ls fstab.*

Note the "ls" is a lower-case "LS" and the "sudo" command will ask you for your normal user password, not your SuperUser/Root one. While "ls" shows a list of what's in the folder there's quite a lot in /etc so i think it's better just to look for specifically what we want to see. You may notice that the first time you do "ls fstab.*" it shows nothing but the 2nd time it shows the new file you've just created with the CoPy command. Some background notes on my suggestions ...
https://help.ubuntu.com/community/RootSudo
https://help.ubuntu.com/community/UsingTheTerminal

Also a link to a specifically Ubuntu help forum and Ubuntu documentation
https://help.ubuntu.com/community/Signpost/Questions#help

Good luck and regards from
Tom :)

Reply to Tom6

2

 Tom6, on Aug 6, 2009 5:37:09 pm BST

Hi again :)

To maximise performance of your system and to make it very robust i would recommend keeping things as simple as possible. I would recommend partitioning your drives like this, assuming that the smaller 8Gb drive is recognised as sda and that the larger 30Gb one is sdb

sda1 8Gb Primary Partition of file-system = ext3 to be set to "Mount Point" = /

sdb1 20Gb Primary Partition of file-system = ext3 to be set to "Mount Point" = /home
sdb2 5Gb Primary Partition of 'file-system' = linux-swap, this doesn't need a "Mount Point"
sdb3 5Gb(ish) Primary Partition of file-system = ext3 also with no "Mount Point"

Note that sdb3 is for having fun installing other versions of linux and generally experimenting with - safely away from your main install. The linux-swap on sdb2 needs to be at least equal to your ram size but a little more is wise, more than twice your ram size is excessive & wasteful unless you plan to upgrade ram anytime soon. If it needs to be larger than 5Gb then take that from sdb3 rather than sdb1. Plenty of versions of linux fit into even 1Gb or less but having 5Gb means you can test out ideas for a bigger distro such as Ubuntu.
https://help.ubuntu.com/community/SwapFaq
The /home is where all your data&settings are kept so having it on a separate partition from the OS means you can reinstall your OS, or even a completely different one without damaging you data. While there can sometimes be small performance increases by splitting other folders off to different drives i really don't think that's relevant to ssd drives as they don't have a read/write head bouncing around between different folders. There's some theoretical potential for a tiny improvement by getting a very expensive tiny fast normal sata drive but i really wouldn't recommend making things that complex without a lot more linux experience.

The "Mount Points" get defined either in the installer or in fstab and such, easiest to do this in the installer but i do have a trick for doing this without necessarily losing all your data and programs in the process.

Please let us know whether you want my neat trick or would prefer links to dealing with the scary fstab. I could give both if you want to compare. Also please let us know what your ram size is in case there's a surprise that requires a re-think about the layout.

Good luck and regards from
Tom :)

Reply to Tom6