LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2004, 03:49 PM   #1
Stevetgn
Member
 
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Rep: Reputation: 30
Is it possiable to install "/home/" to a USB drive?


Is it possiable to install "/home/" to a USB drive? I need to know if this is possiable on Mandrake 10 before I buy a USB HD. My idea is that I can take my "/home/" where ever I go (work, my (real) home etc). Does the USB hardware detection happen before or during installation? Will Mandrake's installer detect it just as another drive and alway me to mount it as home?

Thanks in advance

Steve
 
Old 07-18-2004, 04:39 PM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
USB detection happens on startup when the usbcore driver gets loaded.
 
Old 07-18-2004, 11:09 PM   #3
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
i think if you set your fstab to /home/yourname as the mountpoint, and in your useradd set your home as /home/yourname when you set up the account, you may get away with it, it's worth a try anyway. another option is make a /home2 to mount the usb drive, then use useradd to make the /home2/yourname directory
 
Old 07-19-2004, 04:03 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Mr.,
The /home directory may be installed in any partition you want. You don't need it during the first stages of boot, so it can be mounted when the system enters level 3 (multi-user/network). At this phase you already have usb configured.
 
Old 07-19-2004, 04:52 PM   #5
Stevetgn
Member
 
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Original Poster
Rep: Reputation: 30
errr... bit of a newbie here guys! run level 3 ... mount home then... what, how???

I know run level 3 is something to do with command line only no GUI but how would I mount a USB HD as home then? Plus I don't want to be messing around all the time. I just want my system to automaticaly boot with a USB drive set as home??
 
Old 07-19-2004, 05:15 PM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
When you get your Graphical login you are on run level 5. The system already passed by the run level 3. It is in this level you see the boot establishing the network. From this level it goes to level 5 and starts X, the graphical environment.
The most important notion is in *nix/Linux all you have are directories and files. You don't have c:, d:, etc. Your root partition is mounted in the root (/) directory and all the other are mounted in sub-directories of root. So, /home is a sub-directory of root and may be pointing to an area of the root disk or point to another partition in the same or another disk.
To mount any partition in the /home directory all you need to enter is
Code:
mount /dev/xyz /home
Of course this paritition must be initialized and known to the kernel. "/dev/xyz"in the example must be replaced by the partition you want to mount. You can even mount files as pseudo disks, once you create a file of a needed size and format it. Note, if you have some files in a directory and use it to mount another partition, these files will be hidden while the partition is mounted.
 
Old 07-19-2004, 05:48 PM   #7
Stevetgn
Member
 
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Original Poster
Rep: Reputation: 30
if I mount "/dev/xyz /home" will it stay that way next time I boot & how do I find out what "/dev/" name my USB HD has been given?

Cheers

Steve
 
Old 07-19-2004, 05:58 PM   #8
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
No,
You will specify this mount in the file "/etc/fstab".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"Access denied to /home/violentj/firefox-installer/install.ini" GameGuru Linux - Newbie 6 07-02-2005 09:26 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM
usb drive "protocol device" - why cannot I write to it? lefty.crupps Linux - Hardware 2 04-28-2005 10:32 PM
Tried mounting NTFS drive to /home "suse9.1 Personal Ed." scratch09 Linux - Newbie 5 11-11-2004 03:36 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 06:44 AM


All times are GMT -5. The time now is 04:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration