LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2007, 05:29 PM   #1
Greebstreebling
Member
 
Registered: Nov 2005
Location: Swansea, Wales, UK
Distribution: debian
Posts: 235

Rep: Reputation: 30
Smile Installing a new disk drive - 500MB SATA


Dear guys,


I have two working IDE drives in my deb 4 box and have just installed a new drive in the machine, it is 500MB SATA interface. The machine is just used as a desktop running KDE - I use it for internet, email and also openoffice packages. Keep family photos on it etc.

I have connected the sata cable and power lead, but how do I get the Deb 4 system to recognise its presence?

Also will I need to use fsck or something like it to format the drive before it can be used?

Thanks,
Greeb
 
Old 10-25-2007, 05:46 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you're using a gui, then just fire up GParted to format the drive. If you don't have a gui, you'll have to use something like cfdisk to format the drive. Then you can mount it by editing fstab.
 
Old 10-26-2007, 04:36 AM   #3
Greebstreebling
Member
 
Registered: Nov 2005
Location: Swansea, Wales, UK
Distribution: debian
Posts: 235

Original Poster
Rep: Reputation: 30
Cool Gparted doesn't see drive

I tried gparted and it sees hda1 and hda2, but not the new drive, so stuck with that.

I also tried a debian disk manager tool from the gui, and that saw the new drive but doesn't allow formatting etc

Thanks,
Greeb
 
Old 10-26-2007, 09:00 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Greebstreebling View Post
I tried gparted and it sees hda1 and hda2, but not the new drive, so stuck with that.

I also tried a debian disk manager tool from the gui, and that saw the new drive but doesn't allow formatting etc

Thanks,
Greeb
You need to partition before being able to format the drive. You could always try qtparted this allows you to partition/format the drive or use as root from the command line cfdisk /dev/sda assuming sda is what it gets detected as you should take a look at the output of the dmesg to be certain. If you use cfdisk then once opened go to new option with the right/left arrow keys choose primary for the partition and accept the default with the whole drive being selected (if this is what you want) once this is done choose type 83 Linux for the partition and when finished use the arrow keys to go to write to write the new partition table at this point I always reboot to make certain that the partition table gets properly read you can see this in the dmesg output with a hardrive plus sda1 on it when it gets detected. Once rebooted use as root mkfs.????? /dev/sda1 replacing the ????? with the file system you want ext2, ext3, reiserfs, xfs .... once you have the file system on it you will be able to mount and use the drive and will most likely want to edit the /etc/fstab to put a new entry in it so you will always have it available on boot.
 
Old 10-30-2007, 02:22 PM   #5
Greebstreebling
Member
 
Registered: Nov 2005
Location: Swansea, Wales, UK
Distribution: debian
Posts: 235

Original Poster
Rep: Reputation: 30
Wink thanks - will try out

Thanks, have been away a few days will try this out.
Best,
Greeb
 
Old 11-09-2007, 01:30 PM   #6
Greebstreebling
Member
 
Registered: Nov 2005
Location: Swansea, Wales, UK
Distribution: debian
Posts: 235

Original Poster
Rep: Reputation: 30
Smile oh dear....

Hi - I tried this

cfdisk /dev/sda

and got the message 'fatal error cannot open disk drive'

If I use the Debian disks manager from kde, it sees the sata disk and recognises it as /dev/sda

any further help much appreciated

Thanks
Greeb
 
Old 11-09-2007, 02:35 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Greebstreebling View Post
Hi - I tried this

cfdisk /dev/sda

and got the message 'fatal error cannot open disk drive'

If I use the Debian disks manager from kde, it sees the sata disk and recognises it as /dev/sda

any further help much appreciated

Thanks
Greeb
That is weird it should see it maybe try installing qtparted to see if it will let you partition the disk then there is always fdisk but that thing gives me a headache trying to figure out the raw sector numbering needed to get it to work. You may want to post the fdisk -l output as root so we can see how everything is getting detected.
 
Old 11-09-2007, 04:44 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I had the exact same problem yesterday - external SATAII 500 Gig.
Even XP wouldn't talk to it.

Eventually got a Vista machine to initialize (???) it. No partitions, no formatting.
Then both XP and Linux were happy to partition it - I can't explain why.
Another (Linux) laptop (Inspiron 1100) wouldn't talk to it at all, even after formatting - may be a BIOS issue, although it is at the latest level available, and is running 2.6.23 kernel.

That was my solution, may work for you too.
 
  


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
Installing Slackware 10.2 on SATA drive with a SATA CD-RW drive Voltar Slackware - Installation 19 08-01-2007 04:33 PM
hard disk drive reliability (fc/sata) rblampain Linux - Hardware 5 04-15-2007 01:29 AM
syslog > 500mb daily - hdb: No disk in drive jsurles Linux - General 4 03-28-2007 08:56 AM
Problems with SATA Disk Drive (software or hardware)? ]Trix[ Linux - Hardware 1 01-25-2007 05:30 AM
Installing Damn small linux on my 500mb hd zwyrbla DamnSmallLinux 8 10-05-2004 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:42 PM.

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