PDA

View Full Version : can't mount /dev/sda2



transistortoaster
04-26-2007, 08:53 PM
Hello,
I have a SATA drive as my PRIMARY MASTER on my computer. I would like to mount the /dev/sda2 partition. I can't do it in Knoppix 5.1.1 but it used to work in Knoppix 4.0 with

mount -rw -t ext3 /dev/sda2 /mnt/sda2

What's the new way?

transistortoaster
04-26-2007, 09:22 PM
To be more precise, if I do

mount /dev/sda2 /mnt/sda2

It says:
special device /dev/sda2 does not exist

and yes, I did create /mnt/sda2

Frank

cbagger01
04-26-2007, 11:47 PM
To be more precise, if I do

mount /dev/sda2 /mnt/sda2

It says:
special device /dev/sda2 does not exist

and yes, I did create /mnt/sda2

Frank

If you type:

cat /etc/fstab

what mountpoints have been found by KNOPPIX?

transistortoaster
04-27-2007, 01:37 AM
Thanks for your response,
Here's fstab:



# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hdd2 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/cdrom /media/cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom1 /media/cdrom1 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom2 /media/cdrom2 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom3 /media/cdrom3 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/dvd /media/dvd iso9660 defaults,ro,users,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hdd1 /media/hdd1 ntfs noauto,users,exec,umask=000 0 0
# Added by KNOPPIX
/dev/hdd5 none swap defaults 0 0
# Added by KNOPPIX
/dev/sr1 /media/sr1 auto ro,noauto,users,exec 0 0
# Added by KNOPPIX
/dev/sr0 /media/sr0 auto ro,noauto,users,exec 0 0
#added by Frank for Knoppix 5.1.1
#/dev/sda2 /home auto rw,auto,users,exec 0 2


I added the last two lines myself.

transistortoaster
04-27-2007, 01:40 AM
On the KDE background, I have the sr1 device icon. If I try to mount it, mount reports "No medium found"

WaKa
04-29-2007, 07:10 AM
The 5.x.x versions uses the media file instead of the mnt file so try this:
# mount -rw -t ext3 /dev/sda2 /media/sda2
hth

transistortoaster
04-29-2007, 06:55 PM
Waka,
Thanks for your advice. I tried it and it still does not work. The problem is more the device itself - not the mount point. The error message says that the "special device" /dev/sda2 does not exist.

Basically I need to figure out how to get the SATA device recognized by the OS, as Knoppix 4.0 did sucessfully.
Here are some interesting lines from dmesg:



Loading iSCSI transport class v2.0-724.<7>ata_piix 0000:00:1f.2: version 2.00ac6
ata_piix 0000:00:1f.2: MAP [ P0 P1 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 18 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xF000 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xF008 irq 15
scsi0 : ata_piix
ata1: SRST failed (status 0xFF)
ata1: SRST failed (err_mask=0x100)
ata1: softreset failed, retrying in 5 secs
ata1: SRST failed (status 0xFF)
ata1: SRST failed (err_mask=0x100)
ata1: softreset failed, retrying in 5 secs
ata1: SRST failed (status 0xFF)
ata1: SRST failed (err_mask=0x100)
ata1: reset failed, giving up
scsi1 : ata_piix
ata2.00: ATAPI, max UDMA/33
ata2.01: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
ata2.01: configured for UDMA/33

JohnnyH
04-30-2007, 09:58 AM
Thanks for your response,
Here's fstab:


# /etc/fstab: filesystem table.
... TRUNCATED ...
# Added by KNOPPIX
/dev/sr0 /media/sr0 auto ro,noauto,users,exec 0 0
#added by Frank for Knoppix 5.1.1
#/dev/sda2 /home auto rw,auto,users,exec 0 2

I added the last two lines myself.
Using the fstab file, you need to remove the # from the front of the last line, (as well as mounting to /media/sda2 as pointed out above for the command line case).
You might need to create the mount point manually first :
mkdir -p /media/sda2
Then try fstab with the last 2 lines as follows (details as inferred from your configuration) :


... TRUNCATED ...
#added by Frank for Knoppix 5.1.1
/dev/sda2 /media/sda2 ext3 rw,auto,users,exec 0 0