LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2010, 01:10 PM   #1
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Rep: Reputation: 0
Install programs on second drive


There are no hard drives in this computer, which has an 8 gig drive in the computer (Dell Netbook)and a 16 gig SDHC card. Ubuntu linux is on the 8 gig drive with 2.5 gigs remaining free space and 14 gigs free on the SDHC card. Is there a way of loading, or transferring programs to the SDHC card to keep the free space on the 8 gig drive at a reasonable level?

I've transferred several of my windows programs to the 16 gig card and use them successfully with Wine.
 
Old 09-26-2010, 06:29 PM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Copy the contents of /usr to the SDHC card, remove everything under /usr, then mount the SDHC card to /usr
 
1 members found this post helpful.
Old 09-27-2010, 08:32 AM   #3
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
transferring programs to the SDHC

Many thanks for the reply. One problem: I don't understand what "mount the SDHC card to /usr" means.

Bob
 
Old 09-27-2010, 08:46 AM   #4
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
You said you wanted your programs on the SDHC card. (Where is /home by the way?) When the SDHC card is plugged in, you should have some sort of /dev/sd* entry for it. In your fstab, mount that over /usr.
 
Old 09-27-2010, 09:04 AM   #5
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by Bob Appleby View Post
Many thanks for the reply. One problem: I don't understand what "mount the SDHC card to /usr" means.

Bob
What did do not understands what mount means ?
Or how to make a mount command ?
Linux file can be on several drives .
If you like the system to make use of it you have to mount the file system
Normally it is done /etc/fstab
So you have to edit you're fstab to add the command
 
Old 09-28-2010, 03:28 PM   #6
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
A few months ago I plugged in the 16 gig SDHC card in the slot on the side of the computer and gave it the name "storage". It now shows up as a drive. I can easily copy the contents of /usr on the main drive ("file system") to "storage" and then remove all the contents of /usr from the main drive. At that point how do I get linux to recognize that /usr contents are now on the SDHC card? I looked at the fstab file and it contains:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=9a8d25ae-58c8-42d8-9a00-b85dc3a37690 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=ceb28819-ea89-4136-ac98-68e23208a26b none swap sw 0 0

How should I modify it?

In answer to an above question: /home is on my main drive.

Really appreciate your taking time to answer my questions.

Bob
 
Old 09-28-2010, 07:42 PM   #7
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Ugh, you need a lot of info. Before we go any further though, you should know that those SDHC cards are really slow, putting /usr on it might really hurt your performance. Can you show me the output of:

Code:
$ mount
and
Code:
$ sudo du -sh /*
 
Old 09-29-2010, 06:55 AM   #8
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
This may be a whole new kettle of fish. Slow I don't want, though I do have 4 windows programs on the SDHC card and see no decrease in speed. It might be interesting to put the windows version of Filezilla on the card and compare it with the linux version on the main drive.

Lets leave it this way. If you feel you must spend more than a few minutes solving this problem, lets call it off. The system is working fine and may continue doing so until I decide to go to a new version of linux, at which time it might be well to install it on the SDHC card and see what happens. Another possibility is to add another 8 gig to the computer, though I have been told that could be rather expensive. Many thanks for your time.

Bob

Results from using the code you suggested.

bob@DellVostro:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/bob/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bob)
/dev/mmcblk0p1 on /media/Storage type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)


bob@DellVostro:~$ sudo du -sh /*
[sudo] password for bob:
6.5M /bin
33M /boot
4.0K /cdrom
1.5M /dev
14M /etc
du: cannot access `/home/bob/.gvfs': Permission denied
556M /home
0 /initrd.img
0 /initrd.img.old
226M /lib
16K /lost+found
241M /media
4.0K /mnt
4.0K /opt
du: cannot access `/proc/1848/task/1848/fd/4': No such file or directory
du: cannot access `/proc/1848/task/1848/fdinfo/4': No such file or directory
du: cannot access `/proc/1848/fd/4': No such file or directory
du: cannot access `/proc/1848/fdinfo/4': No such file or directory
0 /proc
236K /root
7.4M /sbin
4.0K /selinux
4.0K /srv
0 /sys
56K /tmp
2.3G /usr
672M /var
0 /vmlinuz
0 /vmlinuz.old
 
Old 09-29-2010, 06:26 PM   #9
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Well, for starters you would need to reformat the SDHC card, it's currently formatted as FAT. I'm pretty sure the root partition has to be ext# (ext4). It's really your read speeds that are going to matter, you could create a large file on the main drive and on Storage and see how long it takes to read it.

If you decide to move forward, you will need to:

1) Backup "Storage"

2) Run mkfs.ext4 on the SDHC (probably giving it a new name in the process)

3) mv /usr to the SDHC

4) Decide whether you'd want to use this SDHC card for anything other than /usr, I'll assume you will

5) Edit /etc/fstab to mount the SDHC to /media/...

6) Edit /etc/fstab to bind mount /media/... to /usr

7) Enjoy

I'll help you with exact details if you want to go forward.
 
1 members found this post helpful.
Old 10-03-2010, 07:03 PM   #10
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
Good evening Meson?,

After careful consideration, especially the fact that my system is working quite well in its current configuration, I have decided to archive your information and continue studying the ubuntu system to gain a better understanding of how it works. I really like linux and have switched everything over from windows except for Netflix. My big project is being webmaster of our historical society and that work is running very well on linux. Many thanks for your help.

Bob
 
Old 10-03-2010, 09:04 PM   #11
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
You have a couple of options to get Netflix on Linux.

1) You can set up a virtual machine with virtualbox. (I know this one will work).

2) You can try using the version if IE in wine. (I don't know about this one).

3) You can try getting the useragent switcher for Firefox and trick Netflix into thinking you have IE (I don't know if this will work).
 
Old 10-04-2010, 07:44 AM   #12
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
Netflix using linux.

Thanks for the additional information. I downloaded a copy of the virtual box manual. Space may be a problem, but that remains to be seen. I was told by a Netflix employee that they are working on the problem. I suspect Netflix has a lot of more important problems to address.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Programs can't run 'df' on drive, but I can? djsmiley2k Linux - Software 2 09-12-2010 08:34 AM
how do I get programs to install from cd drive slad Linux - Newbie 10 03-09-2009 02:31 PM
FC2 install on 2nd drive, no dual-boot, will install modify 1st WinXP drive at all? Equisilus Fedora - Installation 14 06-27-2004 02:38 AM
Installing programs to USB flash drive ibm5_25 Linux - Software 3 06-27-2004 02:07 AM
usb hard drive - cannot launch programs from Nichole_knc Slackware 2 04-18-2004 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration