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 :
Mounting /usr/local in a /dev/sdb partition Show Mounting /usr/local in a /dev/sdb partition Issue Solution Note Issue 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, formatted in ext3...
Mounting /usr/local in a /dev/sdb partition Show Mounting /usr/local in a /dev/sdb partition Issue Solution Note Issue 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, formatted in ext3...
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...
How to mount an ISO image on Linux? ShowHow 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). ShowMounting 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
Access to an FTP server as if it were a local directory ShowAccess to an FTP server as if it were a local directory Install Curlftpfs : sudo aptitude install curlftpfs Create the directory for FTP server: mkdir mountpoint Add authorized users to use the software(fuse group): sudo...
Download Easy File Locker ShowTo keep your privacy and secure up your data on your machine, the best way is to hide them altogether. Easy File Locker is primarily a tool to block access, modification, reading, deleting, moving or copying your files or folders. But to make...
Local area networks - Interconnection systems ShowThe need for interconnections A local area network is used to connect an organisation's computers to one another; nevertheless, a single organisation often includes several local area networks, so it is sometimes necessary to link the networks...
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...
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...

1

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

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