LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-12-2009, 02:55 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 637
Blog Entries: 1

Rep: Reputation: 48
How practical it is to put an OS on a portable hard drive ?


hi people. I just installed CentOS 5.3 on a 3.5 inch portable hard drive.
I am able to boot from that and composing this email to you.

My question is : If I use this portable OS a lot like on daily basis, would that hurt the USB port ? Will too much heat generated or some sort.

I kind of like the idea of carrying the hard drive rather than my computer to office everyday..

Thanks for sharing your thoughts..
 
Old 06-12-2009, 03:15 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Why would it hurt the port??
 
Old 06-12-2009, 03:16 PM   #3
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
I don't see why that would be a problem. Can't be that much different than using the USB drive for data transfer. That's what the port was designed for.

Cheers
 
Old 06-12-2009, 03:33 PM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 637

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Thanks for the comments.

So it is okay to use a portable hard drive like an internal hard drive.
But I expect the speed should suffer a little bit, after all, the transfer is through a USB cable.

My this little adventure tells me that

Quote:
[ckgan@centos53-64-fuj ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 162295988 5493508 148558328 4% /
tmpfs 1540760 0 1540760 0% /dev/shm
where /dev/sda1 is my portable hard drive.

Is there a way to mount the internal hard drive ? I would like to
some data out.
 
Old 06-12-2009, 03:40 PM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by centguy View Post
If I use this portable OS a lot like on daily basis, would that hurt the USB port?
Not unless you have poorly made hardware.

Quote:
Originally Posted by centguy View Post
I kind of like the idea of carrying the hard drive rather than my computer to office everyday...
Just be careful how you carry the hard drive. You are far more likely to damage the hard drive my moving it frequently than you are to overheat the USB interface.

If the hard drive is not ruggedized for travel, you may lose all your data if it is dropped at the wrong time, from the wrong height, at the wrong angle.

When they are turned off, modern hard drives do a very good job of keeping the arm away from the platters. However, enough acceleration can destroy just about anything.
 
Old 06-12-2009, 03:40 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah, just mount it directly.... "mount /dev/sdb1 /mnt/internal_drive" for example. if you don't know what the drive is called, run fdisk -l
 
Old 06-12-2009, 03:41 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by centguy View Post
Is there a way to mount the internal hard drive ? I would like to some data out.
Of course. What does "fdisk -l" show?
 
Old 06-12-2009, 09:53 PM   #8
centguy
Member
 
Registered: Feb 2008
Posts: 637

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Thanks for the reply. I know exactly what to do now (mount command is the key command following fisk -l).
(got a bit rusty since it was a long time since I last played with installation).


I have one more question:
Suppose I have two portable hard disks connected to the
computer. What is mechanism to determine which is sda (may be the internal hard drive), sdb for the first portable hard drive(but WHICH ONE, does it sorted according to the USB port ?), and
sdc is the second hard drive. Will it ever cause a problem in the Linux community ?

I could imagine I have two portable OS on two different external hard drive.


My relevant entry in to boot this portable CentOS 5.3 according to (to avoid confusion, I point out that the running OS in on the portable hard drive and is labeled as /sda1)

/sdb4/boot/menu.lst is

Quote:
title CentOS 5.3 @ sdb4
root (hd1,0)
kernel /boot/vmlinuz-2.6.18-128.el5 ro root=LABEL=/ rhgb quiet noapic
initrd /boot/initrd-2.6.18-128.el5.img
Note that hd1 is used with the internal hard drive as a reference point when I first boot up from the internal hard drive (hd0 is the internal hard drive when I first boot from the internal hard drive). You can see that I have not installed GRUB when I installed
CentOS 5.3 on the portable hard drive.


For complete reference, I give the outcome :

Quote:
[root@centos53-64-fuj ~]# fdisk -l

Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25974 208636123+ 83 Linux
/dev/sda2 25975 26356 3068415 82 Linux swap / Solaris

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 6397 51383871 7 HPFS/NTFS
/dev/sdb2 6398 6789 3148740 82 Linux swap / Solaris
/dev/sdb3 6790 12011 41945715 5 Extended
/dev/sdb4 12012 14593 20739915 83 Linux
/dev/sdb5 6790 8892 16892316 83 Linux
/dev/sdb6 8893 11438 20450713+ 83 Linux
/dev/sdb7 11439 11483 361431 83 Linux
/dev/sdb8 * 11484 11506 184716 83 Linux
/dev/sdb9 11507 12011 4056381 83 Linux
 
Old 06-14-2009, 05:13 AM   #9
centguy
Member
 
Registered: Feb 2008
Posts: 637

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I guess sda, sdab, sdc, ... ordering might have to do with the sequence of the detection of the USB ports and right now I shall assume that the sequence on a particular computer is fixed. So there should not be any confusion.
 
Old 06-15-2009, 10:35 AM   #10
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by centguy View Post
Suppose I have two portable hard disks connected to the computer. What is mechanism to determine which is sda (may be the internal hard drive), sdb for the first portable hard drive(but WHICH ONE, does it sorted according to the USB port ?), and sdc is the second hard drive.
You want to use the UUID when mounting. Using the UUID allows you to get around the problem of the disk names changing depending on how they are connected.

You can use the "blkid" command to get a list of UUID's. A typical line in fstab using a UUID to mount would look like
Code:
UUID=fd6f4519-38ea-471e-a650-f413c328d24e /mnt/storage  ext3  defaults  0 0
 
Old 06-15-2009, 12:29 PM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
You want to use the UUID when mounting.
That's one way.

You can also use a udev (which is a very useful thing to know about) rule.
See Writing udev rules for a tuorial and some good examples.
 
  


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
need a portable linux distro to bring on portable usb hard drive... pippo17 Linux - Distributions 3 10-20-2008 07:41 AM
Linux on a portable hard drive Kratman Linux - Newbie 1 01-07-2008 03:28 AM
A portable hard drive help request papatrpt89 Linux - Newbie 1 12-25-2005 09:28 AM
Portable hard drive linux papatrpt89 Linux - Hardware 1 12-13-2005 12:34 PM
Portable hard drive siawash Linux - Hardware 4 11-14-2004 06:15 PM

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

All times are GMT -5. The time now is 08:05 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