Koozali.org: home of the SME Server

"IOError: [Errno 30] Read-only file system" when installing SME 8 from USB

Offline avamk

  • 8
  • +0/-0
Hello,

By using the instructions in this post, I managed to make my 8.0GB USB flash drive boot the latest SME Server 8 beta 6 ISO image. The installation program starts when I boot from USB, and configuration of install options worked fine.

After pressing "Install now", the installation starts, then ends with a python exception error: IOError: [Errno 30] Read-only file system

I tried it twice (with different USB sticks) and got the same error, what does this mean and how should I alleviate this problem?

Thanks!!

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #1 on: November 22, 2010, 09:37:13 PM »
why don't you install it via cd? :-)

Offline avamk

  • 8
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #2 on: November 23, 2010, 12:04:46 AM »
why don't you install it via cd? :-)

Unfortunately, the box I am trying to install it in, a VIA Artigo A1100, does not have an optical drive, and I don't have an external one either. So is there any hope of installing from a USB stick? Thanks!!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #3 on: November 23, 2010, 03:23:16 AM »
So is there any hope of installing from a USB stick?

AFAIK that feature hasn't been developed.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #4 on: November 23, 2010, 01:33:02 PM »
AFAIK that feature hasn't been developed.

It hasn't exactly been developed, but you can boot from a USB pen and install the latest SME Server 8b6 as I have done so on occasions where CDROM support hasn't been available.  Google is your friend :)
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline avamk

  • 8
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #5 on: November 23, 2010, 07:15:08 PM »
.....Google is your friend :)

A Google search is what led me here. :)

But like I said before, after following the install from USB instructions posted in this thread, I get "IOError: [Errno 30] Read-only file system" during installation. Any ideas why?

...boot from a USB pen and install the latest SME Server 8b6 as I have done so on occasions where CDROM support hasn't been available....

How did you do it?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #6 on: November 23, 2010, 08:20:29 PM »
But like I said before, after following the install from USB instructions posted in this thread, I get "IOError: [Errno 30] Read-only file system" during installation. Any ideas why?
I guess it is large enough to be considered by the operating system as a disk that is part of the software raid array it is trying to create. What is the size of the USB drive you are using? Perhaps you can try and manually create the partitions in order to take care not to include the USB drive?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline avamk

  • 8
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #7 on: November 23, 2010, 10:01:53 PM »
I guess it is large enough to be considered by the operating system as a disk that is part of the software raid array it is trying to create. What is the size of the USB drive you are using? Perhaps you can try and manually create the partitions in order to take care not to include the USB drive?

I have a 8.0 GB USB drive. The hard drive I am trying to install SME 8 on is 40 GB. Should I partition the hard drive AND the USB drive in some way? And should I do it BEFORE running the installation program (perhaps via fdisk)? If so what format? ext3?

Sorry about all the questions, I am quite new to SME.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #8 on: November 23, 2010, 10:10:25 PM »
I have a 8.0 GB USB drive. The hard drive I am trying to install SME 8 on is 40 GB. Should I partition the hard drive AND the USB drive in some way? And should I do it BEFORE running the installation program (perhaps via fdisk)? If so what format? ext3?
During installation there should be an option to manually partition or review the partition IIRC.

Sorry about all the questions, I am quite new to SME.
No problem, we all have to start somewhere...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #9 on: November 23, 2010, 11:27:46 PM »
avamk

Quote
During installation there should be an option to manually partition or review the partition IIRC.

This might help
http://wiki.contribs.org/Booting
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #10 on: November 23, 2010, 11:35:34 PM »
This is the tool I used to get a usb SME Server booting from USB stick successfully and installed (very quickly too :) )...

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

Little bit of "know-how" is required.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline fpausp

  • *
  • 728
  • +0/-0

Offline slords

  • ****
  • 235
  • +3/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #12 on: November 24, 2010, 09:35:16 PM »
The issue here is that the USB stick is > 4G which is where the operating system says it is no longer a removable drive and is a fixed drive suitable for install.  The current installer upon seeing this drive tries to make it part of the raid array it creates and by doing so renders the USB drive corrupt (and thus fails to read-only).

You can use the installer cmdline options to exclude the drive so that it will install correctly, or you can wait for the next released ISO that has a fix in it to automatically exclude any drive/device that is being used to install.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #13 on: November 24, 2010, 09:48:40 PM »
You can use the installer cmdline options to exclude the drive so that it will install correctly, or you can wait for the next released ISO that has a fix in it to automatically exclude any drive/device that is being used to install.
If you mean these options I fail to see how to do so, also the relevant bugs do not help me much:
http://bugs.contribs.org/show_bug.cgi?id=5316
http://bugs.contribs.org/show_bug.cgi?id=5850

Perhaps you can show us how?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline avamk

  • 8
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #14 on: November 24, 2010, 11:13:57 PM »
If you mean these options I fail to see how to do so, also the relevant bugs do not help me much:
http://bugs.contribs.org/show_bug.cgi?id=5316
http://bugs.contribs.org/show_bug.cgi?id=5850

Perhaps you can show us how?

Yeah, please tell us what to do.

I tried the boot options "sme raid=[none] drives=hdb", "sme raid=[none]", and "sme drives=hdb", none worked. I even tried to use the rescue mode to create a small partition on the hard drive (format it ext3), place the SME 8 iso in that partition, and used it when asked during install from USB stick, but it still didn't work.

BTW, I am attaching a photo I took of the exact error that occurs. Its always the same file, same error.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #15 on: November 25, 2010, 01:18:54 AM »
BTW, I am attaching a photo I took of the exact error that occurs. Its always the same file, same error.

Please create a bug report, and attach the image there. Anything that doesn't 'just work' - create a bug report.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #16 on: November 25, 2010, 03:01:48 AM »
If you mean these options I fail to see how to do so, also the relevant bugs do not help me much:
http://bugs.contribs.org/show_bug.cgi?id=5316

I think is it detailed in this post
http://bugs.contribs.org/show_bug.cgi?id=5316#c13

and with a bit extra in comment 38 & 39
http://bugs.contribs.org/show_bug.cgi?id=5316#c38
http://bugs.contribs.org/show_bug.cgi?id=5316#c39


Still reading the other bug
It eventually takes you to the same place ie
http://wiki.contribs.org/Booting#Installer_Boot_Options
the SME8 options having been merged into that document

and the description of how to use the options here
http://bugs.contribs.org/show_bug.cgi?id=5316#c13
« Last Edit: November 25, 2010, 03:12:44 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #17 on: November 25, 2010, 09:22:00 AM »
Yes, Mary I have noticed they all point to the same page. However I have not been able to deduce how I can exclude one drive from the installation process.

If I understood things correctly the new installer (still to be released) should have no problem anymore as it will automatically exclude drives from which the installer is run. The drives option is only to specify drive types IMHO.

Looking some more through bug 5316, perhaps this might be the clue: http://bugs.contribs.org/show_bug.cgi?id=5316#c27. It mentions the nousbstorage option, which fails on the http://wiki.contribs.org/Booting#Installer_Boot_Options page, perhaps as it might be a more general boot option (not only applicable to installer) as listed here: http://www.centos.org/docs/4/html/rhel-ig-x8664-multi-en-4/ap-bootopts.html
(although for el4 I guess most are that general that they will work in EL5 as well).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #18 on: November 25, 2010, 09:43:53 AM »
cactus

Quote
However I have not been able to deduce how I can exclude one drive from the installation process.

Quoting from the bug report at http://bugs.contribs.org/show_bug.cgi?id=5316#c13
"The installer without anything being passed should behave identically for disks
< 10 with the exception that it won't include any device that is housed on a
drive that needs the usb-storage or spb2 module.
If you want to include drives that are on USB or firewire you must use the
drives= option and specify all drives (not just the usb/firewire drives) that
you want to use."

Quote
The drives option is only to specify drive types IMHO.

Not according to the above text. It says list all drives you want to include. So by process of elimination (reverse logic maybe), if you list all drives except one, then that one drive is excluded.

ie
You do not actually list the drive you want to exclude.
Instead you do not list the drive you want to exclude.
Make sure you list all other drives so they are included.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #19 on: November 25, 2010, 09:48:42 AM »
Quoting from the bug report at http://bugs.contribs.org/show_bug.cgi?id=5316#c13
"The installer without anything being passed should behave identically for disks
< 10 with the exception that it won't include any device that is housed on a
drive that needs the usb-storage or spb2 module.
Yes, but that is after the rework of the installer, which is not released AFAIK, the bug is still in NEW state, so that will not work with the current ISO.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #20 on: November 25, 2010, 12:12:18 PM »
cactus

As I'm reading it (I have not tried it), the command line will allow you to include all drives (to install the OS to) except the USB boot/install drive (which has the install iso on it), which can be performed now (on sme8) before the next iso release.
So the lack of inclusion of the install USB drive in the switch, will exclude it (stop the installer trying to install the OS onto it).

Do you not read it that way ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline slords

  • ****
  • 235
  • +3/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #21 on: November 25, 2010, 06:14:12 PM »
If you have three hard drives (hda,hdc,sda) with sda being your usb  drive you are trying to install from you can install using either of these startup lines:

sme drives=hda,hdc
sme exclude=sda

The installer changes that include these options should be part of the 7.5.1 and 8.0b6 ISOs.  There is an update to the installer that will be part of the next ISOs that will automatically exclude any drive that contains the install media or ks files.
« Last Edit: November 25, 2010, 06:16:14 PM by slords »
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline avamk

  • 8
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #22 on: November 27, 2010, 04:27:04 AM »
If you have three hard drives (hda,hdc,sda) with sda being your usb  drive you are trying to install from you can install using either of these startup lines:

sme drives=hda,hdc
sme exclude=sda

The installer changes that include these options should be part of the 7.5.1 and 8.0b6 ISOs.  There is an update to the installer that will be part of the next ISOs that will automatically exclude any drive that contains the install media or ks files.

I tried "sme drives=hdb" (my sdd harddrive is hdb) but it didn't work. Will try "sme exclude=sda" when I have access to my box on Monday.

Any idea on when the next ISOs will come out???

Thanks so much for all the help/discussion so far!

Offline avamk

  • 8
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #23 on: December 03, 2010, 03:09:52 AM »
I tried both "sme exclude=sda" and "sme exclude=sda,sda1" but installation still ends with the same error. Is there anything else I can do? Or do I have to wait for the next release?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #24 on: December 03, 2010, 03:49:16 AM »
avamk

What CD iso release version are you using ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline avamk

  • 8
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #25 on: December 03, 2010, 06:39:52 AM »
avamk

What CD iso release version are you using ?

Latest SME 8.0 beta 6 ISO.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: "IOError: [Errno 30] Read-only file system" when installing SME 8 from USB
« Reply #26 on: December 03, 2010, 01:07:11 PM »
avamk

Quote
Latest SME 8.0 beta 6 ISO.

This thread implies that should work, so please lodge a bug report.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.