LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-18-2011, 10:56 PM   #1
sonnystarks
LQ Newbie
 
Registered: Jul 2009
Posts: 24

Rep: Reputation: 0
Which hdd is which?


I am taking a course to truly learn Linux and am attempting to install Slackware 13.X to a separate USB hard drive. The intent is to keep Windows while learning Linux, and all I have to do is insert the USB drive when needed. I am using cfdisk and have no difficulty getting to the point where it wants me to partition the hhd. However, whether I have the USB connected or not, it will always present the HDA for partitioning. How do I tell cfdisk to recognize and set partitions on the USB hard drive? (i.e.) What is the command? I am an absolute beginner so let's begin at the beginning please...
 
Old 06-18-2011, 11:01 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
try running 'fdisk -l' it should list the partitions on ALL the drives recognized by linux
 
0 members found this post helpful.
Old 06-18-2011, 11:04 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Simply follow the "cfdisk" command with the device you wish to make changes on. An external drive is probably going to come up as sdb (though there can be a lot of variables in this sort of thing), so the command would look like:

Code:
cfdisk /dev/sdb
If you need help identifying which drives are which, you can check the output of "dmesg" for occurrences of "sd" or "hd", which will be entries pertaining to disk drives. For instance on my machine, the output of "dmesg | grep hd" looks like this:

Code:
hda: Ridata CF, CFA DISK drive
hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/100 mode selected
hda: max request size: 128KiB
hda: 15662304 sectors (8019 MB) w/1KiB Cache, CHS=15538/16/63
 hda: hda1
From this output, we can see that the device "hda" is an 8GB Ridata CF card. Using this information, it should be easy enough to figure out which physical device links to specific device nodes.

Last edited by MS3FGX; 06-18-2011 at 11:33 PM.
 
1 members found this post helpful.
Old 06-18-2011, 11:24 PM   #4
sonnystarks
LQ Newbie
 
Registered: Jul 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
From this output, we can see that the device "hda" is an 8GB Ridata CF card. Using this information, it should be easy enough to figure out which physical device links to specific device nodes.
Though your reply was very helpful, I ask, "in the output of "dmesg | grep hd" looks like this:" is the straight line a "pipe" or a "1?"

Also contributing to the confusion is that both my internal hdd and the USB hdd are 500gb in size. Hence looking at the numbers will not help and no brand name (as in "Ridata") is mentioned or noted in the choice. But, the most confusing part is that the screen dialog did not change whether the USB was actually attached or not (the choice did not increase when the USB was plugged into the computer.). I would like to post the actual screen dialog but during installation, obviously, no form of cutting or pasting is possible? It involves writing the entire dialog by hand unless you know of a better way.
 
Old 06-19-2011, 08:32 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by sonnystarks View Post
Though your reply was very helpful, I ask, "in the output of "dmesg | grep hd" looks like this:" is the straight line a "pipe" or a "1?"
It's a pipe. Unlike the 1, it's not bent on top.
 
1 members found this post helpful.
Old 06-19-2011, 09:11 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Are you running:
Code:
cfdisk
or:
Code:
cfdisk /dev/sdb
or have you tried both?
 
1 members found this post helpful.
Old 06-19-2011, 09:31 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by sonnystarks View Post
I am taking a course to truly learn Linux and am attempting to install Slackware 13.X to a separate USB hard drive. The intent is to keep Windows while learning Linux, and all I have to do is insert the USB drive when needed. I am using cfdisk and have no difficulty getting to the point where it wants me to partition the hhd. However, whether I have the USB connected or not, it will always present the HDA for partitioning. How do I tell cfdisk to recognize and set partitions on the USB hard drive? (i.e.) What is the command? I am an absolute beginner so let's begin at the beginning please...
First; Slackware 13.x could be 13.0, 13.1 or 13.37. Which one! Diagnosis is hard since particulars for each version will be addressed different. Explicit would be better.

Quote:
Originally Posted by onebuck View Post
Posted 05-12-10, 17:35
Hi,

I've noticed a problem for some new users that are attempting to use 'Slackware 13.1 BETA1'.

'libata_switchover' has been around since 13.0 but some new users are not aware.
A new user should look at rworkman's 'libata_switchover HOWTO';

I also suggest that everyone looks at CHANGES_AND_HINTS.TXT and the other text files. Hopefully this will keep the gotcha clown away.
FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.


HTH!
 
1 members found this post helpful.
Old 06-19-2011, 12:00 PM   #8
sonnystarks
LQ Newbie
 
Registered: Jul 2009
Posts: 24

Original Poster
Rep: Reputation: 0
The version we are discussing is Slackware 13.37. Thank you for asking.
 
Old 06-19-2011, 01:15 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <SLACKWARE> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-19-2011, 02:37 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by sonnystarks View Post
The version we are discussing is Slackware 13.37. Thank you for asking.
That should have been included information in the OP instead of 13.X.

Look at 'libata_switchover HOWTO' to understand the devices specifications.

If you boot with 13.37 and do 'fdisk -l' then your device assignments will be shown.
 
  


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
Slow USB transfer rates (60kb p/s) External HDD --> Internal HDD drfrostbyte Linux - Hardware 4 03-28-2011 01:20 AM
Replacing HDD in an LVM without any ports left for new HDD, therefor using a USB dock boast Linux - General 0 01-12-2010 09:03 AM
copied Debian install from dead hdd to new hdd.now system fails to boot :S deepclutch Debian 18 02-15-2008 07:17 AM
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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