cozybit / distro11s

12 stars 5 forks source link

USB Installer #23

Open Jayala0 opened 10 years ago

Jayala0 commented 10 years ago

I have issues with the provisioning.sh file

It says it has a problem reading the partition table and aborts the install and the device is left unformatted, I tried to format it again with fdisk, giving a Sun label again but the same problem occurs again.

Thanks in advance

minshallj commented 10 years ago

It sounds like you are getting to this line: https://github.com/cozybit/distro11s/blob/master/scripts/provisioning.sh#L63

Above it we are trying to make a new partition on your device with fdisk. Running that command works fine on my system (Ubuntu 13.10 with fdisk 2.20.1, and on a debian 7 system as well)

Is it possible that you are sending a partition rather than a device to the program? (e.g. /dev/sdb1 when you should put /dev/sdb)

You might want to try the fdisk command by hand and see where it fails. Make sure you unmount all partitions first, then run a sudo fdisk /dev/sdb (where sdb is replaced by whatever the device name for your usb is) and then type n p 1

a 1 w You should be able to see what each of those mean if you type m for help while inside the interactive fdisk. Be careful though, this could ruin your system if you pass the wrong device. I usually do a sudo fdisk -l to make sure I am passing the device that is the correct size of my usb drive.

If this seems to work fine for you, then it may be somewhere else in the script that things are failing. In that case put a set -x at the top of the script and then send back the line where it failed.

Jayala0 commented 10 years ago

Thanks for your help, I was just not pointing to the correct device. Im kinda newbie in Linux.

I am required to build and test a mesh network using open80211 with USB dongles and I'm still a bit confused. I have 3.11.0-15 kernel and I have already built distro11s in my folder in 2 computers and followed the instructions on how to set up a mesh I had success and I'm currently working on catching the frames with wireshark.

Does working with the iw tool already makes the mesh work with open11s and if that is so does tweaking the code parameters of the distro11s/src/kernel/net/wireless files change the protocol configuration or do I have to change the ones in the own kernel mac80211?

Sorry for the delay I was trying to work my way. Thanks for your time