LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-31-2005, 10:03 PM   #1
aerosol
LQ Newbie
 
Registered: Aug 2005
Location: Ann Arbor, MI, U.S.A
Distribution: redhat linux 9.0
Posts: 2

Rep: Reputation: 0
parted: Unable to open /dev/hdd


Hi,

I try to use parted to get a new partition.
But when I use it in the command line, it shows that:
Warning: Unable to open /dev/hdd read-write (Read-only file system). /dev/hdd
has been opened read-only.

So I also can't use print to get the partition list. It shows that:
Error: Unable to open /dev/hdd - unrecognised disk label.

But I remebered that I can use it one month again. I use 'root' to use parted.
And the partition information from df -k:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda4 5036316 3946776 833708 83% /
/dev/hda3 194449 14318 170091 8% /boot
none 321180 0 321180 0% /dev/shm

Thanks!
 
Old 09-01-2005, 03:13 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I try to use parted to get a new partition.
But when I use it in the command line, it shows that:
Warning: Unable to open /dev/hdd read-write (Read-only file system). /dev/hdd
has been opened read-only.
So /dev/hdd (secondary slave) is not a hard drive is it? (Maybe it is a cd/dvd-rom?)

I suggest this because of this:
Quote:
the partition information from df -k:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda4 5036316 3946776 833708 83% /
/dev/hda3 194449 14318 170091 8% /boot
none 321180 0 321180 0% /dev/shm
I mean - if you had a ide hard drive as secondary slave, then df would list /dev/hddx somewhere wouldn't it?

So I think we need more information here.
Perhaps you have added a blank/unformatted hard drive as secondary slave? Does it show up in dmesg? What was the command to make the new partition?
 
Old 09-01-2005, 08:35 PM   #3
aerosol
LQ Newbie
 
Registered: Aug 2005
Location: Ann Arbor, MI, U.S.A
Distribution: redhat linux 9.0
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, Simon!

yes, you are right. It is actually a cd-rom. There a cd in the cd-rom when I start my linux.
Now I take out the cd, and no problem at all.

Thanks again for your help!
 
Old 09-03-2005, 07:30 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Very good.
It shouldn't matter if there is a CD in the drive or not - hdd will remain a cd drive block special device. You have presumably learned that you need to specify the correct device to partition.

On another note:
Please edit your profile (from MyLQ > edit profile) to show your distribution and location. This does help people help you.
 
  


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
fdisk: unable to open /dev/hda andykerouac Linux - Newbie 7 07-18-2008 07:49 AM
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 10:27 PM
Unable to mount /dev/hdd deveraux83 Slackware 11 03-05-2005 06:23 PM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 07:29 PM
unable to open /dev/hdc; second HD Paul Lepp General 8 03-31-2003 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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