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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-12-2009, 02:55 PM
|
#1
|
Member
Registered: Feb 2008
Posts: 637
Rep:
|
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..
|
|
|
06-12-2009, 03:15 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Why would it hurt the port??
|
|
|
06-12-2009, 03:16 PM
|
#3
|
Registered User
Registered: Dec 2006
Posts: 1,454
Rep:
|
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
|
|
|
06-12-2009, 03:33 PM
|
#4
|
Member
Registered: Feb 2008
Posts: 637
Original Poster
Rep:
|
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.
|
|
|
06-12-2009, 03:40 PM
|
#5
|
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
Rep:
|
Quote:
Originally Posted by centguy
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
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.
|
|
|
06-12-2009, 03:40 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
06-12-2009, 03:41 PM
|
#7
|
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
Rep:
|
Quote:
Originally Posted by centguy
Is there a way to mount the internal hard drive ? I would like to some data out.
|
Of course. What does "fdisk -l" show?
|
|
|
06-12-2009, 09:53 PM
|
#8
|
Member
Registered: Feb 2008
Posts: 637
Original Poster
Rep:
|
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
|
|
|
|
06-14-2009, 05:13 AM
|
#9
|
Member
Registered: Feb 2008
Posts: 637
Original Poster
Rep:
|
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.
|
|
|
06-15-2009, 10:35 AM
|
#10
|
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
Rep:
|
Quote:
Originally Posted by centguy
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
|
|
|
06-15-2009, 12:29 PM
|
#11
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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.
|
|
|
All times are GMT -5. The time now is 08:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|