LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-01-2003, 09:46 AM   #1
Linh
Member
 
Registered: Apr 2003
Posts: 178

Rep: Reputation: 30
I cannot mount a device in Linux


I cannot mount a device in Linux
mount /dev/hda8/ /mnt/source/8

error message:
Block device /dev/hda8 is write-protected. mounting read-only.
Mount cannot mount block device /dev/hda8 read-only

The entire /dev/hda have Reiser fs partition
some /dev/hda have LVM (Logical Volume Management) partitions.

/dev/hda1 is boot sector id = 83
/dev/hda2 is extended id = 5
/dev/hda5 is Linux swap id = 82
/dev/hda6 is Linux id = 83
/dev/hda7 is Linux id = 83
/dev/hda8 is Linux id = 83
/dev/hda9 is Linux id = 83
/dev/hda10 is Linux id = 83
/dev/hda11 is Linux id = 83
 
Old 10-01-2003, 11:35 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Post the output of this command:

fdisk -l

# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting

Last edited by fancypiper; 10-01-2003 at 11:38 AM.
 
Old 10-01-2003, 11:48 AM   #3
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
reply

Hi Fancypiper. I did as you have suggested. Please ignore the
sda part since I do not use SCSI device.

=======================================

[root@datalus]# fdisk -l

Disk /dev/sda: 255 heads, 63 sectors, 1116 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3 24066 83 Linux
/dev/sda2 4 1116 8940172+ 5 Extended
/dev/sda5 4 20 136521 82 Linux swap
/dev/sda6 21 151 1052226 83 Linux
/dev/sda7 152 167 128488+ 83 Linux
/dev/sda8 168 429 2104483+ 83 Linux
/dev/sda9 430 691 2104483+ 83 Linux
/dev/sda10 692 953 2104483+ 83 Linux
/dev/sda11 954 1116 1309266 83 Linux

Disk /dev/sdb: 255 heads, 63 sectors, 2233 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 2233 17936541 8e Linux LVM

Disk /dev/sdc: 255 heads, 63 sectors, 2233 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 2233 17936541 83 Linux


Disk /dev/hda: 255 heads, 63 sectors, 10011 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3 24066 83 Linux
/dev/hda2 4 10011 80389260 5 Extended
/dev/hda5 4 20 136521 82 Linux swap
/dev/hda6 21 151 1052226 83 Linux
/dev/hda7 152 167 128488+ 83 Linux
/dev/hda8 168 429 2104483+ 83 Linux
/dev/hda9 430 691 2104483+ 83 Linux
/dev/hda10 692 953 2104483+ 83 Linux
/dev/hda11 954 10011 72758353+ 83 Linux

Disk /dev/hdc: 240 heads, 63 sectors, 5170 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 3 22648+ 83 Linux
/dev/hdc2 4 5170 39062520 5 Extended
/dev/hdc5 4 20 128488+ 82 Linux swap
/dev/hdc6 21 151 990328+ 83 Linux
/dev/hdc7 152 167 120928+ 83 Linux
/dev/hdc8 168 429 1980688+ 83 Linux
/dev/hdc9 430 691 1980688+ 83 Linux
/dev/hdc10 692 953 1980688+ 83 Linux
/dev/hdc11 954 5170 31880488+ 83 Linux

Last edited by Linh; 10-01-2003 at 11:51 AM.
 
Old 10-01-2003, 12:11 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Have you formatted the partition /dev/hda8?

mkreiserfs /dev/hda8
 
Old 10-01-2003, 01:39 PM   #5
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
reply

Hi fancypiper.

I did this. vi /etc/fstab
/dev/hda6 / reiserfs defaults 1 1
/dev/hda7 /tmp ext2 defaults 1 2
/dev/hda10 /usr reiserfs defaults 1 2
/dev/hda9 /opt reiserfs defaults 1 2
/dev/hda8 /var reiserfs defaults 1 2
/dev/hda1 /boot ext2 defaults 1 2
/dev/hda11 /home reiserfs defaults 1 2
/dev/sda6 /mnt ext2 defaults 0 0

#/dev/fd0 /floppy auto noauto,user 0 0

proc /proc proc defaults 0 0
# End of YaST-generated fstab lines
=======================

/dev/hda8 is already format as reiserfs.
/dev/hda is a boot up hard drive and it works fine.
 
Old 10-01-2003, 02:09 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Then that partition should be mounted automatically upon boot. It is probably marked so that you can't screw around with it because the system uses it to store stuff for it's use.

cd /var
ls

See anything?
Code:
fancy@uilleann /var $ ls
cache  db  lib  local  lock  log  mail  named  nis  opt  preserve  run  spool  state  tmp  www  yp

Last edited by fancypiper; 10-01-2003 at 02:12 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount as a device: mount dvd-iso file in /dev/dvd sadarax Linux - General 21 02-02-2011 11:59 PM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
could not mount device? bendeco13 Linux - General 2 02-07-2005 11:22 PM
mount second cd device pauloref Linux - Hardware 2 09-26-2004 07:58 PM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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